Connect a WhatsApp Business number so agents answer customers, reach teammates and hand conversations to people, through Meta's Cloud API, 360dialog or TexterChat
WhatsApp connects a WhatsApp Business number to Fruxon. Once it's connected, a message to the number reaches the agent that answers it, and the agent's reply goes back to the same chat. You can connect a number in three ways, and they all work the same way inside Fruxon. Each one is its own integration:
| Integration | Connects through | Setup |
|---|---|---|
| WhatsApp (Meta Cloud API) | Meta's WhatsApp Cloud API directly, with no other provider in between | Connect WhatsApp opens Meta's sign-up window. Fruxon saves the token, registers the number and sets the webhook. |
| 360Dialog (WhatsApp) | A 360dialog account | Paste a 360dialog API key, then set the webhook URL in the 360dialog Hub yourself. |
| TexterChat (WhatsApp) | A TexterChat project | Paste a project ID and an API token. Fruxon can register the webhook for you. |
Twilio can also carry WhatsApp messages. It has its own page.
What an agent can do on WhatsApp
- Answer customers. A customer messages your number and the agent replies in the same chat. When a customer replies to a specific message, the agent sees which message they replied to.
- Reach people on your team. Give a teammate a WhatsApp address in the Directory, and agents can notify them or ask them a question on WhatsApp. Read Messaging rules first: on WhatsApp, a message to someone who hasn't written to the number recently can be refused.
- Hand a conversation to a person. With Human escalation on, an agent can hand a WhatsApp conversation to a teammate. Bridge works on all three integrations. Native handoff into your team's own queue works on TexterChat only. See Handing off to your team.
- React to a message. On the Meta Cloud API,
react_to_messageadds an emoji reaction to the customer's message.
Which one to choose
- WhatsApp (Meta Cloud API) if you don't already use a WhatsApp provider. It's the only one you set up without leaving Fruxon, and the only one that can keep a number in the WhatsApp Business phone app while Fruxon answers on it.
- 360Dialog (WhatsApp) if your number is already on 360dialog and you want to keep it there.
- TexterChat (WhatsApp) if your team already works customer chats in TexterChat. It's the only option with agent tools for templates, chats and labels, the only one where agents can read photos and files customers send, and the only one where a hand-off can drop the chat into your team's TexterChat queue.
All three are messaging installations, so they belong to the whole workspace rather than to one Application. Create and manage them on the workspace's Integrations page. See Messaging installations belong to the workspace.
Set up WhatsApp (Meta Cloud API)
Connect with Meta
- Open Integrations and select WhatsApp (Meta Cloud API).
- Create a config and give it a display name, for example "WhatsApp: Support line".
- On the config, under Connect your WhatsApp number, click Connect WhatsApp. Meta's window opens.
- Sign in with Facebook, then choose or create the WhatsApp Business account and number in Meta's window.
- Back in Fruxon, enter a 6-digit PIN for the number and click Connect number. If the number already has a PIN, enter that one.
Fruxon exchanges what Meta returned for the number's token, registers the number with your PIN, points the number's webhook at this config and publishes the config. The card then shows Connected to with the number and its business name. To connect a different number later, click Reconnect.
Meta's sign-in can be used only once. If connecting fails, start again from Connect WhatsApp. A wrong PIN is the exception: you can fix it on the PIN step and try again.
If the number connects but the webhook couldn't be set, the card says so. Open the config and set the webhook from its webhook section.
Meta's own guide to this sign-up window: Embedded Signup.
Keep using the WhatsApp Business app
If the number already runs in the WhatsApp Business phone app, click Connect it and keep using the app under Connect WhatsApp. There's no PIN step, because the app has already registered the number. Customer messages then reach Fruxon as well as the app.
Things to know before you choose this:
- The agent doesn't see what you type in the app. Replies sent from the phone aren't shown to the agent and don't pause it. A customer could get an answer from you and another from the agent. Use this only where that's acceptable.
- Past chats aren't imported. Fruxon asks Meta to sync the app's contacts and chat history right after you connect, but it doesn't bring that history into the agent's conversations.
Use your own Meta app
Connect WhatsApp only appears where Fruxon's Meta app is set up on your deployment. Otherwise, or if you'd rather use your own Meta app, open Use your own Meta app instead on the config and fill in:
| Field | Where it comes from |
|---|---|
| Access Token | A permanent system-user token with the whatsapp_business_messaging and whatsapp_business_management permissions, from Meta's Business Settings → System users. |
| Phone Number ID | Your app's WhatsApp → API Setup. This is Meta's ID for the number, not the phone number itself. |
| WhatsApp Business Account ID | The same API Setup page. Fruxon needs it to register the webhook. |
| App Secret | Your app's App settings → Basic. Fruxon checks the signature on every webhook against it. Leave it empty for a number connected with Connect WhatsApp. |
Test checks the token with Meta. Fruxon can't check the two IDs or the app secret on their own: a wrong phone number ID fails the first send, and a wrong app secret fails every incoming webhook. A config without both IDs doesn't pass the test, so it can't be published.
Fruxon registers the webhook with Meta for you. To set it by hand instead, open WhatsApp → Configuration in your Meta app, paste the config's webhook URL as the Callback URL and the config's ID as the Verify token, click Verify and save, and subscribe to the messages webhook field.
Number health
A number can be connected and still be unable to send, for example while Meta hasn't approved its display name or has restricted the account. Fruxon checks each connected number with Meta right after you connect it, about once a day after that, and again whenever Meta refuses a send because of the number or its account.
When a number stops being able to send, can send again, or Meta rates its quality red or declines its display name, Fruxon emails the Admins of each Application that answers on the number. If an Application has no Admin, the workspace's Owners get the email instead. Each kind of email goes out at most once an hour per number. Admins who turn off channel-health alerts don't get these emails.
Set up 360Dialog (WhatsApp)
- In the 360dialog Hub, copy the API key for your WhatsApp Business number.
- In Fruxon, open Integrations and select 360Dialog (WhatsApp).
- Create a config, give it a display name and paste the key as API Key. Test checks the key with 360dialog.
- In the config's webhook section, click Activate webhook to create the config's webhook URL.
- In the 360dialog Hub, choose the number and set its webhook URL to the config's URL. Then send the number a WhatsApp message to confirm it reaches Fruxon.
360dialog takes one webhook URL per number. Fruxon doesn't set it for you, so if you rotate the URL in Fruxon, update it in the Hub too. See 360dialog's webhook documentation.
Set up TexterChat (WhatsApp)
- Open your TexterChat project. Your Project ID is the subdomain in its address:
https://{project_id}.texterchat.com. - Under Developers → API Tokens, create a token with these scopes:
- Manage All Chats, View All Chats and Send Session Message, to send messages.
- View All Files, to download photos, documents and voice notes customers send.
- View / Create / Delete / Activate-Inactivate Scenarios and Manage Scenarios on behalf of Us, so Fruxon can register the incoming-message webhook.
- In Fruxon, open Integrations and select TexterChat (WhatsApp).
- Create a config, give it a display name, and enter the Project ID and the token as API Token.
- To use native handoff, also enter Default handoff department ID: the TexterChat department that handed-off chats are assigned to. You'll find the ID in TexterChat under Settings → Departments. Leave it empty to turn native handoff off for this config.
To register the webhook, Fruxon adds a scenario named (SUB) New Incoming Messages to your TexterChat project. Every new incoming message then calls this config's webhook URL. When the webhook is set again, Fruxon removes the scenario it added before, so the project keeps only one.
Messaging rules
These rules come from how Fruxon sends on each integration:
- Fruxon sends free text. On the Meta Cloud API and 360dialog, every message an agent or automation sends is plain text. Neither has a way to send a template yet.
- Outside the customer service window, free text is refused. WhatsApp accepts free text only within a time window after the person last wrote to your number. See Meta's customer service windows. When a free-text message falls outside the window, WhatsApp refuses it and Fruxon records a failed send. Fruxon doesn't switch to a template. This applies to teammates as well as customers.
- TexterChat is the only option that can send templates. Its
send_template_messagetool sends an approved template, which is how an agent reaches someone outside the window. Itssend_messagetool and its agent replies are free text, so the window applies to them. - On TexterChat, a reply needs an earlier message. TexterChat sends into an existing chat. If the person has never written to the number, there's no chat, and the reply is rejected instead of being sent.
- Text only, outbound. Attachments on an agent's reply aren't sent. If a reply has no text, it isn't sent at all.
- Incoming media.
- TexterChat: photos, documents, voice notes and videos customers send are downloaded and attached to the agent's turn.
- Meta Cloud API and 360dialog: the agent gets text only. A caption, or the text of a tapped button or list option, counts as text. For anything else, such as a voice note, a photo without a caption, a sticker or a location, the agent gets a note saying the customer sent something it can't read, so it can ask them to write it out.
- One-to-one chats. Each chat is one person's phone number.
- Only customer messages start a turn. Delivery and read receipts and reactions don't. On a number shared with the WhatsApp Business app, neither do the messages you type in the app.
- Repeated webhooks don't repeat replies. WhatsApp may send the same message's webhook more than once. Fruxon recognizes the message by its ID and handles it once.
- On the Meta Cloud API, the customer sees the agent working. While the agent works on a reply, the customer's message is marked read and the chat shows that you're typing.
Handing off to your team
Hand-offs follow the Application's Human escalation settings.
- Bridge works on all three integrations. Fruxon pages an operator on their own channel and relays messages between them and the customer. If an operator is reached on WhatsApp, the free-text rule above applies to messages sent to them.
- Native handoff works on TexterChat only. Fruxon assigns the chat to the config's Default handoff department ID, which puts it in that department's queue as pending. The agent steps back as the Application's settings say, and stays muted while a teammate has taken the chat in TexterChat. Once the chat is resolved in TexterChat, the agent answers again. When the agent takes the conversation back, or the escalation is resolved in Fruxon, Fruxon resolves the TexterChat chat so the customer's next message reaches the agent. Without a default department, native handoff can't assign the chat, and the escalation falls back to telling the customer someone will follow up.
- The Meta Cloud API and 360dialog have no console of their own, so Native handoff falls back to Bridge on them.
Channels
All three integrations expose one channel:
| Channel | Description |
|---|---|
whatsapp | A WhatsApp conversation with one person, identified by their phone number in E.164 form (for example +15551234567). |
To let agents reach someone on WhatsApp, give them a WhatsApp address (the E.164 phone number) in the Directory. Add it with Add person or Add group, or later with Edit on the person's Identity & reach tab. For an Application's agents to serve them, add them under that Application's People. A number written with or without the leading + is treated as the same person.
Triggers
| Integration | Trigger | Fires when |
|---|---|---|
| WhatsApp (Meta Cloud API) | whatsapp_cloud.message.received | A WhatsApp message arrives at the configured number. |
| 360Dialog (WhatsApp) | dialog360.message.received | A WhatsApp message arrives at the configured number. |
| TexterChat (WhatsApp) | texterchat.message.received | A WhatsApp message arrives at the configured TexterChat number. |
Each trigger needs the config's webhook to be registered with the provider. The payload has the standard inbound-message fields (payload.text, payload.from, payload.from_name, payload.conversation_name, payload.conversation_address, payload.session_id, payload.event_type), plus:
- Meta Cloud API:
payload.message_attributes.from_number(the sender's number without the leading+) andpayload.message_attributes.message_id(WhatsApp's message ID,wamid…). - 360dialog:
payload.message_attributes.wa_id(the sender's number without the leading+). - TexterChat:
payload.message_attributes.chat_id(the TexterChat chat ID) andpayload.message_attributes.from_number(the sender's number without the leading+).
To start an automation from one of these, see Start when something happens in another app.
360Dialog (WhatsApp) (integration id dialog360):
dialog360.message.received
Message received. Fire when a WhatsApp message arrives at the configured business number. Requires the 360Dialog webhook to be registered against this tenant's Fruxon ingress.
Needs a connection: set integrationConfigId to the config to listen on.
| Field | Type | Description | Example |
|---|---|---|---|
payload.message_attributes.wa_id | string | WhatsApp customer identifier (E.164 without the leading +). | 15551234567 |
TexterChat (WhatsApp) (integration id texterchat):
texterchat.message.received
Message received. Fire when a WhatsApp message arrives at the configured TexterChat number. Requires a TexterChat 'New Incoming Messages' subscription pointed at this tenant's Fruxon ingress.
Needs a connection: set integrationConfigId to the config to listen on.
| Field | Type | Description | Example |
|---|---|---|---|
payload.message_attributes.chat_id | string | TexterChat chat id — address replies back to this conversation. | 67a87067aeedqdee1271ck4d |
payload.message_attributes.from_number | string | WhatsApp customer identifier (E.164 without the leading +). | 15551234567 |
WhatsApp (Meta Cloud API) (integration id whatsapp_cloud):
whatsapp_cloud.message.received
Message received. Fire when a WhatsApp message arrives at the configured business number. Requires the webhook to be registered with Meta for this number.
Needs a connection: set integrationConfigId to the config to listen on.
| Field | Type | Description | Example |
|---|---|---|---|
payload.message_attributes.from_number | string | The sender's WhatsApp number in E.164 form without the leading +. | 15551234567 |
payload.message_attributes.message_id | string | WhatsApp's id for the message (wamid…). | wamid.HBgLMTU1NTEyMzQ1NjcVAgASGBQzQTdGRjA1 |
Every event also carries the fields common to all events. To use one, see Start when something happens in another app.
Available Tools
The Meta Cloud API and 360dialog integrations have no agent tools of their own. Agents reply through the channel, and on the Meta Cloud API they can use react_to_message from Chat.
TexterChat adds these tools:
| Tool | Description | Action Type |
|---|---|---|
send_message | Send a plain-text message into an existing chat. Free text, so the customer service window applies | Irreversible |
send_template_message | Send an approved WhatsApp template to a phone number, with values for the template's variables | Irreversible |
list_templates | List the approved templates, optionally with pending and rejected ones | ReadOnly |
unsubscribe_from_templates | Stop template messages to a phone number | Reversible |
resubscribe_to_templates | Allow template messages to a phone number again | Reversible |
get_chat_messages | Read a chat's messages, oldest to newest, 50 by default, with paging further back | ReadOnly |
get_recent_chat_history | Read the newest messages in the customer's chat in both directions: 20 by default and at most 100, from the last 24 hours by default and at most 720 | ReadOnly |
get_full_chat_transcript | Read a whole chat, or one resolved episode of it, in one call | ReadOnly |
get_chat | Get a chat with its status, assignment, labels and CRM data | ReadOnly |
search_chats | Find chats by customer phone number, status or label | ReadOnly |
assign_chat | Assign a chat to an agent or department in TexterChat, which sets it to pending | Reversible |
resolve_chat | Mark a chat resolved, so the customer's next message goes back to the bot | Reversible |
update_chat_crm_data | Merge CRM key/value data onto a chat | Reversible |
update_chat_properties | Change the customer's display name, CRM link or external-bot setting on a chat | Reversible |
list_labels, get_label | List labels, or get one | ReadOnly |
create_label, update_label | Create a label, or rename or recolor one | Reversible |
manage_chat_labels | Add, remove or replace the labels on a chat | Reversible |
delete_label | Delete a label permanently | Irreversible |
list_channel_health_problems | List TexterChat's current channel health problems | ReadOnly |
resolve_channel_health_problem | Mark a channel health problem resolved | Reversible |
generate_public_media_url | Create a public link to a file stored in TexterChat, with an optional expiry | Reversible |
To keep get_recent_chat_history on the customer the agent is talking to, pin its customer_phone parameter to {{sender.address.texterchat}}.
Not supported yet
- Templates on the Meta Cloud API and 360dialog. You can't send, list or create templates through these two integrations.
- Reading media on the Meta Cloud API and 360dialog. Only text is read. See Messaging rules.
- Sending attachments on any of the three.
- Seeing replies typed in the WhatsApp Business app on a number that's also connected to Fruxon.
- Automatic webhook setup for 360dialog.
- Native handoff outside TexterChat.