Notion Automations
How to Append Content to a Notion Page When a WordPress Hook Fires
To log any WordPress event in Notion, use Zapify's free A WordPress hook fires trigger with the Append content to a page action. It suits plugins Zapify does not cover natively, because any hook can start the automation.
What this automation does
The automation is one trigger plus one action:
- Trigger: A WordPress hook fires (
UTIL_CUSTOM_HOOK, Utilities) - Action: Append content to a page (
NOTION_APPEND_TO_PAGE, Notion)
When the hook fires, Zapify adds a line to your Notion page with the hook name and the values it passed.
Before you start
- The exact hook name, for example
woocommerce_order_status_completed. Plugin documentation usually lists them. - A Notion account, and an internal integration secret — create one at notion.so/profile/integrations. Notion's own guide is here.
- A Notion page, such as Event log, shared with your integration (Step 1 explains how).
PRO feature
Notion is a Zapify PRO integration and needs a Connection under Settings → Connections. The Utilities trigger itself 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 Event log page 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 Log a hook in Notion.

Step 3: Add the "A WordPress hook fires" trigger
- Click Add Trigger.

- Choose Utilities as the app.

- Select A WordPress hook fires.
- Fill in the fields:
| Field | Required | What it does |
|---|---|---|
| Hook name | Yes | The name passed to do_action(). |
| Arguments to capture | No | How many values the hook passes. Defaults to 1. |
| Priority | No | Raise it to run after other plugins finish writing their data. Defaults to 10. |
If you don't know how many arguments the hook passes, press Listen, make the hook fire (visit the page or submit the form), and Zapify shows what it captured.

Step 4: Add the "Append content to a page" action
- Click Add Action.

- Choose Notion as the app.

- Select Append content to a page.

Step 5: Configure the action
| Field | Required | What it does |
|---|---|---|
| Connection | Yes | The Notion connection from Step 1. |
| Page | Yes | Choose Event log. |
| Content | Yes | For example: - {{trigger:HOOK_NAME}}: followed by the Argument 1 token. |
Step 6: 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 7: Test it
Make the hook fire, for example by visiting the page or running the action that triggers it, and check Notion.
Tokens you can use
The A WordPress hook fires trigger exposes these tokens. Insert them into any field with the {} button.
| Token | What it holds |
|---|---|
| Hook name | The hook that fired. |
| Argument 1, 2, 3… | One per captured argument, in order. |
The Notion action makes Page ID available to later actions.
Conclusion
With the A WordPress hook fires trigger and the Append content to a page action, nothing on your site is out of reach. For the free email version, see sending an email when a WordPress hook fires.
FAQs
How do I find the hook name?
The plugin's documentation usually lists its hooks. You can also press Listen in the trigger and make the event happen.
What if the argument is an object?
Zapify also exposes a token for each property inside it.
Is this free in Zapify?
The A WordPress hook fires trigger from Utilities 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.