Blog

Trigger an AI Agent from a Notion Button

Tutorial

ยท

Quick answer: To trigger an AI agent from a Notion button, create a BuildShip workflow, add the Notion Trigger, and copy the endpoint URL it gives you. In a Notion database, add a button with /button, open Edit Automation, choose the Send Webhook action, paste that URL and pick the properties to send. Connect BuildShip to the database from the databaseโ€™s Connect to menu, then click the button on a row to send a test payload. Use Get Data in BuildShip to map the fields. In this guide, a โ€œPublish briefโ€ button turns a campaign page into a content-calendar row and drafts social copy. A general chat agent can only write that copy if you paste the brief in, and it cannot update Notion or leave a log of the run.

Trigger an AI agent from a Notion button: a Publish brief click starts the Notion Trigger, then a BuildShip AI agent writes a calendar row and drafts social posts

A campaign brief is finished when someone is ready to say so, not when a clock says so. The writer clicks โ€œPublish briefโ€ on the Notion row. If the next step is a copy-paste into a spreadsheet and a Slack message asking someone to draft social posts, the brief sits still for a day. ChatGPT can write those posts if you paste the page in, but it cannot receive the click, read the rest of the row, write a calendar entry or leave a record of what it filed.

That is the job of an AI agent with a backend. The Notion button is the trigger. The agent does the drafting. BuildShip keeps a log of both.

Why a button-triggered agent beats another integration dump

The Notion Trigger starts a BuildShip workflow when a button is clicked on a Notion page. It is not a firehose of every edit. That matters. You do not want an agent rewriting social copy every time someone fixes a typo in the brief. The click is the decision.

A general chat agent cannot do this on its own:

  • It has no URL that a Notion button can call.

  • It cannot read the rest of the database row, write a calendar page or draft posts into another Notion database.

  • It leaves no step-level log of which brief was published or what copy was filed.

The agent is useful because the next step is not a fixed template. A product launch brief and a customer-story brief need different calendars, different channels and a different tone. The agent can read the title, summary, audience and launch date, then write a calendar row and a first draft of the posts, and leave them for a person to approve.

This is not a chatbot in Notion, and it is not a sync that copies every property change. It is a publish action, with a record.

BuildShip also has a Notion to Dev.to starting template if you want a button that publishes a post. This guide is a different job: filing the brief and drafting the social copy that goes with it.

What the Notion Trigger actually does

The Notion Trigger gives your workflow an endpoint. A Notion button with a Send Webhook action posts selected data from the row to that endpoint, and the workflow starts.

A few things to be clear about before you build:

  • The trigger is the button click, not a change to the page. If you need something to run when a property changes on its own, this is not that trigger.

  • You create the workflow first, then add the trigger, then set up the button. The docs ask you to do it in that order, because the button needs the endpoint URL.

  • There is no output mapping on this trigger. It is an integration trigger: it starts the workflow. Writes back to Notion happen in later steps, through Notion nodes or the Notion API.

The docs also point to a Notion Hook Chrome extension if you want extra control over how buttons in a workspace call BuildShip. The setup below follows the documented button, Send Webhook and Connect to steps, which is enough for this agent.

A concrete case: Publish brief, then file it and draft the posts

Take a content team that keeps campaign briefs in a Notion database. Each row has a title, a one-paragraph summary, an audience, a launch date and a status. Today, when a brief is ready, someone changes the status, copies the summary into a content calendar and writes social posts in a doc. The posts are late, and nobody can see which brief produced which draft.

Here is the path I would build:

  1. The writer clicks โ€œPublish briefโ€ on the row.

  2. The Notion Trigger starts the workflow with the properties you selected for the webhook: title, summary, audience, launch date and the page or row id.

  3. A Branch or script node checks that the summary is present and that the launch date is in the future, or at least not empty. A click on an empty row should return early, and should not call a model.

  4. An AI step drafts a calendar entry (headline, suggested publish date, channel list) and two or three social posts that follow from the brief. It must not invent a launch date or a product claim that is not in the row.

  5. The workflow writes a row to a Content calendar database in Notion, with a status of pending_review, a link back to the brief, and the draft posts in a long-text property or as child blocks.

  6. If a calendar row for this brief id already exists, update the drafts rather than creating a second row.

  7. Optionally, post the calendar link to the teamโ€™s channel so a person can review it.

