Salesforce chat window

How the WhatsApp chat works on a Lead, Contact, or Opportunity in Salesforce: which phone number and conversation it opens, replies, templates, files, voice notes, saved replies, internal notes, and switching WhatsApp number.

The chat window is a small Whatsable inbox for one phone number, inside a Salesforce record. It shows the same conversations as the shared team inbox. Messages sent from the window appear there too.

Which conversation opens

When a salesperson opens a record, the window reads the phone number on it and finds the newest conversation with that phone on a WhatsApp number the API key can use.

RecordPhone used
LeadMobile Phone, then Phone
ContactMobile Phone, then Phone
OpportunityThe primary contact role's mobile phone, then its phone. Then any other contact role. Then the account's phone

Whatsable cleans up the phone before it looks for a match: it strips spaces, dashes, and brackets, and adds a +. It does not guess a country code. Store phones in full international form, such as +14155550123, so that they match.

A conversation on a number the API key cannot use stays hidden, even when the phone matches.

Reply while the window is open

WhatsApp allows a free-form reply only within 24 hours of the customer's last message. While that window is open, the window shows a text box and how long replies stay open.

In the open window you can:

  • Type a reply and send it.
  • Quote one message. Select reply on a message, and your answer goes out as a reply to it.
  • Attach a file. Images, audio, video, and documents.
  • Record a voice note. Select the microphone, speak, then Stop and send. If the browser blocks the microphone, the window says "The microphone is unavailable in this window." Allow the microphone for Salesforce in the browser.
  • Insert a saved reply. Pick one from your Whatsable saved replies.
  • Read earlier messages. The window loads the latest messages. Earlier messages loads older ones.

Every message sent from the window pauses your AI agent for that conversation, so the bot does not answer over the salesperson.

Send a template

When the 24-hour window is closed, the text box is replaced by "Free-form replies are closed. Send an approved template." The same applies when the phone has no conversation yet.

Open Template

Select Template and search the list. Only templates that Meta approved appear. With none, the window says "No approved templates." Create them in Message templates.

Fill the values

Enter a value for each variable, shown as Value for and the variable name. A template with a header file asks you to Choose the template file.

Send

Select Send template. The message leaves from the WhatsApp number currently selected in the window.

A template to a new phone number creates the contact in Whatsable. A free-text message to someone who never wrote to you is refused, because WhatsApp only allows a template to start a conversation.

Leave an internal note

Select Note, write a note for the team, and select Add note. The note appears in the conversation in the Whatsable inbox. It is never sent to WhatsApp. A note needs an existing conversation. With none yet, send a template first.

Switch WhatsApp number

When the API key allows more than one WhatsApp number, the window shows a WhatsApp number selector in its settings. Pick a number and the window shows that number's conversation with the record's phone. When that number has none, the thread is empty and a template leaves from the selected number.

Key allowsWhat the selector shows
One numberThat one number, disabled
Several numbersThe list, with the chat's current number marked

The window opens on the number of the phone's latest conversation. With no conversation, it opens on the key's own number, then the first number in the list. A change to the key's numbers in Whatsable shows after the record is opened again.

What the window does not do

The Salesforce window does not add reactions, labels, assignment, or AI ratings. Use the Whatsable inbox for those. It also does not write messages into Salesforce records, as activities or fields. To keep a copy of a conversation in Salesforce, use Zapier or Make, or your own code.

The chat is built on Public API v1. The call that opens a window is Open a Salesforce chat. It returns a short-lived URL for a page that is shown inside Salesforce. The MCP server does not wrap it, because an assistant has no window to show it in.

On this page