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.

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 youEight 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 goesAny public https URL, such as your own server or a URL an automation tool gives you.
Where you set it upIntegrations 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_bug

  • A 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

  • 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_back

  • A 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_email

  • 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.started

  • A 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

  1. Add your URL

    On Integrations, press Add a webhook, paste your URL and tick the events it should get.

  2. 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.

JavaScript
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
  }
}
  1. 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_you

  • API

    Send your replies to the customer’s chat, and read any chat in full.

    POST /api/v1/conversations/{id}/replies

  • Chat 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.