The model is there for the wording. The calendar row, the back-link and the log are what make it an agent rather than a chat.

A Publish brief button on a Notion database row sends selected properties to the Notion Trigger, and a BuildShip AI agent writes a content-calendar row and drafts social posts

The click is the decision. The agent files the brief and drafts the posts. A person still approves what goes out.

Set up the trigger

  1. In BuildShip, create the workflow you want the button to start. Open the Connect tab and add Notion Trigger.

  2. Copy the endpoint URL the trigger provides.

  3. In Notion, open the campaign briefs database. Type /button to add a custom button. Open Edit Automation and choose the Send Webhook action.

  4. Paste the BuildShip endpoint into the Webhook URL field. Select the properties the workflow needs: at least the title, summary, audience, launch date and a unique id for the row. Set the button label to something clear, such as โ€œPublish briefโ€.

  5. In the databaseโ€™s full-page view, click the three dots, choose Connect to, and add BuildShip. This is how the workspace authorises the connection.

  6. Click โ€œPublish briefโ€ on a finished test row. That sends the first payload.

  7. Back in BuildShip, click Get Data, then map the incoming fields to your workflow inputs.

If the button click does not appear in Get Data, check the webhook URL, confirm BuildShip is connected to that database, and click the button again on a row that has the properties you selected.

Build the publish-brief agent

Validate first. Do not spend a model call on a row with no summary. A script or Branch node should stop early and log the reason. If you have a status property, you can also refuse rows that are still draft.

Read only what you were sent, then fetch the rest if you need it. The webhook includes the properties you selected. If the agent also needs the body of the page, use a documented Notion node such as Fetch Page, with the page id from the payload, after you have authenticated the node with Notion OAuth (the fingerprint icon turns green when that succeeds). Keep that fetch behind the validation step.

Draft, with a tight brief. Add an AI node (keyless nodes run on your BuildShip credits, or you can bring your own provider key):

> You turn campaign briefs into a content-calendar entry and social drafts. Using only the title, summary, audience and launch date provided, write: a one-line calendar headline, a suggested publish date that matches the launch date, two channels with a reason for each, and two social posts of no more than 400 characters. Do not invent product claims, dates or statistics that are not in the brief. If the summary is too thin to support a post, say so and write a checklist of what is missing instead.

Pass the mapped fields in as data, not as a hope that the model will remember the page.

Write the calendar row. Use a Notion node or an HTTP request to create a page in your Content calendar database, with the headline, date, drafts, a pending_review status and a relation or URL back to the brief. If a calendar row for this brief already exists, update it. That write is the point of the agent.

Do not publish the posts from this workflow. The agent drafts. A person moves the row to published when the copy is right. If you later want a second button, โ€œPost nowโ€, that should be a separate workflow with a narrower job.

Tell people. Post the calendar link to the review channel. The log already has the brief id and the draft, so a reviewer can open the run if the tone is off.

If you would rather not wire the canvas by hand, click Build with AI to open Compass and describe the flow in plain language. It builds on your actual canvas, so you can still test and edit every step. For briefs that need a longer research pass, the workflow can hand off to an AI agent built with Agent Max.

A chat agent can draft posts only if you paste the brief in. A BuildShip agent receives the Notion button click, writes a calendar row and leaves a log of the run

The value is a calendar row, a back-link and a log of the click.

Select which Notion properties the button sends, then map them in BuildShip with Get Data. The agent should see the title, summary, audience and launch date, not the whole workspace

Send only the fields the agent needs. A unique row id is what stops duplicate calendar entries.

