Lewati ke konten

Set Up Salesbot

Konten ini belum tersedia dalam bahasa Anda.

You can add the Send data to n8n step to your Salesbot. This step sends the lead, its contacts and the chat history to n8n when the bot reaches it.

  1. In Kommo, go to Automations → Bots and open your Salesbot, or click Create bot.
  2. In Add next step, choose Widget.
  3. Find n8n by KWID and click Add. The Send data to n8n step appears.
  4. Paste the Production URL of your n8n Webhook node into the Webhook URL field.
  5. Click Save.
  • Name (optional) – a name that helps you find this step in the request log.
  • Authentication – choose the same option as in your Webhook node in n8n. Leave None if the node has no authentication.

The n8n step has two exits. Connect each one to the step that should run next:

  • Sent – n8n received the data.
  • Not sent – the request failed.
  1. Click Test request in the step.
  2. Choose a lead and click Send request.
  3. Check that your n8n workflow received the data.

Everything n8n sends back is available in the next steps of your bot as {{json.response}}:

  • If n8n returns text, {{json.response}} contains that text.
  • If n8n returns a JSON object, each of its fields becomes a separate variable, for example {{json.response.message_text}}.

After you send a test request, the test window lists the variables from the n8n response. Click a variable to copy it and use it in the next steps of your bot.