Skip to content

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
Customer supportCalled from Zapier · new contact form entry

One webhook call

  1. 11:02Zapier sent a new form entry to the webhook
  2. 11:02Token checked, call queued
  3. 11:02Read the entry
  4. 11:03Sorted it: sales lead, high priority
  5. 11:03Wrote a summary and a reply draft
  6. 11:03Zapier read the answer and added the lead to the CRM

1 call · sorted, summarised and returned to Zapier

Answer read by Zapier

Statusdone
AgentCustomer support

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.

Connected in three steps

  1. 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 webhookAgent: Customer support
  2. 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. 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: doneanswer and messages

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.

Pick an agent to call from your workflow