MobiariDocs

Channels

Connect WhatsApp, install the chat on your site, and turn on Instagram and e-mail to receive every conversation in the inbox.

A channel is a way for customers to talk to you. Every channel you connect delivers its messages to the same inbox, in Conversations. This page shows how to connect the four: website chat, WhatsApp, Instagram and e-mail.

Before you start

  • You need the Manage channels permission.
  • Everything happens in Settings → Inbox, on the Channels tab.
  • At the top of the tab are the buttons Add website chat, Add e-mail, Connect WhatsApp with Facebook and Connect Instagram. Each channel you create becomes a card below, with the Active switch, the name, a remove button and the channel's settings.
  • On any card, Team that receives conversations sets which team new conversations go to (it shows once you have created teams on the Team tab). See Inbox.

Removing a channel

Removing a channel keeps old conversations in the history, but new messages from that channel stop arriving. To just pause it, turn off the Active switch.

Website chat

The chat is a bubble in the corner of your site. People who write there show up in Conversations as Website chat.

The channels screen, with the site chat

  1. Click Add website chat.
  2. On the card, adjust the look: Title, Subtitle, Color, Position (Bottom right or Bottom left), Welcome message, Out-of-hours message, Text next to the bubble, Avatar URL and Privacy policy URL.
  3. Choose how to ask for contact details. With Require name and email before chatting on, the visitor fills in the form first. Off, the form is optional and appears after the first messages.
  4. Under Allowed sites, enter one address per line (such as https://store.com, store.com or *.store.com). With the list filled in, the chat only works on those sites. Empty, it works on any site that has the key.
  5. Click Save.
  6. Copy the Website snippet and paste it into your page code, before </body> (on a store, in the theme). The bubble shows on every page.

The snippet looks like this (the card shows yours, with the channel's key):

<script src="https://api.mobiari.com/widget.js" data-key="ch_xxxxxxxx" async></script>

Options for sites with login

If your site knows who is signed in, define window.MobiariChatSettings before the script. Every option is optional:

<script>
  window.MobiariChatSettings = {
    user: 'user-id',            // keeps each user's chat apart in this browser
    name: 'Ana',                // greeting only
    identity: function () {},   // returns the signed identity token
    hideLauncher: true,         // hides the bubble; the site opens it with MobiariChat.open()
    onUnread: function (n) {}   // unread replies, for a badge on your site
  }
</script>

The identity option makes the chat arrive with a verified name and e-mail and skips the form. It needs a server of yours to sign the token; a developer finds the steps in Customer context.

Rotating the key

Rotate widget key invalidates the old snippet: the chat stops working on your site until you paste the new one.

WhatsApp

WhatsApp comes in through Meta's official API (WhatsApp Business). The simplest way is to connect with Facebook, right in the admin.

What you need

  • A Facebook account with admin access to the company's business portfolio (or create one in Meta's window).
  • A phone number, in one of two ways:
    • I already use WhatsApp Business on my phone: the app keeps working on the phone, and Mobiari brings in contacts and up to 6 months of chats. The team replies from both sides. Have the phone with an up-to-date app to scan the QR code at the end.
    • A new number just for the API: a number that is not on any WhatsApp app and can receive an SMS or call with the verification code. Everything happens in the admin.
  • To send templates outside the 24-hour window, a payment method in WhatsApp Manager.

Connect

  1. Click Connect WhatsApp with Facebook.
  2. Choose I already use WhatsApp Business on my phone or A new number just for the API, then click Continue with Meta.
  3. In Meta's window, log in with Facebook, pick or create the WhatsApp Business account and confirm the number.
  4. Back in the admin, WhatsApp connected shows with the number. Warnings from the connection appear as notifications on screen; read them.
  5. If you chose to keep the app on the phone, open it within 24 hours and accept sharing chat history. After that, history no longer comes in, but new messages arrive normally. To try again, use Reconnect with Facebook. Old conversations come in as resolved.

The channel card shows the number's state: whether it is ready, its Quality (high, medium, low or not rated yet), the daily limit for new contacts with templates, the progress of the history import and how many approved templates you have. Send test sends an approved template to a phone of yours; if there is none, the admin asks you to create one under WhatsApp templates.

The 24-hour window

WhatsApp only accepts free-form messages until 24 hours after the customer's last message. While the window is open, the conversation shows above the reply field how long is left: Window open, N h and, in the last hour, Closes in N min. Once it passes, the conversation shows The 24-hour window is closed: you can only write an Internal note or click Send a template, which sends a message approved by Meta. When the customer replies, the window opens again. Marketing templates can only go to people who agreed to receive WhatsApp messages. See Canned replies and templates.

Manual setup

If connecting with Facebook is not available, or you already have the Meta data, use Add WhatsApp (or Set up manually). On the card, fill in Phone number ID, WhatsApp Business Account ID (WABA), Verify token, Access token and App secret. Then copy the Webhook URL (Meta) and register it, with the verify token, in the Meta app, with the X-Hub-Signature-256 signature turned on. The Meta catalog ID is optional: with it, products go as WhatsApp product messages.

Voice calls

A WhatsApp call ringing in the dashboard, with Answer and Decline

The customer taps the call button in the WhatsApp chat and the dashboard rings, on any screen. People who can reply to conversations see a card with the name or number and Answer and Decline. When you answer, the browser asks for the microphone and the call happens in the browser itself (use headphones to avoid echo). During the call there are Mute and Hang up. The first person to answer gets the call; others see that someone already did. At the end the call is logged in Sell → Calls, with its length or its outcome (missed, declined or failed).

To turn it on, under Settings → Inbox → Channels, use the Voice calls card on the WhatsApp channel and Save. Meta only accepts it when:

  • the number is on the Cloud API (not for a number that stays only in the WhatsApp Business app);
  • the Meta app is subscribed to the calls webhook field;
  • the number has a messaging limit of 2,000 conversations a day (Meta measures it by use; new numbers start well below).

If one is missing, Meta's message shows on the card. Calling the customer. In a WhatsApp conversation, in Conversations, the phone in the conversation header calls (Call and the name, on WhatsApp) or, when the customer has not allowed it yet, asks for permission (Ask permission to call). On the customer's card (Sell → Customers), the Contact button offers the same: Call on WhatsApp or Ask permission to call. WhatsApp only lets a business call someone who agreed:

  1. Click Ask permission to call (in the conversation, confirm with Send the request): the customer gets a request in the chat with buttons to allow or not. This works while the conversation's 24-hour window is open. Their answer shows as a line in the conversation.
  2. If they allowed it, the button calls. The permission lasts 7 days (or forever, if the customer chose that) and they can withdraw it any time.
  3. Click the conversation's phone or Call on WhatsApp: the card shows Calling the customer… and, once they pick up, the timer. Hang up ends it, even before they answer. At the end the call is logged in Sell → Calls, with its length or its outcome (no answer or declined).

Payment: calls the business starts are billed by Meta, so the WhatsApp Business account needs a valid payment method. Without one, the call shows A valid payment method is missing on the WhatsApp Business account (Meta) (the message itself is in Portuguese): add a card in the WhatsApp account's billing settings (the ads card is not enough) and try again. Calls a customer makes to the store do not have this requirement.

Meta limits permission requests (about 1 a day and 2 a week per customer) and withdraws the permission after several unanswered calls in a row. Calling customers in Brazil works: only the United States, Canada, Egypt, Vietnam and Nigeria are excluded.

Instagram

Receives direct messages to the company's Instagram professional account.

  1. Click Connect Instagram and log in with the professional account.
  2. When you return, the admin says Instagram connected.
  3. Turn on Reply within 7 days (Human Agent) only if the Meta app has the Human Agent permission approved. Without it, Instagram only accepts replies until 24 hours after the customer's last message.

If the Connect Instagram button does not show and you only see Add Instagram, automatic connection is not available on this server. In that case fill in the card by hand (Instagram account ID and the access token) and register the App webhook (Instagram) address in the Meta app (Instagram → Webhooks), subscribing to messages, messaging_seen, message_reactions, messaging_referral, messaging_postbacks and comments.

As with WhatsApp, after 24 hours (7 days with Human Agent on) the conversation says the window is closed; leave an Internal note for the team and reply when the customer writes again. With Human Agent on, between 24 hours and 7 days only people on the team can reply, never the assistant. When the team replies from the Instagram app, the message also shows in the conversation. If the customer unsends a message on Instagram, its text and files are removed from the conversation too.

E-mail

The e-mail channel brings customers' replies to the company's e-mails (campaigns, order notices and team messages) into Conversations. You reply in the admin, in the same conversation, and the customer sees an ordinary e-mail. There is no password or server to set up.

  1. Click Add e-mail.
  2. Open Settings → Store settings → Store e-mail (the Open e-mail settings button takes you there).
  3. Under Customer replies, choose Conversas inbox (recommended). The option Own address (outside the platform) sends replies to another e-mail and they do not show in the admin.
  4. Go back to the card: it should show Active with the reply address.

The card shows Inactive until the option in step 3 is selected. Automatic replies (such as "out of office") and e-mails from senders without valid authentication are ignored.

Store mailboxes

To read and answer the store's support mail (for example hello@yourstore.com) in Mobiari, connect the mailbox itself. The team sees the message in Conversations next to WhatsApp, with the customer's orders and details beside it, and the reply leaves from the same address and is filed under the mailbox's Sent folder.

The mailbox must be on a server that offers JMAP, such as Stalwart or Fastmail. IMAP-only servers (Gmail, Outlook and most web hosts) are not supported yet.

  1. Open Settings → Inbox → Channels and, on the Mailboxes card, click Connect mailbox.
  2. Fill in Email, Mail server (for example mail.yourstore.com), Username (blank means the email itself) and Password. If the server has app passwords, use one.
  3. Optionally fill in Name on replies and Signature: the name shows as the sender and the signature goes at the end of every reply.
  4. Click Test connection. On success it shows how many unread messages the inbox has.
  5. Click Save. The unread messages arrive within a minute and become conversations. Once Mobiari has read them they are marked as read in the mailbox.

Each mailbox becomes a channel of its own: the conversation remembers which address the customer wrote to and the reply leaves from it. When the customer answers, the message joins the same conversation. Messages from the address itself, automatic replies and system messages are ignored. A sender that does not prove who it is (no DKIM or DMARC) is not dropped, but the message is marked unverified, because a store mailbox must not lose a customer whose domain lacks that setup.

The card shows Working or Has a problem, the time of the last check and the reason for a problem in plain words (password refused, server unreachable). A mailbox with a problem is retried more and more slowly, down to once an hour. Fix the detail under Edit mailbox and it returns to the normal pace. Use the switch to pause a mailbox and Disconnect to stop reading it: the conversations it brought in stay, but you cannot reply through it.

The password is stored encrypted and never shown again. The server address must start with https:// (if you type only the name, Mobiari adds it) and cannot point to an internal address. Connecting, editing and disconnecting need the Manage channels permission.

If something goes wrong

The bubble does not show on the site. Check that the snippet was pasted on every page, that the channel's Active switch is on and that your domain is under Allowed sites. If you rotated the key, paste the new snippet.

Meta's window fails when connecting WhatsApp. While the Mobiari app is under review at Meta, only people with a role on the app (admin, developer or tester) can finish connecting. Ask to be added as a tester or use manual setup. The admin also warns when the Facebook SDK did not load: turn off ad blockers.

"Nenhuma conta WhatsApp Business foi compartilhada com o app". The message is shown in Portuguese and means no WhatsApp Business account was shared: in Meta's window, select the account. "A conta não tem nenhum número de telefone" means the account has no number: register one in WhatsApp Manager and connect again.

The number shows as down. Meta reports the number's state on the card. Check why in WhatsApp Manager, or click Reconnect with Facebook.

Instagram asks to connect again. Instagram access expired or was revoked appears when access dropped. Click Reconnect Instagram. If the account is already on another store, the admin says This Instagram account is already connected to another store.

I cannot reply on WhatsApp. The 24-hour window has closed: send an approved template or wait for the customer to write.

Next steps

On this page