Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Agentforce and Einstein Generative AI
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Connect an Agent to Enhanced Chat v2

          Connect an Agent to Enhanced Chat v2

          Connect a Service or Employee agent to Enhanced Chat v2.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type.

          Check markThis article applies to: Agentforce Service agents and Agentforce Employee agents

          To learn about channel support for other agent types, see the documentation for that type.

          User Permissions Needed  
          To build and manage Service Agents:

          Manage Agentforce Service Agents AND Manage AI Agents

          OR

          Customize Application

          To build and manage Employee Agents

          Manage AI Agents

          OR

          Customize Application

          Warning
          Warning Make sure that the routing procedures don’t simultaneously route conversations to a service rep and an AI agent. For more information, see Knowledge Article: Messaging Session Stuck in Waiting or Inactive Status When a Bot and an Agent Are Engaged.

          Connect an Agent to Enhanced Chat v2 in Agentforce Builder

          To connect an agent to Enhanced Chat v2 in the new Agentforce Builder, set up the Enhanced Chat v2 connection. Agentforce Builder creates the channel and Enhanced Chat v2 deployment for you.

          1. Add the Enhanced Chat v2 connection to your agent. On the Review Language Settings window, click Got It.
          2. On the Explorer panel, expand Enhanced Chat v2 in the Connections section. Then click Routing.
          3. If you don’t have one already, create and activate an escalation flow. Then, on the Routing page, add the escalation flow and an escalation message to your agent.
          4. Commit your agent. Then, on the Routing page, click New Channel.
            Routing page for the Enhanced Chat v2 connection
          5. In the New Channel window, enter these field values.
            • Name: Name of the channel
            • Developer Name: Must be unique and no more than 80 characters.
            • Domain: The website where you want to host the deployment.
            • Fallback Queue: When your agent is unavailable, conversations are routed to this queue. See Create Queues.
          6. If this is your first Enhanced Chat channel, review and accept the terms and conditions. Then click Create Channel. To see the new channel, refresh the page.
            It can take up to 10 minutes for Salesforce to create the Enhanced Chat v2 channel and deployment.
          7. Optionally, customize the voice on the Voice Settings page. By default, the language is English (United States) and the voice is Mark. For more information about the languages and locales Agentforce Voice supports, see Agentforce Voice Considerations.
            Voice settings apply to all of your agent’s voice-enabled connections.
          8. To customize your Enhanced Chat v2 deployment settings, click the channel name on the Routing page. Then, on the Messaging Settings setup page, click the deployment name. For a list of features available for Enhanced Chat v2, see Compare Enhanced Chat v1 to Enhanced Chat v2.
          9. Preview your enhanced web chat setup. To open your Enhanced Chat v2 deployment's preview page, click Menu icon next to the deployment name on the Routing page. Then select Preview Deployment.
          10. When you're ready, publish your deployment and then add it to your external web site or Salesforce site. To copy your deployment's code snippet, click Menu icon next to the deployment name on the Routing page and then select View Code Snippet.
            You can only deploy Agentforce Employee agents on Enhanced Chat v2 to Experience Cloud sites.
          11. If you're deploying an Employee agent, give users access to the agent and set up credential-based user verification for your Enhanced Chat channel. Employee agents on Enhanced Chat v2 run in the context of the logged-in user. Unauthenticated users aren't supported.

          Route Messages Directly to a Service Agent in the Legacy Builder

          To connect a service agent to Enhanced Chat v2, first create an Enhanced Chat v1 and switch to v2 before publishing the embedded service deployment. If you’ve created a channel, go directly to step 2.

          1. Create an Enhanced Chat v1 Messaging Channel. In the Channel Routing window, enter these field values.
            • Routing Type: Agentforce Service Agent
            • Agentforce Service Agent: Select your agent's name. If your agent name doesn't appear, activate your agent, and try again.
            • Fallback Queue: Select a messaging queue to route to if no agent is available.
          2. On the Embedded Service Deployment Settings page for the deployment that you created, click Switch to v2.
          3. Click Switch & Publish.
          4. On the Embedded Service Deployments Settings page, click Test Enhanced Web Chat to preview and verify your branding and configurations.
          5. Agents connected to Enhanced Chat v2 use the Escalation subagent and an outbound Omni-Channel flow to transfer conversations. Set up outbound routing for your agent to support escalations.
          6. When you're ready, publish your site.
          7. Add the Enhanced Chat v2 to your external web site or to your Salesforce site.

          Route Messages to a Service Agent with an Omni-Channel Flow in the Legacy Builder

          Route messages to a service agent with an Omni-Channel flow.

          1. Create an inbound Omni-Channel flow from scratch that routes messages to your agent.
          2. For the Route Work action in your inbound Omni-Channel flow, enter these field values.
            • Record ID: The record ID variable that you created to store values in your Omni-Channel flow in step 1.
            • Service Channel: Messaging
            • Route To: Select the Agentforce Service Agent type, and then select your agent's name. If your agent type and name don’t appear, activate your agent, refresh Flow Builder, and try again.
            • A messaging queue. When your inbound Omni-Channel flow can't route conversations to your agent, it sends the conversation to this queue. Select a messaging queue that supports the Messaging Session object.
          3. Create an Enhanced Chat v1 messaging channel. Add your inbound flow to the channel, and then activate the channel. You can connect your agent to multiple inbound channels, but you can connect an inbound channel to only one agent.
          4. Open your agent in the legacy builder. On the Connections panel, confirm that your inbound Omni-Channel flow appears in the Inbound Routing section of the Enhanced Chat v2 connection. If a flow doesn’t appear, activate the flow and refresh the builder.
          5. On the Embedded Service Deployment Settings page for the deployment that you created, click Switch to v2.
          6. Click Switch & Publish.
          7. On the Embedded Service Deployments Settings page, click Test Enhanced Web Chat to preview and verify your branding and configurations.
          8. Agents connected to Enhanced Chat v2 use the Escalation subagent and an outbound Omni-Channel flow to transfer conversations. Set up outbound routing for your agent to support escalations.
          9. When you're ready, publish your site.
          10. Add the Enhanced Chat v2 to your external web site or to your Salesforce site.
           
          Loading
          Salesforce Help | Article