How an AI agent and a manager work in the same chat
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
eventfield. 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.
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.
| Field | Contents |
|---|---|
event | manager_message |
conversation_id | Conversation |
channel | Channel |
contact_id | Contact in Kommo |
sender_name | Manager's name |
sender_crm_user_id | Kommo user ID |
message_type | Message type |
text | Text |
ts | Time |
Related questions
What fields the workflow receives · How to connect an AI agent through n8n
Get in touch
We reply during business hours.
New to AnyLinga?
Try it yourself, or we'll set it up for you when you pay for the first month.