Notion Automations
How to Find a Notion Database Item and Send an Email When a Webhook Is Received
To look something up in Notion when an outside event arrives, use Zapify's free A webhook is received trigger with the Find an item in a database action, then act on what it found. The found item's properties become tokens, so an email can quote them.
What this automation does
The automation is one trigger and 2 actions, run in order:
- Trigger: A webhook is received (
WEBHOOK_RECEIVED, Webhooks) - Action 1: Find an item in a database (
NOTION_FIND_DB_ITEM, Notion) - Action 2: Send an email (
WP_SEND_EMAIL, WordPress)
When the webhook arrives, Zapify searches the Notion database for a matching item. If it finds one, the email goes out with the item's details.
Before you start
- An outside tool that can send a webhook, and its documentation for what the webhook contains.
- A Notion account, and an internal integration secret — create one at notion.so/profile/integrations. Notion's own guide is here.
- A Notion database named Customers with these properties: Name (title), Email (email), Plan (select), Account manager (text). Share it with your integration (Step 1 explains how).
PRO feature
Notion is a Zapify PRO integration and needs a Connection under Settings → Connections. The Webhooks trigger itself is free. The Send an email action is free.
How to build the automation
Step 1: Connect Notion
- In Notion, open My integrations and click New integration. Choose Internal, name it Zapify, and copy the Internal Integration Secret (it starts with
ntn_orsecret_). Notion's own walkthrough is here. - Share what Zapify may use. Open the Customers database in Notion, click the ••• menu, choose Connections, and add your integration. Notion hides anything that has not been shared, so Zapify cannot see it until you do.
- In WordPress, go to Settings → Connections and click Add New.

- Choose Notion, paste in the Integration secret, and name the connection something like Company Notion.

- Click Test. Zapify asks Notion who the integration is and answers Connected as "Zapify" with the integration's name. If the secret is wrong it says Notion refused the credentials. instead, so you find out before building anything.
- Save.
See Connections for how this screen works generally.
Step 2: Create a new automation
- In the WordPress admin, go to Zapify → Automations.
- Click Add New to open the builder.
- Name it clearly, such as Look up customers in Notion.

Step 3: Get the endpoint URL and capture a sample
- Click Add Trigger.

- Choose Webhooks as the app.

- Select A webhook is received.

- Copy the endpoint URL the builder shows and paste it into the sending service's webhook settings. Treat the URL as a credential — anyone who has it can send data to this automation.
- Click Listen, then send one test delivery from the service. Zapify captures it and builds the token list from the real fields, so you pick them rather than guess.
See Webhooks for signatures, sources and event types.
Step 4: Add the "Find an item in a database" action
- Click Add Action.

- Choose Notion as the app.

- Select Find an item in a database.

Step 5: Configure the "Find an item in a database" action
| Field | Required | What it does |
|---|---|---|
| Connection | Yes | The Notion connection from Step 1. |
| Database | Yes | The database to search. |
| Property to match | Yes | The property to look the item up by: Email. |
| Value to match | Yes | Insert the webhook payload's email-field token. |
Step 6: Add the "Send an email" action
-
Click Add Action again, below the Notion action.
-
Choose WordPress as the app.

- Select Send an email.

Step 7: Configure the email
| Field | Required | What it does |
|---|---|---|
| To | Yes | Your own address, or a team inbox. |
| Subject | Yes | For example: Customer found in Notion |
| Body | Yes | Insert the item's property tokens, for example the plan and account manager, and the Page URL token to link to the item. |

To send the email only when the item was found, open the action's Run this action only if setting and add a condition that Found equals yes. Conditions are a Zapify PRO feature. See Filters and conditions.
Step 8: Set the steps Live and save
Each trigger and action has its own Live / Off / Draft switch. A new automation starts as a Draft and does nothing until its steps are Live.
- Set the trigger and every action to Live.
- Click Save.

Step 9: Test it
Send a test delivery with an email that exists in Notion, then one that does not, and compare the runs in Zapify → Logs.
Tokens you can use
The A webhook is received trigger exposes these tokens. Insert them into any field with the {} button.
| Token | What it holds |
|---|---|
| Received at / Raw body / Event type / External ID | Always available. |
| One token per payload field | Appear once you have captured a sample with Listen. |
The Notion action makes Page ID, Page URL and Found (yes or no), and one token for each property of the item it found, available to later actions.
Not finding an item is not an error. Found is no and the run carries on, which lets a condition or a route decide what happens next. For a found item, each property is also available as a token named PROP_ followed by the property name in capitals, such as PROP_PLAN for a property called Plan.
Conclusion
With the Find an item in a database action you can look up first and decide next. To write to Notion instead, see creating a Notion item when a webhook is received.
FAQs
What happens if nothing matches?
The action succeeds with Found set to no. Use a condition on a later action to handle that case.
Which property types can I search by?
Title, text, number, select, status, checkbox, date, URL, email and phone properties.
Is this free in Zapify?
The A webhook is received trigger from Webhooks is free. The Notion action needs an active Zapify PRO licence and a Connection.
Why does Zapify say Notion cannot find the database or page?
Notion only shows an internal integration the pages and databases that have been shared with it. Open the database or page in Notion, click •••, choose Connections, and add your integration. Then reopen the field in Zapify; the lists are kept for about a minute. Notion's own steps are here.
Do I need to write any code?
No. The integration secret is the only thing you copy from outside Zapify.