Channel setup
For Admins

Channel setup

Channels are your customer contact points. Everything they receive lands in one Inbox. Owners and admins connect channels in Settings → Channels with the Add Channel button. Types: Telegram Bot, WhatsApp, Web Widget, REST API, Email, VK and BillManager 6.

Which types you can add depends on the plan: an unavailable type shows a lock, and clicking it offers a plan upgrade. BillManager 6 is available on Enterprise.

Telegram bot (multi-bot support)

One project can have several Telegram bots — for example, a separate bot per product.

  1. Create a bot via @BotFather in Telegram and copy the token.
  2. In SupportHub open Settings → Channels → Add Channel and choose Telegram Bot.
  3. Paste the token into Bot Token and click Create. SupportHub takes the channel name from Telegram (the bot's @username) and sets up the webhook automatically.
  4. Repeat for each additional bot.

The bot's card has: Group ID (the team group that receives ticket cards), the Network and proxy block, the Telegram Bot Builder button and Disconnect.

One bot, one channel. A Telegram bot has only one webhook: when you connect it, SupportHub re-points the webhook to itself and the other system stops receiving messages. So a bot that already works in another SupportHub channel — in this project or another one — can't be connected: disconnect it there first. If you have no access to that project, issue a new token in @BotFather (/revoke): the old channel stops working, and the bot can be connected with the new token. A bot connected to two channels before is marked in both cards: only one of them gets customer messages.

If Telegram doesn't accept the webhook address (say, its server was unreachable), the bot's card shows the warning “Telegram hasn't accepted the address for incoming messages”: while it's there, customer messages may not arrive. The server retries every 10 minutes, and the warning goes away once Telegram accepts the address.

You can't give an individual bot its own department in the interface: automation rules only tell channel types apart. Only an email channel lets you pick a department.

VK

A community connects through the Callback API. Enter the Community token, Community ID, Confirmation string and Secret key — any string, the same as in the community's Callback API settings: the channel can't be connected without it, and SupportHub doesn't accept events without it. Then paste the Callback API URL shown to you into the VK community settings. Details are in VK Channel.

WhatsApp

WhatsApp connects unofficially — as a linked device of your number. Read the risk warning, tick I have read and accept all the risks, click Continue and scan the QR code in WhatsApp on your phone (Linked devices). The code refreshes about every 20 seconds. If WhatsApp unlinks the device (say, the phone was offline for a long time), the channel goes inactive and owners and admins get an email — reconnect it with a new QR code.

Website widget

A project has one widget, and you don't need to add it — it's already there. The install code is in the Embed Code block on the widget tile (with a copy button) or behind the Embed snippet button in the widget builder. Paste it before the closing </body> tag. By default the widget works anonymously:

<script>
(function(w, d){
  function loadWidget(token){
    var s = d.createElement('script');
    s.async = 1;
    s.src = 'https://supporthub.cc/widget-bundle?ws=your-workspace-id';
    if (token) s.setAttribute('data-visitor-token', token);
    d.head.appendChild(s);
  }
  // Optional: an HMAC visitor token (recognise the visitor across devices).
  // Uncomment once your server has /api/supporthub/token.
  // fetch('/api/supporthub/token', { credentials: 'include' })
  //   .then(function(r){ return r.ok ? r.json() : null; })
  //   .then(function(data){ loadWidget(data && data.token); })
  //   .catch(function(){ loadWidget(); });
  loadWidget();
})(window, document);
</script>

Appearance lives in Settings → Widget Builder (Website widget in the side menu) or behind Configure Widget on the tile: colours under Brand, the greeting under Welcome, the operator avatar under Conversation, collecting name, email and phone before the chat under Forms & Topics. The preview is built into the builder, and changes stay a draft until you click Publish. See Widget builder.

Email

Mail can come in two ways:

  • Webhook (SendGrid / Postmark) — the inbound mail service posts messages to the Inbound webhook URL from the channel card. Each email channel has its own address ending in that mailbox's secret key: copy the whole address into your provider's settings with the copy button. Mail posted to an address without the key, or with another mailbox's key, is refused. A message goes to the project's email channel it's addressed to — so one provider address for a whole domain can serve several channels. If the recipient matches none of them, it goes to the channel whose webhook address it is. The old address of the form …/webhooks/email/<project ID> no longer works: if your provider still posts there, replace it. New address issues a new key, and the old address stops working at once.
  • IMAP — SupportHub fetches the mailbox over SSL every 2 minutes. POP3 isn't supported. If a mailbox was once set up for POP3, the channel card shows a warning — enter the IMAP server and port.

Replies go out through the channel's Outgoing Mail (SMTP) or, if it isn't set, the project's SMTP. Without SMTP no email replies are sent. The channel card also has Routing → Department, the Check everything and Send test email buttons, and an Ignored senders list (IMAP mode).

Delivery and read reports and customers' auto-replies don't become tickets. Bulk mail comes in like any other email. In IMAP mode a bounce notice (from MAILER-DAEMON or postmaster) is recorded on the ticket whose email bounced — “Reply not delivered to email” with the address and the reason. In Webhook mode such notices are dropped. A customer's auto-reply (“I'm on vacation”) doesn't open a new ticket: in IMAP mode it lands in the open ticket it answers, in Webhook mode in the customer's latest open ticket. SupportHub never sends its own auto-reply to automatic mail.

API channel

A project has one REST API channel, created along with the project. Its card shows the endpoint for sending messages, and requests need an API key. Details in the API guide.

BillManager 6

Tickets from a BILLmanager 6 billing panel — over the API (v1) or through a module on the BILLmanager server (v2). Details in BILLmanager 6 integration.

Voice messages

Voice messages are recorded by visitors in the website widget (the microphone in the chat) and by staff in the panel (the microphone next to the paperclip, how it looks for an operator). Who can record is set in Settings → Voice messages: a master switch with Customers in the widget and Staff in the panel under it. Everything is on by default. While the master switch is off nobody can record, and once it's back on, what was chosen for each side comes back. Owners and admins of the project can change this, on every plan.

How a staff voice message reaches the customer:

  • Telegram, VK and WhatsApp: as a regular voice message with a player and its length. The browser records in WebM or, in Safari, in M4A, while a messenger's voice message is OGG with the Opus codec: SupportHub converts the recording before sending it, and the original file stays in the conversation.
  • The website widget: a recording with a player. Email: an audio file attached. BILLmanager: a file in the ticket.
  • If the conversion fails, the recording still gets there: in Telegram an M4A goes as audio and anything else as a document, in VK and WhatsApp as a document. A Telegram customer who doesn't accept voice messages gets the recording as a document too.
These switches don't touch incoming voice messages from Telegram, VK and WhatsApp: a messenger can't be told to stop a customer's voice messages, and they keep landing in the ticket as before. An audio file attached with the paperclip is a plain file, the setting doesn't touch it either.
Was this page helpful?