Skip to content

Kommo CRM Integration

Overview

The Kommo CRM integration allows your MyChatBot agent to create and manage deals and contacts directly in your Kommo account. This enables your AI assistant to perform CRM operations without human intervention, streamlining your sales process and customer management.

App Creation on Kommo

  1. Log in to your Kommo account as an administrator
  2. Navigate to SettingsApp Creation on Kommo
  3. Click Create Integration
  4. Fill in the required information:
  1. Click Generate long-lived token to create your API-token App Creation on Kommo
  2. Select the expiration date - 5 year: App Creation on Kommo
  3. Copy Long-lived token

Creating Integration on MyChatBot

  1. Navigate to the Integrations tab in your MyChatBot dashboard - https://app.mychatbot.app/integration?integration=Kommo
  2. Select the agent you want to connect to Kommo Creating Integration on MyChatBot
  3. Scroll down to find Kommo CRM in the integrations list
  4. Click the Connect button
  5. You'll need to provide the following credentials:
    • Domain: Your Kommo domain (e.g., your-company.kommo.com)
    • API Key: The Secret Key from your Kommo integration Creating Integration on MyChatBot
  6. Click Submit to save your integration

Entities & Data Fields Configuration

After connecting your Kommo account, you'll need to configure which entities and fields your agent can access: Entities & Data Fields Configuration

  1. In the "Entities & Data Fields Configuration" section, you can:
    • Toggle Use Deals to enable deal management
  2. For each entity type, you can select:
    • Standard fields from Kommo
    • Custom fields that exist in your CRM
  3. Click Apply fields to save your configuration
  4. If you need to sync the latest funnel statuses, use the Sync statuses button at the top

Understanding Entity Types

Kommo integration supports two main entity types:

  • Deals: Sales transactions in progress
  • Contacts: Individual client information

Field Types

Each entity has two types of fields:

  • Standard Fields: Default fields provided by Kommo
  • Custom Fields: User-defined fields specific to your CRM setup

Special Fields

Several special fields require specific attention:

  1. Status

    • For deals: Represents the current stage in the deal pipeline
    • Must match exactly with statuses defined in your Kommo account
    • Can be updated using the Sync statuses button
  2. Source

    • Identifies where the deal originated
    • Automatically set to "AI-" + name of your assistant
    • This helps track which deals came from your AI assistant
  3. Chat Link

    • Automatically added to each deal as a comment
    • Contains a link back to the conversation that generated the deal

Working with Pipelines

Deals in Kommo are organized into pipelines with multiple stages:

  1. Select the appropriate pipeline from the dropdown in the MyChatBot dashboard
  2. Your agent will use this pipeline when creating new deals
  3. The stages within the pipeline can be used to move deals through your sales process

Available Tools

After connecting Kommo CRM, your agent will have access to two powerful tools:

1. edit_crm_deal

This tool enables your agent to update existing deals or create new ones:

  • full_name: Contact's full name (required)
  • phone: Contact's phone number
  • price: Deal amount (optional)
  • Status: Current stage in the sales pipeline
  • Custom Fields: Any additional fields you've configured

All fields you select in the "Entities & Data Fields Configuration" section will be available as parameters for this function.

When a deal is created or updated:

  • A contact is automatically created or found based on the phone number
  • The deal is linked to this contact
  • A chat link is automatically added to trace back to the conversation
  • The source is set to identify your AI assistant
  • The order information is tracked by MyChatBot internal system

2. add_crm_client_contact

This tool enables your agent to create or update contacts:

  • full_name: Contact's complete name (required)
  • phone: Primary phone number (required)

All fields you select in the "Entities & Data Fields Configuration" section will be available as parameters for this function.

When a contact is created:

  • If a deal already exists for the client, it's updated with this contact
  • The client's information in MyChatBot is also updated

The client status is tracked by the internal MyChatBot system

Configuration in Agent Instructions

Creating and Updating Deals

Include these examples in your agent's instructions to enable deal creation and updates:

When a customer expresses interest in our services, use edit_crm_deal in Kommo with the following information:
- Use their full name
- Include their phone number
- Set price if provided
- Set status to "New"
- Add any relevant notes to the comments field

For updating deals:

When a customer provides additional information:
- Use edit_crm_deal to update their deal with the new details
- Include any new product information
- Set price if it has changed

Updating Deal Status

Include these examples to enable status updates:

When a customer requests a call back:
1. Use edit_crm_deal if they're new
2. Update the deal status to "Callback Requested"
3. Add the preferred callback time to the comments

When a customer confirms an appointment:
1. Use edit_crm_deal to update the deal status to "Appointment Scheduled"
2. Add appointment details to the comments field

For deal progression:

When a customer completes a payment:
1. Use edit_crm_deal to update the deal stage to "Closed Won"
2. Update the deal amount to match the final purchase value
3. Add payment details to the comments field

When a customer declines to proceed:
1. Use edit_crm_deal to update the deal stage to "Closed Lost"
2. Add the reason for declining in the comments field

Adding or Updating Contact Information

When a customer provides their contact details:
1. Use add_crm_client_contact to add their information to Kommo
2. Include their full name and phone number
3. Update any existing deal with this information