Process overview
This detailed guide will walk you through the process of integrating the powerful workflow automation tool, n8n, with your Kommo CRM , using integration ByteGPTThis connection will allow you to create intelligent chatbots and automate conversations in advanced ways.
Integration consists of configuring the ByteGPT inside the Kommo to act as a bridge, connecting to a workflow (workflow) specific to n8n. This flow in n8n, in turn, will be able to utilize the power of the models OpenAI to process and respond to messages. Finally, a Salesbot na Kommo will be configured to trigger and manage this interaction.
Step 1: Setting Up the Integration ByteGPT na Kommo
Go to settings and find the ByteGPT
- In the left side menu of the Kommo, click on “Settings”.
- In the “Integrations” section, use the search bar and type “ByteGPT".
- Click on the integration “ByteGPT+ (Plus) via Bytebio” to open your settings.
Add provider n8n (chat)
- Inside the settings window ByteGPT, in the “Settings” tab, locate the “AI Providers” section and click on “Add +".
- A “Select the Providers” window will appear. From the drop-down list, select the “n8n – Chat Trigger".
- Upon selection, two new fields will appear: "OpenAI Key" and "Chat Trigger URL." These fields will be populated in the following steps.
Step 2: Creating and configuring the workflow in n8n
Download the template for n8n: JSON (Chat and Webhook Trigger)
Import the Template into n8n
- Access your n8n account and create a new workflow (“My workflow 1” or a new one).
Click on the three-dot menu (…) located in the top right corner and select “Import from File…". - Select the .json file that you just downloaded.
The workflow with three main nodes will load on your screen: “When chat message received","OpenAI Message Assistant"and "Reply to Webhook".
Configure the OpenAI node
- Click on the node “OpenAI Message Assistant” to open your settings.
- In the field "Credential to connect with", you'll need to add your OpenAI credentials. If you already have one set up, select it from the list. Otherwise, create a new one.
- Make sure the other parameters are correct as per the imported template
Activate Workflow and run a test
- In the top right corner of the n8n screen, activate the workflow by moving the “Inactive" for "Active".
- To ensure everything is working, open the test chat window by clicking “Open chat” and send a test message, such as “Good morning.”
- Watch the flow run. If the nodes turn green and you see the wizard respond, the test was successful.
Get Chat URL (Webhook)
- Click on the first node, “When chat message received".
- In the parameters panel on the left, you will find the field “Chat URL“. This is the URL that connects to Kommo to your workflow n8n.
- Click to copy URL.
Step 3: Finalizing the configuration on Kommo
Enter credentials in ByteGPT
- Return to the settings window. ByteGPT na Kommo.
- Paste the URL you copied from n8n into the “Chat Trigger URL".
- Enter your OpenAI key in the “OpenAI Key".
- Click on "Save“The system will submit and save the information.
Download and import the salesbot template
- Still in the settings window of ByteGPT, scroll down until you find the Salesbot templates section.
- Locate the template “v2 – N8N – Chat Trigger"And click"Download“. The file will be uploaded and downloaded.
- Now, go to “Asset”>“communication tools” in the side menu of the Kommo.
- Click on "Create or launch a new bot” and import the Salesbot file you downloaded.
Configure the salesbot
- With the imported Salesbot, you can customize the trigger (“Trigger”). For example, you can set the bot to start “When a conversation is started by a new message in any channel.”
- If you prefer, you can adapt the flow to the conversation start directly, without the initial pause step, connecting the “Start bot” directly to the next steps.
Step 4: Final integration testing
Start a conversation
- Access one of your communication channels connected to Kommo (like your website's Live Chat, WhatsApp, etc.).
- Send a test message, such as “Good morning.”
Check the response and data
- The message should appear in your “Inbox” Kommo.
- The Salesbot will be triggered, will send the information for n8n, which will process with OpenAI and will return the answer.
- You'll see the automatic reply "Hello, how can we help?" in the conversation.
- Within the lead card na Kommo, and on aba "ByteGPT+”, you can see the details of the interaction, such as the prompt sent and the response received.
- In n8n, in the “Executions“, you will be able to see a log of the successful execution of your workflow.