Chatbot webhooks
A chatbot webhook tells your own code when something happens in a chat. Deacon is the AI support chat on your site, and it can tell your server as soon as a customer reports a bug, leaves their email or asks for a person. Your code can open the issue and start your coding agent on it, or buzz your phone, so nobody has to watch the chat.
On every plan, including the free one.

acme.co/app/reportsSigned in as Sam
Hi! I’m Deacon, Acme’s AI assistant. How can I help you?
The export button does nothing.
I don’t have the answer to that. The team will get back to you about the export button at the email you’re signed in with.
Ask AI
Waiting for requests…
→POST /webhooks/deacon2009ms
✓Signature checked
{ "type": "visitor.reported_bug", "data": { "conversation": { "id": "yjc8zx44", … }, "message": { "untrusted": { "text": "The export button does nothing." } } }}
{ "type": "visitor.reported_bug", … }
✓startAgentchat yjc8zx44
✓notify“Sam reported a bug”
✓openIssue#142
Your server← visitor.reported_bug
✓ startAgent✓ notify✓ openIssue
Your phone
Acme alertsnow
Sam reported a bug
“The export button does nothing.”
Your tracker
#142BugIn review · PR #143
The export button does nothing
BugPR #143
>Fix the bug a customer reported in Deacon chat yjc8zx44
●deacon - get_conversation (MCP)(id: "yjc8zx44")
●deacon - list_site_errors (MCP)(range: "7d")
●Your site has logged an error on /app/reports since today's release: rows.map is not a function. The reports API now pages its rows, and exportReport still reads them as a list.
●Update(src/reports/csv.ts)
- const csv = rows.map(toCsv)
+ const csv = rows.data.map(toCsv)
●Bash(npm test -- reports)
⎿12 passed
●Opened pull request #143
Your agent has a fix ready
Sped up. Acme and Sam are made up for this example.
Hear about it where you already work
There’s nothing to move to
Tickets stay in your tracker, leads in your CRM and your team in Slack. Deacon has no helpdesk for you to adopt.
You pick what you hear about
Choose the events for each URL, so a chat starting doesn’t wake anyone up.
A deploy doesn’t lose you a bug report
Deacon tries each event again for about three days, and every owner is emailed once it’s been failing for 30 minutes. One event your server chokes on can’t hold up the rest.
At a glance
| What it tells you | Eight events. When a customer asks for a person, leaves their email, writes back, or is signed in and waiting for a reply. When a chat starts or ends. When someone reports a bug or asks for a feature. What each one sends |
|---|---|
| Where it goes | Any public https URL, such as your own server or a URL an automation tool gives you. |
| Where you set it up | Integrations in the sidebar, where only an owner can add one. A Read or Read and write key can also add, change and remove its own through the API. |
What your code can do with each event
Pick an event on Integrations, and your own code does the rest.
Bugs and asks
A visitor reported a bug
Start your coding agent on each bug report
Your code opens the issue and starts your coding agent on it. The agent reads the chat and your site’s errors through Deacon’s MCP server, so there’s a fix waiting for you to check.
visitor.reported_bugInvite emails never arrive
acme.co/app/team
Claude Code is fixing it
Fix invite emailsReady to checkReviewA visitor asked for a feature
Tell everyone who asked for a feature when it ships
Your code keeps each ask with its chat, word for word. The day you ship it, a script replies to every one of those chats under your name.
visitor.requested_feature
Nobody left waiting
A visitor asked for a person
Answer from your phone when someone asks for you
Your own bot posts their words and the page they’re on to Slack or Telegram. Reply in the thread, and your bot sends it to their chat through Deacon’s API.
visitor.asked_for_person#support
Your bot
Sam asked for you on /billing
“Can someone look at my invoice?”
You
Sorted, I’ve refunded the extra seat.
Sent to Sam’s chat
Your bot
Sam wrote back: “Perfect, thanks!”
Handed back to Deacon
A visitor wrote back to a teammate
See their answer in the same thread
When they write back, your bot adds it to the thread, so you can keep going from your phone. When you’re done, it hands the chat back to Deacon.
visitor.wrote_backA signed-in visitor is waiting for a reply
Hear first when a big customer is waiting
Your server verified their sign-in, so your code knows who they are. It looks up their plan and messages you at once if they’re on your biggest one.
visitor.waiting_signed_in
Your records
A visitor left their email
Add someone to your CRM when they leave their email
Your code adds them to HubSpot or wherever you keep leads, with what they asked.
visitor.left_emailLeads
jo@fernbrook.ioNew
“Do you do annual billing?”
acme.co/pricing · Just now
dev@quillstack.io
“Does it work with Next.js?”
acme.co/docs · Yesterday
A chat started
Spot the accounts that keep getting stuck
Your code logs every chat a signed-in customer starts against their account, so you can see which accounts need help most.
conversation.startedA chat ended
Keep your own copy of every chat
The webhook carries the chat’s messages, so your code can store them beside the customer’s account.
conversation.ended
Three steps to your first webhook
Add your URL
On Integrations, press Add a webhook, paste your URL and tick the events it should get.
Handle each event
Answer quickly and do the slow work after. A webhook can arrive twice, or out of order, so keep the ids you’ve handled.
function handle(event) {
switch (event.type) {
case 'visitor.reported_bug':
return openTicket(event.data.message.untrusted.text);
case 'visitor.left_email':
return addLead(event.data.message.untrusted.email);
default:
return; // ping, and anything else you didn't ask to handle
}
}Send a test
One arrives straight away, and Integrations shows what your server said back.
More ways to connect Deacon
MCP server
Your coding agent reads the same bug reports beside your site’s errors, and works on the fix in your own repo.
get_needs_youAPI
Send your replies to the customer’s chat, and read any chat in full.
POST /api/v1/conversations/{id}/repliesChat transcripts
Download every chat as a CSV whenever you like.
Chat ID, Time, From, Message, Page
Point one at your own server
Add a webhook, press Send test, and watch it land. You get 50 answers a month on the free plan, and it needs no card.
What to look for in a chatbot webhook
Check these in any chat tool that sends webhooks.
A test you can send yourself
You shouldn’t need a real bug report to find out your handler is broken. Look for a button that sends one whenever you like.
A signature on every request
Anyone who finds your URL can post to it. A signed request lets your code turn away anything the chat tool didn’t send.
Retries that last
An hour of downtime shouldn’t cost you an hour of events. Look for retries over hours or days, and an email when they keep failing.
A record of what was sent
When a handler misbehaves, you want the exact body that arrived and what your server answered, without adding logging first.
A secret you can swap
If a secret leaks, you need a new one without dropping events, so look for a few days when the old and the new both work.
Customers’ words treated as data
A webhook carries what strangers typed. If your code hands their words to an AI agent, it should read them as a report to check, never as instructions.
FAQ
Questions about chatbot webhooks
Yes, from your own code. A bug report reaches your server, and your code starts the agent, for example Claude Code in a GitHub Action. The agent signs in to Deacon’s MCP server with a Coding agent key you make on Integrations, under Use a key instead. Deacon never touches your code.
Integrations keeps the newest 25 requests to each webhook, with the body Deacon sent and, when one failed, what your server sent back. An owner can resend any that didn’t get through. A webhook that’s still failing after five days is turned off, and every owner is emailed. Anything your server missed stays in the API’s list of events for 30 days, so your code can catch up.
A model reads each question and decides whether it’s reporting something broken, so it can miss one, and you get one event a chat. Every chat is still in Conversations.
Trust that it came from Deacon, not what a customer typed. Anything a stranger wrote sits in one field marked untrusted, so treat it as text. The docs show how to check one really came from Deacon. A button in the webhook’s menu on Integrations, Check it refuses fake requests, sends one signed with the wrong secret and tells you whether your code turned it away.
Yes, for a webhook added on Integrations. Make a new secret there and the old one keeps working for 7 days, so you have a week to put the new one in your code.
No. There’s no Slack app and no listing on Zapier, Make or n8n. A webhook can send to a URL one of those tools gives you, or to your own code, and that does the rest.
Hear about the next bug report as it happens
It takes about five minutes to install. The free plan is 50 answers a month, for as long as you like.