- Live Chat (Legacy): Salesforce’s traditional live chat interface for real-time messaging between AI Agent and human agents.
- Messaging for In-App and Web (MIAW): Salesforce’s latest messaging service for persistent, seamless conversations across in-app and web channels. Recommended for new integrations.
Configure Live Chat
Step 1: Set Up a Salesforce Live Agent
- Log in to your Salesforce account.
-
Navigate to Setup > Customize > Chat Agent > Settings.
Switch to Classic view — Live Agent settings do not appear in Lightning Experience. See Salesforce Live Agent setup guide.
-
Navigate to Build > Customize > Chat > Chat Agent Configurations.
-
Click New, fill in the configuration name and description, and click Save.
Step 2: Retrieve the Live Agent URL
-
Navigate to Setup > Customize > Chats > Chat Sessions > Deployments.
- Click the deployment you want to use.
-
In the Deployment Code region, find the Live Agent URL in the Code field.
Step 3: Retrieve the Organization ID
-
Navigate to Administer > Company Settings > Company Information.
-
Find the Salesforce.com Organization ID field.
The Organization ID is a unique identifier for your Salesforce org. - Copy and save it.
Step 4: Retrieve the Deployment ID
-
Navigate to Setup > Customize > Chats > Chat Sessions > Deployments.
-
In the Deployment Code region, find the Deployment ID in the Code field.
- Copy and save it.
Step 5: Retrieve the Button ID
- Navigate to Customize > Chats > Chat Sessions > Chat Buttons & Invitations and click the button you want to use.
-
In the Deployment Code region, find the Button ID in the Code field.
The Button ID is the string after the last /in the URL (e.g.,5731I000000PL9Gfromhttps://meya-dev-ed.my.salesforce.com/5731I000000PL9G). - Copy and save it.
Step 6: Enable the Salesforce Agent
- Log in to the Kore.ai XO Platform.
- Select the AI Agent to configure.
- Navigate to App Settings > Integrations > Agent Transfer > Chat and click Salesforce.
-
On the Configurations tab, enter:
Field Description Live Agent URL Live agent API endpoint (from Step 2) Organization ID Salesforce org ID (from Step 3) Deployment ID Deployment ID (from Step 4) Button ID Button ID (from Step 5)
-
To make Salesforce the default agent, enable Default Agent System for all bot channels.
This option is only available when multiple agents are configured.
-
Click Manage to map channels. See Adding channels to your app.
- Click Done, then Save.
- Publish the app. See Publishing App.
Verify Live Chat Integration
-
Open the Salesforce Chat Console and launch the Live Agent from Step 1.
The Chat Console URL is unique to your region and company. Contact your Salesforce System Administrator for the URL.
-
In Salesforce Classic Chat view, click Apps and select App Launcher.
-
Click Live Agent to open the chat console.
- Open the AI Agent with Salesforce enabled.
-
Create an Agent Transfer Node task (e.g., Talk to Live Agent with a LiveChats node configured to use Salesforce). See Agent Transfer Node.
- Click Talk to Bot and enter Help.
-
When the transfer dialog is invoked, the Salesforce Chat Console receives a notification and the connection is established.
Configure Messaging for In-App and Web (MIAW)
Step 1: Publish a Deployment
- Complete the Salesforce org preparation steps:
- Configure Omni-Channel
- Create an Omni-Channel flow to route messages
- Create a Messaging for In-App and Web channel on the Messaging Settings page
- Configure the Service Console for messaging
- In Setup, search for Embedded Service Deployments and select it.
- Click New Deployment > Messaging for In-App and Web > Next.
- Click Custom Client > Next.
- Name the deployment and customize the API name if needed.
- Select the Messaging channel you created earlier.
- Click Save and wait for the deployment to publish. Do not navigate away.
Step 2: Retrieve Organization ID, Base URL, and Developer Name
- Log in to your Salesforce account.
- Click your profile icon and select Setup.
-
Search for Embedded Service Deployments and select the Messaging Channel. Then select Code Snippet.
-
Copy the Organization ID, Organization Base URL, and Developer Name from the Code Snippet.
Step 3: Enable the Salesforce Agent (MIAW)
- Log in to the Kore.ai XO Platform.
- Select the AI Agent to configure.
- Navigate to App Settings > Integrations > Agent Transfer > Chat and click Salesforce.
-
On the Configurations tab, select Messaging for In-App and Web (MIAW) and enter:
Field Description Organization ID Salesforce org ID (from Step 2) Organization Base URL Base URL (from Step 2) Developer Name Developer name (from Step 2)
-
To make Salesforce the default agent, enable Default Agent System for all bot channels.
This option is only available when multiple agents are configured.
-
Click Manage to map channels. See Adding channels to your bot.
- Click Done, then Save.
- Publish the app. See Publishing App.
Additional Capabilities (MIAW)
Internal Agent Transfer and Conference Handling
- Session Continuity: Chat sessions remain active as long as at least one agent or the customer is engaged, decoupled from individual agent disconnections.
- Seamless Transitions: Uses Salesforce Server-Sent Events (SSE) to handle agent transfers, joins, and exits.
- Transparent Communication: Users receive real-time system messages during transfers and conferences.
Agent Name Display
Salesforce automatically displays the human agent’s name in the chat once they join.Read Receipts
Real-time read receipts are shown for both agent and user messages. Salesforce triggers agent-to-user read receipts through events.Inactivity Session Closure
Configure automatic session end after a specified user inactivity duration. See Automatically Mark Messaging Sessions Inactive.Configurable Standard Responses
Configure system messages displayed during agent handoffs and live chat sessions (wait time alerts, agent join messages, session closure prompts). See Auto-Response Components.Conversation Stop Word Configuration
Configure a keyword that allows end-users to end live agent sessions from the Salesforce console. See Customize the Messaging.Salesforce MIAW Conversation ID
The Salesforce MIAW conversation ID is available in the bot user context during agent transfer:Pass Metadata to the Salesforce Agent
The platform automatically transfers user context to Salesforce agents during handoffs. Customize which metadata is passed using a Script node before the Agent Transfer node. Sample script:Step 1: Configure Salesforce Agent in AI for Service
- Navigate to App Settings > Integrations > Agent Transfer > Chat > Salesforce.
-
Select Messaging for In-App and Web (MIAW) and enter:
- Organization ID
-
Organization Base URL
If your base URL is
example.my.salesforce.com, enter it ashttps://example.my.salesforce-srct.com. - Developer Name
- Click Save.
- In Dialogflow, insert a Script Node before the Agent Transfer Node.
- Use the sample script above to configure metadata as key-value pairs.
Step 2: Update Messaging Session Object in Salesforce
- Log in to your Salesforce account.
- Navigate to Object Manager > Messaging Session > Fields & Relationships.
- Click New to create a custom field.
- Select the data type and click Next.
-
Enter Field Label, Length, and Field Name. Click Next.
-
Set visibility and read-only options as needed. Click Next.
-
Click Save. Repeat for each metadata field.
Step 3: Map Custom Parameter in Salesforce
- Navigate to Feature Settings > Service > Messaging > Messaging Settings.
-
Select the Messaging Channel to configure (e.g.,
CustomClientTest).
- Under Custom Parameter, click New map parameter.
-
Enter Parameter Name, Parameter API Name, Channel Variable Name, Data Type, and Maximum Length. Click Save.
- Under Parameter Mappings, click New to add the parameter to a flow or agent task.
-
Enter the Parameter and Flow Variable Name. Click Save.
- Scroll to the top and click Active.
Step 4: Add Pre-Chat Field in Embedded Service Deployment
- Navigate to Feature Settings > Service > Embedded Service > Embedded Service Deployments.
-
Click the Messaging Channel and then Edit Pre-Chat.
-
In the Visible Pre-Chat Fields section, click Add. Select the field type to add the custom field from the Hidden Pre-Chat Fields section.
-
Select the Field Type and Channel Variable Name. Click Save.
- Optionally mark the field as required. Click Save.
- Click Publish in the top-right corner.
Step 5: Create a Flow to Update Messaging Session
- Navigate to Process Automation > Flows.
-
Select the configured flow for the Messaging Channel or create a new one.
-
In the Toolbox, click New Resource. Select Resource Type, API Name, Data Type, and Availability Flow. Click Done.
Ensure the flow variable matches the API name of your custom Messaging Session field. This enables seamless metadata transfer from the platform to Salesforce.
-
Click Update Records and set the field values for the messaging session records.
- Save as a New version and click Activate.