BeeGenticResources
Tool guides

Start a workflow from a webhook

Give any app, website or script a webhook URL that starts your BeeGentic workflow. Secure it with a token, read the JSON payload in your blocks, reply with a custom status and body. Step by step with a narrated video, a copy-ready curl command and real test calls.

What you'll build: an online shop (or any app, form or script) sends a new order to your webhook URL, BeeGentic answers 202 right away, and an AI turns the order into a one-sentence heads-up for the sales team. Two blocks: Webhook Trigger → Agent. About 5 minutes.

What BeeGentic can do with the Webhook TriggerAll tools →

Connect with: ✨ No account needed, just the URL and a token · You need: an app or script that can send an HTTP request, and an AI key for the Agent

🔗 A unique URL per workflow 🔐 Token auth (Bearer or your own header) 📦 JSON, form and multipart bodies (up to 10 MB) 🔤 Every body field, plus URL query parameters ↩️ Custom reply: status code and JSON body 🧹 Skip duplicates (7 days) 🧾 Optional: GET, PUT, PATCH, DELETE and request headers

Not supported: replying with the workflow's result (the webhook answers immediately, before the workflow runs; use the API deployment with a Response block for that), HMAC signature checks for a specific provider (use that app's own trigger if BeeGentic has one), token auth in a plain link (auth is header-based), and IP allow-lists in the editor.

Narrated walkthrough (about 2 min), with captions (CC button). Each step below also has a short silent clip. The orange numbers in each screenshot match the # column under it. Click a screenshot to enlarge it.

Before you start

You needWhy
Something that sends the webhookA shop, form tool, CRM, Zapier/Make, a cron job, or curl in a terminal. It must let you set the URL and add a header.
An AI key saved as a secret, e.g. OPENAI_API_KEYThe Agent writes the heads-up. See References and secrets.

Part 1: Add the Webhook Trigger

Create the workflow

+ New workflow → name it Receive a webhook. The webhook starts this workflow, so select the Start block and press Delete.

New workflow

#What you see
1Your new workflow in the sidebar.
2The Start block. Select it, then delete it.

Watch this step

Add Webhook Trigger from the Toolbar

Toolbar, Webhook Trigger

#What to do
1Open the Toolbar tab.
2Under Triggers, click Webhook Trigger.

Watch this step

Copy the URL and the token

Webhook URL and token

#What you see
1Webhook URL: where the other app sends its calls. Use the copy icon on the right.
2Require Authentication: on by default. Leave it on.
3Authentication Token: generated for you. Every call must send it as Authorization: Bearer <token>. Treat it like a password.
4The block on the canvas: Run on an incoming HTTP request.

Watch this step

Describe the payload (optional)

Scroll to Input Format and add one field per value you expect. Use Add input (the +) for each new field.

Input Format

#What you see
1Our four fields: orderId, customer, item and amount.
2amount is a Number; the rest are String.
3The block now lists them: carrying orderId, customer +2.

Input Format documents what callers should send. The webhook still accepts any JSON: fields you didn't list are passed through too.

Watch this step

Skip duplicates and choose the reply

Deduplication and acknowledgement

#FieldValue
1Deduplication Field (Optional)orderId: a second call with the same order ID within 7 days is answered but doesn't start a run. Use a dot path for nested values, e.g. event.id.
2Acknowledgementcustom (the default replies 200 with {"message":"Webhook processed"})
3Response Status Code202
4Response Body{"ok": true, "message": "Order received"}

Watch this step

Part 2: Use the payload in the Agent

Add an Agent

With Webhook Trigger selected, click Toolbar → Agent. It connects automatically. In Messages, type <:

References

#What you see
1Webhook Trigger inserts <webhooktrigger>: the whole payload as JSON. Handy when the Agent should read everything.

Watch this step

Insert single fields

For one field, type it yourself: <webhooktrigger. plus the field name and >. Press Esc, clear the <, then type:

New order <webhooktrigger.orderId> from <webhooktrigger.customer>: <webhooktrigger.item> for $<webhooktrigger.amount>. Write a one-sentence, friendly heads-up for our sales team chat.

Agent message

#What you see
1The message. The blue references are replaced with the values of each call.
ReferenceWhat it holdsOur test call
<webhooktrigger>The whole body (plus query etc., below)
<webhooktrigger.orderId>A body fieldA-2001
<webhooktrigger.amount>Numbers stay numbers199
<webhooktrigger.order.id>Nested fields: dots
<webhooktrigger.query.source>URL parameters, e.g. …?source=shopshop
<webhooktrigger.method>GET, POST… (only with Accept Other HTTP Methods on)
<webhooktrigger.headers.x-event-name>A request header (only with Expose Request Headers on; credential headers are never included)order.created

Watch this step

Choose the model and key

Model and key

#FieldValue
1Modelgpt-5-mini
2API Key{{OPENAI_API_KEY}}

Press Shift + L to tidy the canvas:

Finished workflow

#BlockWhat it does
1Webhook TriggerStarts the workflow for every accepted call
2AgentWrites the heads-up

Watch this step

Part 3: Deploy and send a test call

Deploy

The URL only accepts calls while the workflow is deployed. Click Deploy (top right).

Deployed

#What you see
1Version v1 (live).
2Live. The URL is now listening. Changed something later? Click Update to deploy it.

Watch this step

Send a test order

Copy this into a terminal (macOS, Linux, or Windows with Git Bash or WSL). Paste your Webhook URL and your token:

WEBHOOK_URL="paste your Webhook URL here"
WEBHOOK_TOKEN="paste your Authentication Token here"

