> This page is for version Scripted.
> For other versions, use one of these documentation indexes:
> - Generative (default): https://developers.ada.cx/generative/llms.txt
> - Scripted: https://developers.ada.cx/scripted/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.ada.cx/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.ada.cx/_mcp/server.

# Configure the Salesforce Live Agent block

## Overview\[#UUID-a04ad0db-2b16-9357-0352-80f617d33223_id_360062981813_id_h_01FZ8PG14D8VR7PZAHHHG2F8W8]

Once you've configured your Ada Glass for Salesforce integration, you're
ready to incorporate the Salesforce live chat handoff block into your
Answers. Use the [Ada Glass for Salesforce - Configuration](/scripted/docs/integrate-ada-with-other-tools/use-ada-with-salesforce/configure-ada-glass-for-salesforce) guide for help
configuring your Ada Glass for Salesforce integration.

To begin, create a new Answer and drag the Salesforce block into it.
Then, in the Salesforce block, configure the following settings:

### Add the Chat Button ID from Salesforce\[#UUID-a04ad0db-2b16-9357-0352-80f617d33223_id_360062981813_id_h_01FZ8PGFJD30YMPG4T108PSP5N]

In the Chat Button ID field, paste the chat button ID you copied
earlier. For a refresher as to where to find the chat button ID, please
see [Ada Glass for Salesforce - Configuration](/scripted/docs/integrate-ada-with-other-tools/use-ada-with-salesforce/configure-ada-glass-for-salesforce).

### Add an Off Hours Answer\[#UUID-a04ad0db-2b16-9357-0352-80f617d33223_id_360062981813_id_h_01FZ8PGR8M5HAVXR409A18VGZ2]

In the **Off Hours Answer** field, select the Answer you would like the
bot to provide if there are no live agents available to chat (i.e. there
are no agents online or the queue is at its maximum capacity). This will
likely be an Answer that creates an email support ticket on behalf of
the chatter.

### Advanced Settings\[#UUID-a04ad0db-2b16-9357-0352-80f617d33223_id_360062981813_id_h_01FZ8PGYA17RG65YMCQTC288SM]

Click **Advanced Settings** to reveal the Live Chat Case Fields and the
Live Chat Transcript Fields. These fields let you pass user information
and transcript data to meet your Salesforce management needs.

> **Info**
>
> When passing a chatter's name, note that Salesforce only populates the
> **LastName** custom field during the handoff process. As a result, you
> must ensure that you pass a LastName variable containing the chatter's
> last name, only.

To find the Field Name in Salesforce:

1. In Salesforce, click the gear icon in the upper right hand corner
   and select **Setup** from the menu.

2. In the Quick Find search field at the top left hand menu, search for
   **object manager**. Once in the Object Manager page, in the Quick
   Find search in the top right, search for and click on **Lookup
   Rollup Summary**.

3. In Object Manager, select **Fields & Relationships**.

4. Search for the field you want to map the variable to.

5. Copy the **Field Name** value and paste it into the **Field Name**
   field in the Salesforce Live Chat block.

Upon completion of the above steps, chatters who are provided with the
Answer containing the Salesforce block will be transferred to the
Omni-Channel queue to continue the conversation with a live agent.

> **Info**
>
> The above instructions refer to the Salesforce **Field Name**. This is a
> different entity than the Salesforce Field Label.

---

Have any questions? Contact your Ada team, or email us at [](<mailto:help@ada.support%20%E2%80%9CHelp Docs inquiry%E2%80%9D>).