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.
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
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 need | Why |
|---|---|
| Something that sends the webhook | A 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_KEY | The 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.

| # | What you see |
|---|---|
| 1 | Your new workflow in the sidebar. |
| 2 | The Start block. Select it, then delete it. |
Watch this step
Add Webhook Trigger from the Toolbar

| # | What to do |
|---|---|
| 1 | Open the Toolbar tab. |
| 2 | Under Triggers, click Webhook Trigger. |
Watch this step
Copy the URL and the token

| # | What you see |
|---|---|
| 1 | Webhook URL: where the other app sends its calls. Use the copy icon on the right. |
| 2 | Require Authentication: on by default. Leave it on. |
| 3 | Authentication Token: generated for you. Every call must send it as Authorization: Bearer <token>. Treat it like a password. |
| 4 | The 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.

| # | What you see |
|---|---|
| 1 | Our four fields: orderId, customer, item and amount. |
| 2 | amount is a Number; the rest are String. |
| 3 | The 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

| # | Field | Value |
|---|---|---|
| 1 | Deduplication 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. |
| 2 | Acknowledgement | custom (the default replies 200 with {"message":"Webhook processed"}) |
| 3 | Response Status Code | 202 |
| 4 | Response 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 <:

| # | What you see |
|---|---|
| 1 | Webhook 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.
| # | What you see |
|---|---|
| 1 | The message. The blue references are replaced with the values of each call. |
| Reference | What it holds | Our test call |
|---|---|---|
<webhooktrigger> | The whole body (plus query etc., below) | |
<webhooktrigger.orderId> | A body field | A-2001 |
<webhooktrigger.amount> | Numbers stay numbers | 199 |
<webhooktrigger.order.id> | Nested fields: dots | |
<webhooktrigger.query.source> | URL parameters, e.g. …?source=shop | shop |
<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

| # | Field | Value |
|---|---|---|
| 1 | Model | gpt-5-mini |
| 2 | API Key | {{OPENAI_API_KEY}} |
Press Shift + L to tidy the canvas:

| # | Block | What it does |
|---|---|---|
| 1 | Webhook Trigger | Starts the workflow for every accepted call |
| 2 | Agent | Writes 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).

| # | What you see |
|---|---|
| 1 | Version v1 (live). |
| 2 | Live. 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}'
| # | What you see |
|---|---|
| 1 | The call: POST, the token in Authorization: Bearer, and the order as JSON. |
| 2 | Our custom reply, in 108 ms: HTTP 202 Accepted and {"ok":true,"message":"Order received"}. |
Watch this step
A call without the token is refused

| # | What you see |
|---|---|
| 1 | Same call without the header: 401 Unauthorized and Unauthorized - Invalid authentication token. No run starts. |
Watch this step
The run in Logs
Open Logs.

| # | What you see |
|---|---|
| 1 | The run of Receive a webhook, a few seconds after the call. |
| 2 | Trigger: Generic. That's how Logs labels webhook runs. |
Watch this step
The payload BeeGentic received
Click the run.

| # | What you see |
|---|---|
| 1 | Trigger: Generic (the webhook). |
| 2 | Workflow Input: exactly the JSON we sent. These are the values behind <webhooktrigger.…>. |
Watch this step
The Agent's heads-up

| # | What you see |
|---|---|
| 1 | Workflow 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:
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:
| Call | Reply |
|---|---|
POST with the right token | 202 + our custom body (0.1–1.7 s), run started |
POST without a token, or with a wrong one | 401 Unauthorized - Invalid authentication token, no run |
Same orderId again (deduplication on) | 202, no second run |
POST …?source=shop | 202; the run's input had "query": {"source": "shop"} |
GET or PUT with Accept Other HTTP Methods off | 405 Method not allowed |
GET and PATCH with it on | 202; the input had "method": "GET" / "PATCH" |
Custom header X-Webhook-Secret | accepted; Authorization: Bearer then refused (401) |
| Expose Request Headers on | x-event-name available; the secret header was withheld |
| Broken JSON | 400 Invalid payload format |
| 11 MB body | 413 Request body too large |
| A URL that isn't deployed | 404 Not Found |
⚡ Make it useful
Add a block after the Agent and use <agent.content> (the heads-up) and <webhooktrigger.…> (the order):
| You want | Add after the Agent |
|---|---|
| Post each order in your team channel | Slack → Send Message: <agent.content> |
| Keep an order log | Notion → Add Database Row: order ID, customer, amount |
| A spreadsheet of orders | Google Sheets → Append Data |
| Email the customer a thank-you | Gmail → Send Email |
| Announce big sales on social | LinkedIn or Bluesky |
| Only some orders | A Condition block after the trigger, e.g. <webhooktrigger.amount> > 100 |
| A daily summary instead of one message per order | Save orders to a sheet, and add a Schedule workflow that reads it once a day |
| Start from new articles instead | RSS Feed |
Ideas
| Idea | Who sends the webhook |
|---|---|
| New order → Slack heads-up | Your shop (Shopify, WooCommerce, Stripe…) |
| Contact form → AI reply draft in Gmail | Your website's form handler |
| Failed deploy → incident summary | Your CI/CD (GitHub Actions curl step) |
| Nightly job finished → report in Notion | A cron job |
| No-code glue | Zapier or Make "Webhooks" action |
🛠️ Troubleshooting
| Reply or problem | Why | Fix |
|---|---|---|
401 Unauthorized - Invalid authentication token | Token missing, wrong, or in the wrong header | Send 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 configured | Require Authentication is on but the token field is empty | Enter a token (or turn auth off only for harmless tests), then Update. |
404 Not Found | The workflow isn't deployed, or the URL is wrong | Check the button says Live. Copy the URL from the block again. After undeploying, the URL stops working until you deploy again. |
405 Method not allowed | The sender uses GET, PUT, PATCH or DELETE | Send POST, or turn on Accept Other HTTP Methods and Update. |
400 Invalid payload format | The body isn't valid JSON (or form data) | Check quotes and commas, and send Content-Type: application/json. |
413 Request body too large | Over 10 MB | Send a link to the file instead of the file itself. |
429, 402 or 503, with Retry-After | 429: too many calls at once. 402: your plan's usage limit or credits. 503: BeeGentic is briefly busy | Retry after the number of seconds in Retry-After. For 402, check your credits and plan. |
| The sender times out | Rare: the reply doesn't wait for the workflow | Check 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 Logs | A duplicate: same Deduplication Field value within 7 days | Use a new ID, or clear the field. |
| A reference is empty | The 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 text | Webhooks reply before the workflow runs | Use the API deployment with a Response block (see the Drawer in Part 1). |
Start a workflow from an RSS feed
Run a workflow every time a blog, news site or podcast publishes something new. Use the article's title, link, author and text in your blocks. Step by step with a narrated video and real automatic runs.
Send email with Gmail
Send, draft, reply to, search and label Gmail messages from a workflow, or start a workflow when an email arrives. Step by step with a narrated video and a real result.