- Create PRs from Notion — Start a pull request from a page, task, or comment
- Fix bugs from tasks — Point the agent at a bug report and let it produce a fix
- Run in the background — Close the page and come back later to find a PR link waiting
Prerequisites
Before you start, make sure you have:- A custom agent in your Notion workspace
- A Cursor account (logging in with GitHub gives the easiest setup)
Set up the connection
1. Add the Cursor connection in Notion
2. Create a User API Key in Cursor
Log in to cursor.com.
Open the Integrations tab in your Cursor dashboard.
3. Finish the connection in Notion
Share the pages and databases your agent needs to read. This typically includes your engineering task database and any spec pages the agent should reference.

Using the agent
There are two ways to hand work to your agent:- Assign a database page (like a task) to the agent
- @mention the agent in a comment on a page or task
- “Create a PR from this spec in [repo URL]”
- “Start this in the background, then open a PR when it’s ready.”
- “Fix the bug described in this task and update the task.”

Troubleshooting
Can't find progress updates
Can't find progress updates
Progress lives in the agent’s chat activity, even if you started the work from a task comment. Open the agent to see status updates and PR links.
Updates feel scattered
Updates feel scattered
Use the agent’s chat when you want a single thread of status updates. Use task comments when you want the work to stay attached to a specific page.
Cursor can't see what you're referencing
Cursor can't see what you're referencing
Share the relevant pages and databases with the agent so it can read the spec, task, and any linked context. You can update shared pages in the agent’s Settings → Tools & access.
Nothing happens after assigning a task
Nothing happens after assigning a task
Give it a minute, then confirm:
- Cursor is connected (check Settings → Tools & access)
- Your API key is still valid
- The agent has access to the task and any referenced pages
Rotated your API key and things fail
Rotated your API key and things fail
Reconnect Cursor in Tools & access using a fresh API key. The old key is no longer valid after rotation.



