Skip to content

Notion Automations

How to Find a Notion Database Item and Send an Email When a WordPress User Registers

To check new users against a list kept in Notion, use Zapify's free A user registers trigger with the Find an item in a database action, then send an email. It works for approved-member lists, partner lists and invite lists you already maintain in Notion.

What this automation does

The automation is one trigger and 2 actions, run in order:

  • Trigger: A user registers (WP_USER_REGISTERS, WordPress)
  • Action 1: Find an item in a database (NOTION_FIND_DB_ITEM, Notion)
  • Action 2: Send an email (WP_SEND_EMAIL, WordPress)

When a user registers, Zapify looks for their email in a Notion database. When it finds a match, the email tells your team who they are.

Before you start

  • A WordPress site that allows registration, or another way users are created.
  • 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 Approved members with these properties: Name (title), Email (email), Tier (select). 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 WordPress trigger used here is free. The Send an email action is free.

How to build the automation

Step 1: Connect Notion

  1. In Notion, open My integrations and click New integration. Choose Internal, name it Zapify, and copy the Internal Integration Secret (it starts with ntn_ or secret_). Notion's own walkthrough is here.
  2. Share what Zapify may use. Open the Approved members 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.
  3. In WordPress, go to Settings → Connections and click Add New.

Open the Connections tab

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

Add the Notion connection

  1. 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.
  2. Save.

See Connections for how this screen works generally.

Step 2: Create a new automation

  1. In the WordPress admin, go to Zapify → Automations.
  2. Click Add New to open the builder.
  3. Name it clearly, such as Check new users against Notion.

Create a new automation

Step 3: Add the "A user registers" trigger

  1. Click Add Trigger.

Add a trigger

  1. Choose WordPress as the app.

Select WordPress as the trigger

  1. Select A user registers.

Select A user registers

Step 4: Add the "Find an item in a database" action

  1. Click Add Action.

Add an action

  1. Choose Notion as the app.

Select Notion as the action

  1. Select Find an item in a database.

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 User email token.

Step 6: Add the "Send an email" action

  1. Click Add Action again, below the Notion action.

  2. Choose WordPress as the app.

Select WordPress as the action

  1. Select Send an email.

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: Approved member registered: then the User email token
Body Yes Include the Display name token and the item's Page URL token.

Edit the Send an email action

To send the email only for matches, 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.

  1. Set the trigger and every action to Live.
  2. Click Save.

Set the automation live

Step 9: Test it

Register a user whose email is in the Notion list, then one whose email is not, and compare the two runs in Zapify → Logs.

Tokens you can use

The A user registers trigger exposes these tokens. Insert them into any field with the {} button.

Token What it holds
User email The new account's email address.
Username / Display name The login name and the public name.
First name / Last name Name parts, if set.
User role / User ID The account's role and numeric ID.
Registration date When they registered.

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 continues, so a condition can decide what happens next.

Conclusion

With the A user registers trigger and the Find an item in a database action, your Notion list now guides what happens on your site. To add users to a list, see creating a Notion item when a user registers.

FAQs

Does the email match ignore capitals?

Keep addresses in the same case in Notion and on your site to be safe, because Notion matches the stored text.

Can I look up by username instead?

Yes. Choose a text property for Property to match and insert the Username token.

Is this free in Zapify?

The A user registers trigger from WordPress 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.

Was this page helpful?