AnyLinga
EN
Log in Try it free

Help Center/AI agent

How an AI agent and a manager work in the same chat

Updated: 2026-11-12

A manager and your AI can reply to the same customer in one Kommo chat. AnyLinga forwards messages in parallel and does not pause the AI when a manager replies. Your n8n workflow determines when the AI should stay silent.

What appears in the Kommo chat

The manager sees all customer messages in the Kommo chat as usual. The AI gateway works in parallel: your AI's reply also appears in this chat as an outgoing message.

AnyLinga transports messages between the customer and your AI. The AI itself, its model, and its prompts belong to you.

Who decides when the AI stays silent

A manager's message does not stop the AI on its own. You need to define the pause logic in your n8n workflow. When Notify the AI about manager replies is enabled, the workflow receives a manager_message event.

For example, after a manager_message event, the workflow can prevent the AI from replying in this conversation until the end of the day. Another option is to allow AI replies only for deals with a specific tag: see deal filters.

How to enable notifications about manager replies

1. Check your workflow before enabling notifications

  • Make sure the workflow checks the event field. Otherwise, it will treat the manager's message as a customer message.

2. Open the AI gateway settings

  • Go to Tools & Settings → AI gateway and open the Connect your AI page.

3. Enable notifications about manager replies

  • Below Enable gateway, find the Notify the AI about manager replies toggle and turn it on. It is off by default.
  • The setting is saved as soon as you click the toggle. You do not need to click Save.
The toggle is visible only if Kommo is connected to your account. The event is sent only when both Enable gateway and Notify the AI about manager replies are enabled, and only for messages the manager sends from Kommo.

How the workflow detects a manager's reply

When Notify the AI about manager replies is enabled and a manager messages a customer from Kommo, AnyLinga sends a manager_message event to the same n8n webhook URL. The X-AnyLinga-Signature signature is the same.

Check the event field before processing incoming data as a customer message. Customer messages do not have this field. If the workflow does not check event, it will treat the manager's message as a customer message.

You do not need to respond to a manager_message event through a callback. The webhook itself must return 2xx.

FieldContents
eventmanager_message
conversation_idConversation
channelChannel
contact_idContact in Kommo
sender_nameManager's name
sender_crm_user_idKommo user ID
message_typeMessage type
textText
tsTime

What fields the workflow receives · How to connect an AI agent through n8n

Did you find this article helpful?

Get in touch

We reply during business hours.

Already using AnyLinga?

Describe your question and we'll reply on WhatsApp or by email.

New to AnyLinga?

Try it yourself, or we'll set it up for you when you pay for the first month.

Discuss setup

What you need