Loading
Service
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
          Create the prechat

          Create the prechat

          To build a flow that routes chats based on information captured in a pre-chat form, add a prechat record collection variable. Set up the variable to pull pre-chat details from the Conversation Context Entry object.

          1. In the Flow Builder Toolbox, click Manager and then click New Resource.
          2. For Resource Type, select Variable.
          3. For API Name, enter prechatInfo.
          4. For Data Type, select Record.
          5. Select Allow multiple values (collection).
          6. For Object, select Conversation Context Entry.
          7. Under Availability Outside the Flow, select Available for input.
          8. Click Done.
            New variable resource named prechat.
          Example
          Example

          You want to route chats based on the customer’s city. If the customer is from Chicago, then route the chat to the Chicago team. Otherwise, route it to a default queue. To automate this process before the chat begins, customers fill out a pre-chat form, where they provide their names and email addresses.

          To use this pre-chat information in a flow, start by defining a pre-chat collection variable based on the Conversation Context Entry object. Then create a flow that loops through the pre-chat records to get the customer’s email address. If found, the flow gets the customer record from the Contact object based on the provided email address. Finally, the flow routes the chat to the Chicago team if the customer record city is Chicago. Else, it routes the chat to the default queue.

          The flow routes chats to the Chicago team or a default queue based on pre-chat information.
           
          Loading
          Salesforce Help | Article