Salesforce messaging
This legacy Chat product will be deprecated on February 14, 2026, and is currently in maintenance mode. While existing implementations will continue to function, we strongly recommend that you avoid setting up new chat channels. You can use Salesforce Messaging instead.
Integrating Salesforce messaging with Yellow.ai allows you to connect with live agents for query resolution.
Key benefits of integrating Salesforce messaging with Yellow.ai:
- Live agent support – Use the Salesforce Messaging app to connect with live agents directly within the chatbot interface for real-time query resolution.
- Live chat management – Agents can easily accept and manage chat requests within the Salesforce platform. Once the agent is connected, the chat session is displayed within the Salesforce interface for efficient communication.
- Enhanced customer experience – Improves customer support by enabling live agent interactions and faster query resolution.
Prerequisites
Before proceeding with the integration, ensure that the Salesforce administrator provides the following details to the Integrations team:
- Organization ID
- Developer Name
- Organization Base URL
Connect Salesforce messaging with Yellow.ai
To integrate Salesforce messaging with Yellow.ai, follow these steps:
-
Login to the Yellow platform and navigate to the Development environment.
- In a two-tier environment, you can only add accounts in the Development environment.
- In a three-tier environment, you can only add accounts in Staging/Sandbox environment.
-
Go to Extensions > Integrations > Live chat > Salesforce messaging.

-
In Give account name, enter a unique name using only lowercase alphanumeric characters and underscores (_).
-
In Organization Id, enter the 15-character ID of your Salesforce organization. To find it, in Salesforce go to Setup, search for Company Information in Quick Find, and copy the Salesforce.com Organization ID.
-
In Developer Name, enter the identifier for the specific deployment within your organization.
-
In the Organization Base URL, enter the API endpoint of your Salesforce organization (example,
https://t-ct--fulluat.sandbox.my.salesforce-scrt.com). -
In Customise chat headers, enable this option to personalize bot headers with agent names and descriptions. The original settings will be restored once the ticket is closed.
-
Click Connect.

- To connect more accounts, repeat the steps outlined above for each account. You can add a maximum of 15 accounts.
Connect bot users to live agents on Salesforce
This integration enables bot users to connect with live agents on the Salesforce platform directly from your Yellow.ai account.
-
In the Automation flow builder, select the Raise Ticket node.

-
Select Salesforce messaging from the Live chat agent drop-down.
-
In Account name, select the appropriate Salesforce account.
The following table contains the details of each field in the Raise ticket node.
| Field name | Sample value | Data type | Description |
|---|---|---|---|
| Message after ticket assignment | Requesting live agent connection | String | Message will be displayed to the user once a ticket is assigned to an agent. |
| Name | Rio | String | Name of the user |
| Mobile | 9870000000 | String | Mobile number of the user |
| [email protected] | String | Email address of the user | |
| Query | I have a concern regarding my flight ticket | String | Subject/topic/reason why the ticket was created |
| Salesforce messaging custom fields | | Array | List of details provided by the user before initiating the chat with the live agent |
| Message to display queue position | Your queue position is {position} | String | Shown to the user while the chat waits in the Salesforce queue. {position} is replaced with the user's current position. Needs Show queue position to the user turned on in the integration. See Show the queue position to users. |
Show the queue position to users
While a user waits for a Salesforce agent, Yellow.ai can show the user's position in the Salesforce queue, for example "Your current queue position is 3". The position updates as the queue moves and disappears when an agent joins or the chat ends. After an hour of waiting, the position is no longer shown.
The queue position is shown in the Yellow.ai chat widget and in chats over the Sync API. It isn't shown on other channels, such as WhatsApp.
Prerequisites
- Salesforce routes the chat to a queue. Salesforce sends a position only while a chat waits in a queue. If an agent is free, the chat goes straight to that agent and no position is shown.
- Organization Id in the integration is the 15-character ID, and Organization Base URL is your Salesforce domain (for example, ending in
my.salesforce-scrt.com). Otherwise the queue position may not appear.
Set it up in Salesforce
Your Salesforce administrator does this once.
- In Salesforce, go to Setup. In Quick Find, search for Embedded Service Deployments.
- Open the deployment whose API name matches the Developer Name in your Yellow.ai integration, and note the Messaging Channel it uses.
- In Quick Find, search for Messaging Settings, and open that Messaging channel.
- Click Edit. Under Queue Wait Time and Position, set Notification to Queue Position, and save.
Salesforce sends the position only when this is set. Estimated wait time isn't shown in Yellow.ai.
Turn it on in Yellow.ai
- Go to Extensions > Integrations > Live chat > Salesforce messaging and open the account.
- Turn on Show queue position to the user. It is off by default.
- Save the account.
- Optional: in the Raise Ticket node, enter your own text in Message to display queue position. Use
{position}where the queue number goes, for exampleYou are number {position} in the queue. If you leave it empty, the user sees the default text,Your current queue position is {position}.
To stop showing the queue position, turn off Show queue position to the user.
Test the queue position in your Development or Staging environment before you turn it on in Live. To see a position during the test, make your test agents busy or offline in Salesforce so the chat waits in the queue.
If the queue position doesn't appear
Check the following:
- Show queue position to the user is turned on in the integration account.
- The user is chatting in the Yellow.ai chat widget or over the Sync API, not on another channel such as WhatsApp.
- In Salesforce, Notification is set to Queue Position on the Messaging channel that your Developer Name deployment uses.
- Organization Id is the 15-character ID, and Organization Base URL is your Salesforce domain.
- The chat is waiting in a Salesforce queue. If an agent took it straight away, there is no position to show.
- The user has waited less than an hour. After an hour, the position is no longer shown.
Handle chat sessions in Salesforce
-
To manage live chat interactions, ensure that agents are available on Salesforce platform to accept chat requests from users. Once connected, the chat session will be displayed within the Salesforce interface.
-
To end the chat, the agent needs to close the chat tab, which will automatically trigger the ticket-closed event on the Yellow.ai platform, marking the session as completed.
