↑↓ selectEnter openEsc close

    1. Elbuz
    2. Operators

    How to connect messengers to support chat

    12 min readUpdated

    Elbuz collects customer messages from Telegram, Viber, Instagram, Facebook Messenger and WhatsApp in “Chat dialogs”, next to website chat. You reply there without switching apps, and AI can take the first line.

    When you need this:

    • Customers write in Telegram and Viber — paste the bot token, and messages arrive.
    • No one replies at night — AI answers first and hands complex cases to managers.
    • A customer writes again a day later — “New Chat Timeout” decides: old conversation or new.
    • A new manager needs notifications — /myid gives them their Telegram ID.

    Where to start: create a bot in Telegram and paste its token in “Set up channels”.

    What support bots can do

    • Connect with a token — Telegram and Viber start sending messages to Elbuz after one click.
    • Sign in with Meta — Instagram, Facebook Messenger and WhatsApp connect without tokens.
    • AI mode per channel — AI replies, only people reply, or AI first and then a person.
    • New chat timeout — a repeat message brings back the old conversation or opens a new one.
    • Manager rating — the customer gives a score from 1 to 5 right in the messenger.
    • The /myid command — an employee gets their Telegram for notifications.

    What this gives your business is covered separately: what it does for your store.

    How to create a bot in a messenger

    You create the bot in the messenger, not in Elbuz. All you need from it is one line — the token.

    • Telegram. Message @BotFather in the messenger, send the /newbot command and follow the instructions: it asks for the bot's name and username, then sends you the token.
    • Viber. You create the bot in the Viber Partners panel, where you also get the token.

    The bot's name is what the customer sees. Use your store's name, not “support_bot_2”: in the customer's chat list it's the only hint of who they're talking to.

    How to connect a channel to Elbuz

    1. Open “Chat settings” and click “Set up channels” — a window with messenger tiles opens. Choose the channel you need.
    2. Paste the bot token into the field.
    3. Choose the AI mode. You set the new chat timeout later, in the tile of the connected channel.
    4. Click “Connect”.

    Elbuz checks the token, gets the bot's name and registers a — the address the messenger sends new messages to. Then the channel tile shows “Connected” and the bot's name.

    Channel settings window with messenger tiles
    1Telegram tile
    2Instagram tile
    3Facebook Messenger tile
    4Viber tile
    1. Telegram tile — shows the connected bot and its name.
    2. Instagram tile — not connected.
    3. Facebook Messenger tile — connection status of the page.
    4. Viber tile — connected the same way, with a separate bot and its Auth Token.

    One bot — one account. If the same token is already used somewhere else, the messenger redirects the webhook, and messages stop arriving at the previous place. Elbuz won't accept a wrong token or a deleted bot — it reports that the token is invalid.

    New chat timeout

    The timeout is the time after a chat is closed during which the next message from the same customer reopens the old chat instead of starting a new one. After that, a new conversation starts. It's set in hours; the default is 24 hours.

    A shorter timeout suits short, unrelated requests; a longer one suits customers who may write again a day or two later, when the operator needs the context of the previous conversation.

    To change it, in the connected channel's tile enter the number of hours from 1 to 720 in “New Chat Timeout”, for example 12, and click “Save Settings”. The timeout is set for each channel separately.

    Instagram, Facebook Messenger and WhatsApp

    These channels connect by signing in to a Meta account rather than with a bot token. Instagram and Facebook Messenger are available to all accounts. In the channel tile, choose the AI mode, click “Connect”, sign in and grant access.

    • Instagram — sign in with Instagram; you need an Instagram professional account, a Facebook Page isn't required. Direct messages arrive in “Chat dialogs”.
    • Facebook Messenger — messages to your Facebook Page. A personal profile without a Page can't be connected.
    • WhatsApp — messages to your WhatsApp Business number; Meta charges for conversations to your WhatsApp account.

    WhatsApp is enabled for an account separately.

    How to connect Facebook Messenger

    1. In the Facebook Messenger tile, click “Connect” and sign in to an account that has a Facebook Page. The link is valid for one hour: if the channels window has been open longer, reopen it.
    2. Choose the Pages: all current and future ones, or current ones only.
    3. At the “Businesses” step, click “Continue”. If you have no business portfolio, the step says there's nothing to show, which doesn't stop you from moving on.
    4. If you have several Pages, on the “Choose a Facebook Page” screen choose the one you're connecting. One Elbuz account works with one Page: that Page is connected, the account's previous Page is removed, and messages from other Pages don't reach Elbuz. To change the Page, disconnect the channel and connect it again. The Page's Instagram is linked with it; to make it work, click “Check connection” in the Instagram tile.
    5. Wait for the “Facebook connected” screen with the Page name and the “Back to Elbuz” button.
    6. Go back to the channels window. Within 30 minutes of clicking “Connect”, the channel connects by itself and the tile shows “Connected”. If it didn't, click “Check connection”. The AI mode chosen before “Connect” is kept when the channel connects by itself, even if “Back to Elbuz” opened Elbuz in a new tab of the same browser. Before checking manually, look at which mode the tile shows.

    If the account has no Page, or it wasn't selected in the Meta window, sign-in ends with the “No Facebook Page found” screen and a link to create a Page. Create a Page or choose an existing one and connect the channel again. A shopper who messages your store doesn't need a Page: a regular account is enough.

    Instagram and Facebook Messenger limits

    • Customer name in Messenger. Meta doesn't pass the name to Elbuz, so the customer appears in the chat as “User <number>”.
    • 24 hours to reply. A reply sent more than 24 hours after the customer's last message doesn't reach them. The chat shows the internal note “Message not delivered to the customer”. A rating request in such a chat won't reach them either, and no note is added about it.

    Who replies to customers: four AI modes

    ModeHow it worksBest for
    Operator onlyAI doesn't reply at all; every message waits for a personwhen answers must be exact and message volume is low
    AI answers on its ownAI replies to messages until the bot is paused in that chat; it doesn't hand the chat to a managerroutine questions when no manager is available: stock, price, delivery, order status
    AI first, then operatorAI replies until an operator writes in the chat; after the operator's reply, the bot stays silent until it's brought back with “Resume bot”the most common choice: AI handles the first line, a manager takes the complex cases
    By support policy (AI · Support)if the chat is linked to a customer and “Autonomous support” is set to “Live” for messengers, AI · Support replies according to the policy; in “Test” it only records what it would have replied, and the widget assistant replies to the customer. Otherwise the mode works like “AI first, then operator”when auto-replies are managed in “Tickets” (how to turn them on)

    The mode is set for each channel separately: Telegram can use auto-replies while Viber is operator only. You can change it in the channels window or in “Chat settings” → “AI assistant” section: it's the same setting.

    AI assistant section in Chat settings
    1Per-channel AI mode
    1. The AI mode is set separately for each channel, here for the Telegram channel with its bot username.

    An operator's internal note doesn't switch the bot off — only replies the customer sees count.

    How to bring the bot back into a chat

    You bring the bot back with the “Resume bot” button in the chat header in the “Chat dialogs” window, or under the “Needs a manager” notification in the managers' Telegram group. It replies to the customer's next message; how to pause it and when it goes silent by itself — the bot button in the “Chat dialogs” window.

    When AI hands a chat to a manager by itself

    In “AI first, then operator” mode, the bot hands the chat to a person when the customer asks for a manager or the answer needs facts not in your store data (when exactly). The bot pauses in that chat, the chat goes to “Needs a manager”, and the reason is in an internal note (what the manager sees).

    In “AI answers on its own” mode, this doesn't happen: AI doesn't promise a manager, the bot isn't paused, the chat doesn't go to “Needs a manager”, nothing is sent to the managers' Telegram group, and AI replies to the next message again.

    What AI remembers in a messenger

    AI replies with the earlier conversation in that chat in mind, not to each message on its own. The name and phone number the customer gave are saved — they aren't asked for again.

    Telegram and Viber, like the website chat, bring in leads and orders: a phone number or email left by the customer becomes a lead, and an order collected by AI becomes a “Customer order” document (leads and orders from chat).

    Where messages arrive

    In the “Chat dialogs” window — the same one that holds conversations from the website chat. The channel is shown in the chat card, and replies from the window go back to the messenger.

    • Attachments — Elbuz downloads photos and files from the customer and shows them in the chat.
    • Repeats aren't duplicated: if the messenger sends the same message twice, it appears in the chat once.
    • Types that aren't supported yet (for example, some kinds of attachments) arrive as a note naming the type, not as an empty message.
    The path of one customer message. The two top checks filter out what doesn't create a chat, the middle decides which chat the message goes to, and the bottom decides whether AI replies
    yesnoyesnoyesnoyesnoyesnoyesnoDid the message come from aTelegram group?No customer chat is createdIs it /start, /myidor a rating click?Is there an open chat with thiscustomer?Is the same message already in thechat?Was the last chat closed within thenew chat timeout?The old chat reopensA new chat is createdThe repeat is skippedIs the channel's AI mode “Operatoronly”?Message in “Chat dialogs” waits foran operatorMessage in “Chat dialogs”AI replies if the bot is active in thischat
    • Start or end
    • Action or result
    • Decision: the path depends on the answer

    Manager rating

    When an operator closes a chat, the customer is asked in the messenger for a score from 1 to 5: buttons in Telegram and Viber, quick replies in Facebook Messenger and Instagram, a list in WhatsApp. It's saved to the chat history as a system entry, visible to operators. The request is sent only when:

    • a real person replied in the chat — after a conversation with AI alone, no rating is requested;
    • the customer hasn't rated this chat yet;
    • the rating request on close isn't turned off in chat settings.

    The /myid command

    A separate bot command for employees, not customers. An employee sends /myid to the bot and gets their Telegram ID in reply. They paste this number into their own user card, in the Telegram chat id field, and then Elbuz can send them notifications: chat calls, reminders, events.

    It's the fastest way to set up notifications for a new manager: no need to look up the ID with third-party bots — just message your own. The reply comes in the language of the employee's messenger.

    Bot in a Telegram group

    If you add your store's bot to a Telegram group, messages from group members don't create customer chats: the group is for notifying managers — about customers who need a manager, new orders and leads. How to connect it — managers' Telegram group.

    How to disconnect a channel

    The “Disconnect” button removes the webhook — messages stop arriving. A separate checkbox lets you delete the token too: then you'll have to enter it again to reconnect.

    For Telegram, deleting the token has a side effect. Elbuz uses the same token to send employee notifications in Telegram — chat calls, reminders, events. Remove the token and those stop too, not just customer messages. Elbuz warns about this in the dialog itself.

    Scenarios

    Reply to customers after hours and hand complex cases to managers

    In the channel tile in the “Channel settings” window, set “AI Mode” to “AI first, then operator”.

    AI replies to customer messages. As soon as a manager writes to a customer in a chat, AI goes silent in that chat and keeps working in the others. A manager's internal note won't stop the bot, and in a chat where a manager has already replied, the bot comes back only after the “Resume bot” button.

    Only people reply

    The “Operator only” mode.

    All messages from the messenger go to the “Chat dialogs” window and wait for an operator. AI doesn't reply in any chat of this channel, and there's no “Pause bot” button in the header of those chats. When the operator closes a chat, the customer gets a rating request from 1 to 5, unless the request is turned off.

    AI handles routine questions, a manager only backs it up

    The “AI answers on its own” mode.

    A manager's reply doesn't stop the bot: AI replies to the customer's next message again. The bot goes silent in a specific chat only when a manager clicks “Pause bot”. If a manager wants to take over the conversation, pause the bot first.

    A customer writes again a day or two later, and the manager needs the earlier conversation

    In the channel tile, set “New Chat Timeout” in hours, from 1 to 720, and click “Save Settings”.

    If the customer writes before the timeout runs out, the same chat comes back with the whole conversation. Later, a new chat starts. While a chat is open, the timeout doesn't apply — all the customer's messages go to that chat.

    A new manager needs notifications in Telegram

    The manager sends the /myid command to your bot in a private message and pastes the number they get into the Telegram chat id field of their user card.

    The bot replies with the number — in Ukrainian, Russian or English, depending on the language of the employee's messenger (English for other languages). This command doesn't create a customer chat. It won't work in a Telegram group — the bot treats group messages only as a notification group.

    What to do when messages don't arrive

    What you seeWhyWhat to do
    “You are not a chat operator!” instead of settingsthe employee card doesn't have the chat manager flagset it in the user card or sign in as the account owner
    “No Facebook Page found” after sign-inthe account has no Facebook Page, or it wasn't selected in the Meta windowcreate or choose a Page, or ask its admin for access, and connect the channel again
    “Connection not found” after “Check connection”sign-in wasn't completed, or the Page is linked to another Elbuz accountclick “Connect” and go through to the last screen; if that doesn't help, contact support
    The customer in Messenger appears as “User <number>”Meta doesn't pass the customer's name to Elbuzgo by the conversation
    The customer in Messenger or Instagram didn't get a reply; the chat has the internal note “Message not delivered to the customer” with the error textmore than 24 hours have passed since their last message, or the channel returned another errorread the error text; reply in Messenger and Instagram within 24 hours
    “Bot token is required”the field is emptycopy the token from @BotFather or the Viber panel
    The token is invalidcopied with a space, the bot was deleted, or the token was reissuedget the token again in the messenger
    The channel is connected, but no messages arrivethe same bot is connected somewhere else — the messenger sends the webhook thereuse a separate bot for this account
    The customer writes, but a new chat opens every timethe new chat timeout has run outincrease the timeout in the channel settings
    AI replies when it shouldn'tthe mode is “AI answers on its own” or “AI first, then operator”switch the channel to “Operator only”
    The customer asks for a manager, but the chat doesn't go to “Needs a manager”“AI answers on its own” mode: it has no handover to a managerswitch the channel to “AI first, then operator”
    AI is silent in the messenger“Operator only” modechoose one of the AI modes
    AI was replying and then went silent in one chatin “AI first, then operator” mode an operator replied, or AI handed the chat to a manager and pausedin “Chat dialogs”, click “Resume bot” in the chat header
    Messages from the team's Telegram group don't appear in chatsa group with the bot is for manager notifications; it doesn't create customer chatscustomers should message the bot privately
    The customer doesn't get a rating requestonly AI replied in the chat, the customer already rated it, the request is turned off in chat settings, or in Messenger or Instagram more than 24 hours have passedcheck these conditions
    An employee doesn't get notifications in Telegramthe Telegram chat id isn't filled in their cardsend /myid to the bot and paste the number into the card
    Employee notifications stopped after the channel was disconnectedthe Telegram token was deleted along with the channelconnect the channel again with the same token
    An attachment from the customer doesn't openthe attachment type isn't supported yetthe chat shows a note naming the type; ask the customer to send it as a file

    FAQ

    Why does “Chat settings” say “You are not a chat operator”?

    The window opens only for employees marked as chat managers in their user card; the account owner always has access. Only the chat administrator sees the “Set up channels” button and the “AI assistant” section (access).

    Can I connect both Telegram and Viber at the same time?

    Yes, they're separate channels with separate tokens: each has its own AI mode and timeout. Messages from both channels arrive in the same chat window.

    Which AI mode should I choose?

    Usually “AI first, then operator”: AI handles the first line and goes silent once a manager replies. “Operator only” — answers must be exact; “AI answers on its own” — routine questions, no manager available; “By support policy (AI · Support)” — auto-replies are set up in “Autonomous support” (modes).

    Can the bot message a customer first or send a broadcast?

    No. A messenger channel is for replying to customer messages, not for broadcasts.

    Why was the conversation with the same customer split into two chats?

    The new chat timeout kicked in: after a chat is closed, a message brings back the old conversation only within the set time (24 hours by default). After that, a new conversation starts (timeout).

    A customer writes again a day later, and the old closed chat reopens. Can a new one be created instead?

    Yes: reduce the “New Chat Timeout” in the channel tile, for example to 12 hours, and click “Save Settings”. While a chat isn't closed, all the customer's messages go to it regardless of the timeout (timeout).

    Can I connect Instagram Direct and WhatsApp? Does Instagram need a Facebook Page?

    Instagram is available to all accounts: “Connect” in the tile, sign in with Instagram, grant access. It needs a professional account, not a Facebook Page. Facebook Messenger requires a Facebook Page; a shopper who messages your store doesn't need one. WhatsApp is enabled for an account separately (details).

    Can I assign different AI assistant configurations to Telegram and Instagram?

    No. All channels use the settings of the first active AI chat widget for the website. Only the AI mode and the “New Chat Timeout” are set per channel.

    Where to find it and who has access

    Menu
    Organizer → Chat dialogs → gear icon → “Chat settings” → “Set up channels”
    Other ways in
    settings → “Chat settings” tile
    Conversations
    the “Chat dialogs” window — messages from all channels arrive there
    Access right
    chat administrator: the “Chat settings” right in general settings, or the account owner
    Module
    Instagram and Facebook Messenger are available to all accounts; WhatsApp is enabled for an account separately (sign in with Meta)

    A regular chat manager doesn't see the “Set up channels” button.

    Related topics

    Was this article helpful?

    Missing a feature? Tell us.

    We will add it for free if other users need it too.

    If only you need it, we will agree on it separately.

    Article contents

    Suggest an improvement

    Try Elbuz free