Skip to main content

Kommo integration

Updated this week

This guide explains how to integrate your AI Employee with Kommo CRM to automate contact and lead management. You will learn how to configure the project module, authenticate your account, and define rules for automatic lead progression.

Overview

The Kommo integration enables your AI Employee to interact directly with your CRM data during conversations. The agent can search for existing clients, create new contacts and leads, and update lead statuses based on the dialogue context.

The integration can perform the following key actions:

  • Contact management: Searches for clients by phone or email. If no match is found, it creates a new contact.

  • Lead management: Identifies active leads or creates new ones associated with the contact.

  • Pipeline automation: Analyzes the conversation upon completion and moves the lead to the appropriate pipeline stage using natural language rules you define.

Configure the integration in Newo.ai

Before setting up specific attributes, you must create and configure the integration project module within the Builder.

  1. Navigate to the Builder.

  2. Go to the Projects page.

  3. Click the three dots icon in the top-right corner and select Create New Project.

  4. Fill in the following fields and ensure Auto update enabled is turned on:

    • Idn: KommoIntegration

    • Title: KommoIntegration

    • Registry: production

    • Module: kommo_integration

  5. Click Create.

  6. Click the three dots icon next to the newly created project.

  7. Select Force Update Project.

Set up the integration

Once the project is created, you must authenticate your Kommo account using OAuth 2.0 to grant the AI Employee access.

  1. Open the Builder and navigate to the Attributes page.

  2. Locate the kommo_subdomain attribute and enter your Kommo account subdomain (e.g., enter mycompany if your URL is mycompany.kommo.com).

  3. Click Save.

  4. Locate the kommo_oauth_code attribute and open the authorization URL provided in the attribute's description.

  5. Log in to your KommoCRM account if prompted.

  6. Click Next to confirm the integration permissions.

  7. Select your Sub-Account (workspace) and continue.

  8. After approval, you will be redirected to a page URL similar to https://newo.ai/?code=xxxxxx.

  9. Carefully copy the part after code= (e.g., c889162f455a7fa881d9c6c93a94f52d1cf569de).

  10. Return to the Builder and paste that code into the kommo_oauth_code attribute.

  11. Click Save.

πŸ—’οΈ NOTE

Once saved, the system automatically exchanges the authorization code for an access_token and a refresh_token. These are stored in kommo_access_token and kommo_refresh_token, respectively.

Define pipeline stage rules

You can control how leads move through your sales pipeline by defining natural language rules in the kommo_pipeline_decision_rules attribute. These rules override the AI's default logic and determine the final stage of a lead after a conversation concludes.

To configure this, enter rules that map specific conversation outcomes to your pipeline stage names.

Example configuration:

1. Stage "Initial Contact": 
Select this stage IF the user just asked general questions.

2. Stage "Meeting Scheduled":
Select this stage IF the user agreed to a meeting time.

3. Stage "Not Interested":
Select this stage IF the user explicitly said they are not interested.

❗❗ IMPORTANT

Ensure your rules align with the actual stage names defined in your Kommo pipeline. If a rule references a non-existent stage, the lead update may fail.

Testing

Call your AI Employee and verify that it can create a contact in Kommo and that it was categorized within the correct pipeline stage.

Did this answer your question?