Brainstack + Webhooks
Trigger an AI agent from n8n, Make or Zapier
Your workflow sends the data to the agent's webhook URL. The agent answers, and the workflow picks up the answer and carries on.
- n8n, Make, Zapier or any HTTP client
- One URL and one token per webhook
- 30 calls a minute, 2,000 a day
One webhook call
- 11:02Zapier sent a new form entry to the webhook
- 11:02Token checked, call queued
- 11:02Read the entry
- 11:03Sorted it: sales lead, high priority
- 11:03Wrote a summary and a reply draft
- 11:03Zapier read the answer and added the lead to the CRM
1 call · sorted, summarised and returned to Zapier
Answer read by Zapier
Type: sales lead, high priority.
Summary: a dental clinic with 12 people wants online booking from January.
Reply draft: Hi Ana, thanks for writing. Could we talk on Tuesday or Wednesday morning?
What a webhook call does
One URL per webhook, tied to one agent. Your workflow sends, the agent answers, your workflow carries on.
- Does it
Starts the agent
A POST with JSON from n8n, Make, Zapier or your own code.
- Reads
Returns the answer
Your workflow reads the status and the answer with a GET until it is done.
- Does it
No duplicate runs with a key
Send an Idempotency-Key header and a retried call is refused, not run again.
- Reads
Answers from what you send
On a webhook call the agent works with the data in the call, without its apps or your company memory.
- Does it
Stays within limits
30 calls a minute and 2,000 a day per webhook.
- Reads
Keeps a log
The last 20 calls are in the webhook's settings. Calls are kept 30 days.
Agents you can call from a workflow
Sorts what comes in. Called from a form workflow, it returns the type and a reply draft.
See this agentWrites copy. Called from a workflow, it returns the text for a post or an email, from the brief you send.
See this agentScores leads. Called with a new sign-up, it returns the score and the reason.
See this agentConnected in three steps
- 1
Add a webhook to an agent
In Brainstack, open Connections, Messaging, Add, Webhook, and pick the agent. Copy the URL and the token: the token is shown once.
Add webhook - 2
Call it from your workflow
n8n: an HTTP Request node. Make: the HTTP module. Zapier: Webhooks by Zapier. POST JSON with the token as a bearer.
- POST the JSON to the webhook URL
- Authorization: Bearer and your token
- Optional Idempotency-Key
- 3
Read the answer
The POST returns a result URL. Read it until the status is done, then use the answer in the next step.
status: done
What a webhook call can do
What a call does
- Start the agent the webhook belongs to
- Return the agent's answer and status
- Answer a wrong token with the same refusal every time
What a call never does
- Use the agent's apps or tools
- Read your company memory
- Call a URL you send it
- Run twice with the same Idempotency-Key
Only a fingerprint of the token is stored. Issue a new token or revoke it in the webhook's settings and the old one stops working at once.
Questions about webhooks
Which tools can call the webhook?
Any tool that can send an HTTP POST with JSON: n8n, Make, Zapier or your own code.
How does my workflow get the answer?
The POST answers at once with a call id and a result URL. Your workflow reads that URL until the status is done or failed.
Can the agent use its apps during a webhook call?
No. A webhook caller is treated as an outside guest: the agent answers from the data in the call and its own instructions, without its apps or your company memory.
What if the token leaks?
Issue a new token or revoke it in the webhook's settings. The full token is shown only once, and only a fingerprint of it is stored.
Are webhooks included?
Yes, in every plan. Prices are on the pricing page.