Test it, ship it and click it on a real brief

  1. Use a test row with a realistic summary and a launch date, then click โ€œPublish briefโ€.

  2. Confirm Get Data shows the properties you selected, the workflow runs, and a calendar row appears with pending_review and a link back to the brief.

  3. Read the drafts as if you were going to post them. Adjust the prompt if it is inventing claims or ignoring the audience field.

  4. Click the button a second time on the same row and confirm you get an update, not a duplicate calendar entry.

  5. Click Ship only when you are happy with a dry run against a real brief that will not go out yet.

Open the logging panel at the bottom of the workspace to see what happened. You can switch from the Workflow view to the Node view to read the logs for a single step, and test runs show live logs as they happen. Production logs usually show up within about 45 seconds, and the refresh icon loads them straight away. To add your own messages, use the Log Message to Console node, or call logging.log inside any nodeโ€™s code.

See the logging docs and the node failure docs for retries. Use version history before you change a live drafting prompt.

Keep the Notion OAuth nodes authenticated as the right workspace member, and limit what the integration can write to the calendar database. The button should be visible only on the briefs database, not pasted onto pages where a click would file something that is not a brief.

Built for teams that run this in production

Button-triggered agents get clicked in a hurry, so a few things matter beyond the first test:

  • Full code access. Open any node to read or change its JavaScript or TypeScript.

  • Team access control. Role-based access lets you decide who can view a workflow, who can edit it and who can ship it.

  • Your own Google Cloud. Workflows run on Google Cloud, and you can run them in your own Google Cloud project as an enterprise option.

  • A log per click. When someone asks why a post draft mentioned a feature that was not in the brief, you can open the run and see the payload, the prompt and the write.

For the wider pattern of starting an agent from a click, a payment or a row change, rather than from a timer, see Why AI Agents Need Listeners, Not Cron Jobs. If you are connecting other tools in the Notion workspace, the Notion OAuth nodes cover fetching a page, creating a page and querying a database once the fingerprint icon is green.

FAQ

Can I trigger an AI agent from a Notion button?

Yes. Add the Notion Trigger to a BuildShip workflow and copy its endpoint URL. In Notion, add a button, choose Send Webhook, paste the URL and select the data to send. Connect BuildShip to the database, click the button, then use Get Data to map the payload. An AI node in the same workflow can draft calendar copy or take other actions from those fields.

Does this run every time someone edits the Notion page?

No. The Notion Trigger starts the workflow when the button is clicked. Edits that do not include a click do not start a run. That is what you want for a publish action.

Do I have to paste the webhook URL myself?

Yes. This trigger gives you an endpoint to paste into the buttonโ€™s Send Webhook action. It does not create the Notion automation for you. After you paste the URL, connect BuildShip to the database and send a test click.

What is the Notion Hook extension for?

BuildShipโ€™s Notion Trigger docs also describe a Notion Hook Chrome extension, for extra control over how buttons in a workspace call your workflows. The button, Send Webhook and Connect to steps in the same docs are enough to start this agent. If you need the extra settings, follow the extension documentation linked from the Notion Trigger page.

Can the agent write back to Notion?

Yes, in later steps, through Notion OAuth nodes or an HTTP request to the Notion API. The trigger itself only receives the button payload. Creates and updates show up in the logs as part of the workflow you build.

How much does it cost to try?

BuildShip plans start with a 7-day trial, and a card is required to start it. See the pricing page for plans and credits.

Start building

Start your 7-day trial (a card is required), add the Notion Trigger, put a โ€œPublish briefโ€ button on a test database and click it. If you are building content operations for a larger team, talk to us about enterprise.

You might also like

All it takes is an idea.

Imagine. Build. Ship.

Subscribe to our newsletter

Stay in the loop with product updates and news.

ยฉ 2026 BuildShip, Rowy Inc.

All it takes is an idea.

Imagine. Build. Ship.

Subscribe to our newsletter

Stay in the loop with product updates and news.

ยฉ 2026 BuildShip, Rowy Inc.

All it takes is an idea.

Imagine. Build. Ship.

Subscribe to our newsletter

Stay in the loop with product updates and news.

ยฉ 2026 BuildShip, Rowy Inc.