Skip to main content
Search

Routing a new channel to the assistant

How a Telegram, WhatsApp or email inbox you add gets its rule for the AI assistant on its own, when you add the rule yourself, and how to take the bot off a channel or give it a single conversation.

The AI assistant answers only conversations that are assigned to it, and an automation rule assigns the new conversations of each inbox. A Telegram, WhatsApp or email inbox that you add in the panel gets this rule on its own, the moment you create it. A second live chat inbox does not: for it, create one rule on the New conversation tab of Automations. The same steps with the labels of the Russian and English panel are in the setup guide: https://my.epavdesk.com/guide#s4

Channels that are routed on their own

When your platform was set up, each of its switched-on inboxes got a rule that gives its new conversations to the assistant. A new platform has two of them, the live chat and the email at your site address.

When you later create a Telegram, WhatsApp or email inbox, including your own mailbox connected through Google or Microsoft, the platform adds the same kind of rule for it right away. It does so when your other inboxes already go to the assistant: the new rule assigns the same assistant. It adds nothing when a rule for this inbox already exists, switched on or off.

You find these rules in Admin > Automations, tab New conversation. Each is named after its inbox, like <inbox name> → assistant, and carries the description "New conversations from this inbox go to the AI assistant", both in the language your site was set up with. You can switch any of them off, see Take the bot off a channel. When you delete an inbox, its rule is deleted with it.

Why a channel can stay silent

Without such a rule the assistant does not take the conversations of an inbox: no first message with the AI notice goes out in the website chat, Telegram or WhatsApp, the assistant does not answer, and new conversations from that inbox wait in the list for an agent. A Telegram customer who presses Start gets nothing at all. This is the case for a second live chat inbox, and for any inbox when none of your inboxes went to the assistant at the moment you created it. Add the rule yourself then.

Old emails in a newly connected mailbox

When you connect a mailbox, the panel also reads the emails it received during Scan inbox since (48 hours unless you change it). These emails show up as conversations as before, but the assistant does not answer them and they are not assigned to it: they wait for an agent like any unassigned conversation, and automation rules do not run on them. The assistant answers emails that arrive after you connected the mailbox. Connecting a different mailbox to the same inbox, with a new IMAP server or username, starts the count again.

Add the rule

  1. Open Admin > Automations. Admin is the shield, the last icon of the upper group in the left icon bar (tooltip Admin); Automations is in the Productivity group of the admin menu. The page address ends in /admin/automations.
  2. Stay on the New conversation tab and press New rule. The Type field of the new rule already says New conversation.
  3. Name: something you will recognize, for example Telegram to assistant. Description is optional.
  4. Under Match these rules, press Add condition and set one condition: the field Inbox, the operator equals, and your new inbox as the value.
  5. Under Perform these actions, press Add action, choose Assign agent and pick your AI assistant. It is in the same list as your agents.
  6. Press Create. A new rule is enabled at once, and the list shows it with the Enabled badge.

From now on, every conversation that a customer starts in that inbox goes to the assistant. Rules on this tab run only for conversations started by customers: a conversation that an agent starts, for example with a WhatsApp template, is not handed to the assistant.

Ask us to add the rule

Instead of adding the rule yourself, you can write to support@epavdesk.com. We then add the rule for your live chat, Telegram, email or WhatsApp inbox that is switched on and has none yet.

Take the bot off a channel

To stop the assistant from answering a channel, switch its rule off: on the New conversation tab, open the menu with three dots next to the rule and choose Disable. The rule stays in the list with the Disabled badge, and Enable in the same menu turns it back on. A system update never switches a disabled rule back on and does not add a second rule for that inbox.

Switching the rule off changes only conversations that start after that. Conversations the assistant already has stay with it until someone assigns them to a person.

Hand one conversation to the bot

You can give the assistant a single conversation that an agent was running, in any channel:

  1. Open the conversation.
  2. In the panel on the right, open the Details tab and the Actions section.
  3. In the first field, the agent (it shows Select agent when nobody is assigned), choose your AI assistant.

If the last message in the conversation is from the customer, the assistant answers right away. Otherwise it answers the customer's next message.

Take one conversation from the bot

In the same field, assign the conversation to yourself or a colleague. From then on the assistant stays silent in that conversation, also when it reopens because the customer writes again. More about passing conversations both ways in Handoff to agents and back.

If the rule does not fire

Above the list of rules on the New conversation tab there is a choice between Execute all matching rules, the default, and Execute first matching rule. With the second, only the topmost rule that matches a conversation runs. If another rule for the same inbox sits above your assistant rule, drag the assistant rule above it, or switch the tab back to Execute all matching rules.

With Execute all matching rules, the rules run from top to bottom. A rule further down that assigns the same conversations to a team takes them away from the assistant, because a new team clears the assigned agent. Drag the assistant rule below such a rule.

Also check that the condition names the right inbox and that the rule shows Enabled.

The bot only outside business hours

To let the assistant answer a channel only when your team is off, add a second condition to the channel's rule: press Add condition in the same block, choose Business hours, equals, Closed (outside business hours), and above the block choose Match ALL below., so that both conditions must hold. The hours come from the team of the conversation, or else from the default business hours under Admin > Workspace > General. If no business hours are set anywhere, the condition never matches, and the assistant takes no conversation of that channel.

Check that it works

Write to the channel as a customer: in Telegram or WhatsApp from your own phone, in the live chat on your website, or by email. In the chat, Telegram and WhatsApp the first message with the AI notice arrives and then the assistant's answer; email has no first message. In the panel the conversation is assigned to the assistant.

A second inbox for the same channel

Every inbox needs its own rule, including a second inbox of a channel you already use. For example, if you add a second Live Chat inbox with AI chat without agents on, that switch alone does not route it: give it a rule as above. See AI chat without agents.

Was this article helpful?