curl -i -X POST "$WEBHOOK_URL" \
  -H "Authorization: Bearer $WEBHOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"orderId":"A-2001","customer":"Maria Lopez","item":"Pro plan (annual)","amount":199}'

curl, 202

#What you see
1The call: POST, the token in Authorization: Bearer, and the order as JSON.
2Our custom reply, in 108 ms: HTTP 202 Accepted and {"ok":true,"message":"Order received"}.

Watch this step

A call without the token is refused

401

#What you see
1Same call without the header: 401 Unauthorized and Unauthorized - Invalid authentication token. No run starts.

Watch this step

The run in Logs

Open Logs.

Logs

#What you see
1The run of Receive a webhook, a few seconds after the call.
2Trigger: Generic. That's how Logs labels webhook runs.

Watch this step

The payload BeeGentic received

Click the run.

Run input

#What you see
1Trigger: Generic (the webhook).
2Workflow Input: exactly the JSON we sent. These are the values behind <webhooktrigger.…>.

Watch this step

The Agent's heads-up

Run output

#What you see
1Workflow Output: content is what the Agent wrote.

Our real run (run ID f7cb0226-04a4-4bc5-ad31-8ce07dadd520, 3.54 s, 1 credit), for order A-2001:

Hey team — new order A-2001: Maria Lopez just purchased the Pro plan (annual) for $199; please welcome her and update the CRM.

After testing, we undeployed the demo workflow, so its URL now answers 404.

Watch this step

Example settings

Trigger:               Webhook Trigger
Require Authentication: on (Authorization: Bearer <token>)
Input Format:          orderId (String), customer (String), item (String), amount (Number)
Deduplication Field:   orderId
Acknowledgement:       custom, status 202, body {"ok": true, "message": "Order received"}
Agent model:           gpt-5-mini
Agent message:         New order <webhooktrigger.orderId> from <webhooktrigger.customer>:
                       <webhooktrigger.item> for $<webhooktrigger.amount>.
                       Write a one-sentence, friendly heads-up for our sales team chat.

🧪 What we tested

All on our dev workspace, against a deployed workflow, on 2026-10-03:

CallReply
POST with the right token202 + our custom body (0.1–1.7 s), run started
POST without a token, or with a wrong one401 Unauthorized - Invalid authentication token, no run
Same orderId again (deduplication on)202, no second run
POST …?source=shop202; the run's input had "query": {"source": "shop"}
GET or PUT with Accept Other HTTP Methods off405 Method not allowed
GET and PATCH with it on202; the input had "method": "GET" / "PATCH"
Custom header X-Webhook-Secretaccepted; Authorization: Bearer then refused (401)
Expose Request Headers onx-event-name available; the secret header was withheld
Broken JSON400 Invalid payload format
11 MB body413 Request body too large
A URL that isn't deployed404 Not Found

⚡ Make it useful

Add a block after the Agent and use <agent.content> (the heads-up) and <webhooktrigger.…> (the order):

You wantAdd after the Agent
Post each order in your team channelSlack → Send Message: <agent.content>
Keep an order logNotion → Add Database Row: order ID, customer, amount
A spreadsheet of ordersGoogle Sheets → Append Data
Email the customer a thank-youGmail → Send Email
Announce big sales on socialLinkedIn or Bluesky
Only some ordersA Condition block after the trigger, e.g. <webhooktrigger.amount> > 100
A daily summary instead of one message per orderSave orders to a sheet, and add a Schedule workflow that reads it once a day
Start from new articles insteadRSS Feed

Ideas

IdeaWho sends the webhook
New order → Slack heads-upYour shop (Shopify, WooCommerce, Stripe…)
Contact form → AI reply draft in GmailYour website's form handler
Failed deploy → incident summaryYour CI/CD (GitHub Actions curl step)
Nightly job finished → report in NotionA cron job
No-code glueZapier or Make "Webhooks" action

🛠️ Troubleshooting

Reply or problemWhyFix
401 Unauthorized - Invalid authentication tokenToken missing, wrong, or in the wrong headerSend Authorization: Bearer <token>, or the exact Secret Header Name you set (only that one is accepted). Copy the token again; no spaces or quotes.
401 Unauthorized - Authentication required but no token configuredRequire Authentication is on but the token field is emptyEnter a token (or turn auth off only for harmless tests), then Update.
404 Not FoundThe workflow isn't deployed, or the URL is wrongCheck the button says Live. Copy the URL from the block again. After undeploying, the URL stops working until you deploy again.
405 Method not allowedThe sender uses GET, PUT, PATCH or DELETESend POST, or turn on Accept Other HTTP Methods and Update.
400 Invalid payload formatThe body isn't valid JSON (or form data)Check quotes and commas, and send Content-Type: application/json.
413 Request body too largeOver 10 MBSend a link to the file instead of the file itself.
429, 402 or 503, with Retry-After429: too many calls at once. 402: your plan's usage limit or credits. 503: BeeGentic is briefly busyRetry after the number of seconds in Retry-After. For 402, check your credits and plan.
The sender times outRare: the reply doesn't wait for the workflowCheck the URL and your network/firewall. The workflow's own length doesn't matter; it runs after the reply.
202/200 but no run in LogsA duplicate: same Deduplication Field value within 7 daysUse a new ID, or clear the field.
A reference is emptyThe field isn't in the payload, or the name differs (case matters)Open the run in Logs → Workflow Input and copy the exact field name.
The reply doesn't show the Agent's textWebhooks reply before the workflow runsUse the API deployment with a Response block (see the Drawer in Part 1).

On this page