Skip to main content
Search

Send handoffs to your CRM

When the assistant hands a conversation to your team, send the contact and the conversation to Kommo, Bitrix24, HubSpot, Pipedrive or another CRM through Make, n8n or Zapier.

When the AI assistant hands a conversation to people, it is usually a lead or a problem worth tracking. We have run the handoff request live with a test receiver, but not yet the whole chain with Make, n8n or Zapier (see Good to know). This recipe sends the customer's contact and the conversation to your CRM at that moment, through Make, n8n or Zapier, without code. It uses a webhook (see Webhooks) and the rule your platform already has, Handoff to a team → notify the team (see Automation rules).

1. Get an address that receives the data

Create a scenario or workflow that starts with a webhook and copy its address:

  • Make: a new scenario, module Webhooks > Custom webhook, Add, copy the address. Webhooks work on the free plan.
  • n8n: a new workflow, node Webhook, method POST, copy the Production URL and activate the workflow.
  • Zapier: a new Zap, trigger Webhooks by Zapier > Catch Hook, copy the address. Webhooks by Zapier is a premium app and needs a paid Zapier plan.

2. Add the webhook in the panel

In the panel, Admin > Integrations > Webhooks > New webhook: give it a name such as CRM, paste the address and set a secret. The panel asks for at least one event: tick conversation.assigned, then save. The webhook will also send that event, so step 4 starts with a filter.

3. Send it on every handoff

Open Admin > Productivity > Automations. The page opens on the tab New conversation; switch to the tab Conversation update and open the rule Handoff to a team → notify the team. Add the action Trigger webhook, pick the CRM webhook and type an event name, for example handoff.to_team. Save the rule.

The rule runs when a conversation moves to a team: when the assistant hands it over, and also when an agent moves it to another team. Then your scenario receives one request.

Before you map fields, check the address: on Admin > Integrations > Webhooks, the menu at the end of the CRM row has Send test. The panel says whether your scenario answered; Make, n8n and Zapier show the test request with the event webhook.test. Then send one real handoff: write to your chat and ask for a person. Make and Zapier learn the fields from the first request they receive.

4. Create the lead in your CRM

First let only handoffs through: right after the webhook add a filter that continues when event equals handoff.to_team (in Make a filter on the route, in n8n an If node, in Zapier Filter by Zapier). Then add the CRM step and fill it from the request:

CRM field Take from the request
Name payload.conversation.contact.first_name and last_name
Email payload.conversation.contact.email
Phone payload.conversation.contact.phone_number
Title or subject payload.conversation.subject, empty in chats; Conversation # with reference_number reads better
Note or description payload.conversation.last_contact_message: the customer's last message, without system lines, private notes and replies from your side
Source payload.conversation.inbox_name, for example the name of your website chat or Telegram bot
Link payload.conversation.panel_url: a ready link to the conversation in your panel

Ready modules for the CRM step:

  • Kommo: create a lead with a contact.
  • Bitrix24: add a lead.
  • HubSpot: create or update a contact, then a deal or a ticket.
  • Pipedrive: create a person, then a lead.

Do not use payload.conversation.last_message for the description: it is the last message of any kind, and at a handoff it is usually the system line about the team, such as "Assigned to Sales team by Support Assistant".

The link opens the conversation for agents who may see all conversations, such as admins.

What the request contains

{
  "event": "handoff.to_team",
  "timestamp": "2026-10-17T10:43:15Z",
  "payload": {
    "actor_id": 3,
    "conversation": {
      "uuid": "6b0d8b1e-5b1f-4a53-9f8e-0c9d3a1d2e44",
      "reference_number": "1423",
      "subject": "",
      "inbox_name": "Website chat",
      "assigned_team_id": 1,
      "last_message": "Assigned to Sales team by Support Assistant",
      "contact": {
        "first_name": "Maria", "last_name": "Rossi",
        "email": "maria@example.com", "phone_number": "+3725550000"
      },
      "last_contact_message": "Can someone call me about the Basic plan?",
      "panel_url": "https://yourcompany.epavdesk.com/inboxes/all/conversation/6b0d8b1e-5b1f-4a53-9f8e-0c9d3a1d2e44"
    }
  }
}

The conversation object has more fields than shown here, the same as in other webhook events. last_contact_message is empty when the customer has not written anything yet, for example in a conversation an agent started. A message with only a picture or a file is skipped, and a voice message counts with its transcript when voice messages are transcribed. panel_url uses the address of your support site.

Good to know

  • The request carries the customer's last message, not a summary of the whole conversation: often it is the request for a person, such as "Can I talk to someone?". To read the conversation, follow the link; in the panel, agents can ask the AI for a summary (see AI helpers for agents).
  • In a chat without a form, the contact is named Visitor and has no email or phone number, so the lead holds only the customer's message and the link. To get a name and an email, turn on the pre-chat form in the live chat inbox, for all chats or only before a handoff (see Live chat widget and Handoff to agents and back).
  • We ran the handoff live on 17 October 2026 with a test receiver (Webhook.site): the request with last_contact_message and panel_url arrived 1-2 seconds after the customer asked for a person. The same webhook also got conversation.assigned when the assistant took the new chat; the filter from step 4 drops it. The whole chain with Make, n8n or Zapier has not been run live yet.
  • Every request is signed with your secret in the X-Support-Signature header. n8n and Make can check it (see Webhooks). In Zapier keep the hook address private: it is the key to your scenario.
  • A request that fails is not repeated. If your scenario was off, those handoffs did not reach the CRM.

If nothing reaches the CRM

  • Send test says "Test webhook not delivered: the endpoint could not be reached.": the address in the webhook is wrong, or the scenario is off. In n8n the Production URL works only while the workflow is active; in Make the scenario must be on.
  • The test arrives, a real handoff does not: check that the rule Handoff to a team → notify the team is Enabled and has the action Trigger webhook with your CRM webhook, and that the conversation really moved to a team (the assistant's Fallback team is not None).
  • The request arrives, but no lead is created: the filter does not let it through. The rule sends the event name you typed in the action, so the filter must compare event with exactly that name, for example handoff.to_team.
  • Fields in the CRM are empty: a chat visitor who gave no email or phone has none in the request. Ask for them before the handoff with the contact form, see Handoff to agents and back.
Was this article helpful?