Skip to content
Browse articles
Account and organization

Custom webhooks

Send signed events to your own server when conversations open, close or get assigned, when messages arrive and when new users reach you, from Settings › Developer › Webhooks.

Agent44Updated 3 min read

On this page

Webhooks let your own systems react to what happens in your inbox. Point agent44 at a URL on your server, choose the events you care about, and agent44 sends each one there as it happens. Teams use them to log conversations in a CRM, post to a chat tool, update a data warehouse or kick off their own automations.

Events you can subscribe to#

Event

When it's sent

Conversation opened

A user started a conversation, in your app, the web messenger or by email.

Conversation closed

A teammate, the AI agent or a rule closed a conversation.

Conversation reopened

A closed conversation is open again.

Conversation assigned

A conversation was given to a teammate.

Conversation rated

The user rated a closed conversation.

Message

A reply from the user, a teammate, the AI agent or a bot. Internal notes are never sent.

Contact created

A new user or visitor reached you for the first time.

Contact signed in

An anonymous visitor signed in and got your app's user ID.

Nothing is sent for conversations marked as spam, or for data brought in by an import.

Add a webhook#

You need to be a workspace admin. Webhooks are in Settings › Developer › Webhooks.

  1. Choose Add webhook (or Add your first webhook if you have none yet).

  2. Enter the Endpoint URL: a public https:// address on your server.

  3. Add a Description so your team knows what it's for, like "CRM sync".

  4. Tick the Events to send.

  5. Choose Add webhook.

agent44 then shows the endpoint's Signing secret, starting with whsec_. It's shown only once, so copy it to your server straight away. Your server uses it to check that each request really came from agent44.

What your server receives#

Each event is a POST with a JSON body, signed the Standard Webhooks way. Your server should check the signature, then answer with any 2xx status quickly. Do the slow work after you've answered.

The full payloads, headers and code for checking signatures are in the Webhooks guide for developers.

Watch deliveries#

Open an endpoint to see its Recent deliveries: the last 50, with the event, time, attempts, the HTTP status your server answered, how long it took and any error. Choose Send again on a delivery to resend it.

If your server is down or answers with an error, agent44 retries, waiting longer each time, from a minute up to a day, for up to 8 attempts.

  • An endpoint that keeps failing shows Deliveries are failing, with the last answer.

  • One that fails for three days, or answers 410 Gone, is turned off and shows Turned off after it kept failing. Fix it, then save it with On ticked to start again.

Manage an endpoint#

On the endpoint's page you can:

  • change its URL, description and events;

  • turn it off and on with On;

  • rotate the Signing secret. The new one is shown once, and signatures made with the old one stop matching, so update your server at the same time;

  • Remove it. Its delivery history goes with it, and this can't be undone.

Rules for URLs#

The endpoint URL must use https:// on the standard port, with a public domain name. IP addresses, internal names and agent44's own addresses aren't accepted. A workspace can have up to 10 endpoints.

Webhooks are only visible to workspace admins, because endpoint URLs can contain tokens.

Did this answer your question?