---
schema_version: "1"
id: 209872b37f12888a4d3b04f9ed58c0eb3d853ac7af6b09ce5b3aa6d3905a7886
title: LiveChatButton
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_livechatbutton.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_livechatbutton.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: cccc5953f9b166727da05379a6cefdc1f356908fcf51f550ad699a971bb4c9ba
description: Represents a Chat deployment’s settings for the button that customers click to chat with an agent and the chat window, such as the label that appears on the button and the pre-chat form that appears before a chat begins. This type extends the Metadata metadata type and inherits its fullName field.
---
# LiveChatButton

Represents a Chat deployment’s settings for the button that customers click to chat with an agent and the chat window, such as the label that appears on the button and the pre-chat form that appears before a chat begins. This type extends the Metadata metadata type and inherits its fullName field.

Chats routed with Omni-Channel aren’t supported in the Metadata API.

## File Suffix and Directory Location

[LiveChatButton](#livechatbutton "Represents a Chat deployment’s settings for the button that customers click to chat with an agent and the chat window, such as the label that appears on the button and the pre-chat form that appears before a chat begins. This type extends the Metadata metadata type and inherits its fullName field.") configurations are stored in the <developer\_name>.liveChatButton file in the liveChatButtons directory.

## Version

[LiveChatButton](#livechatbutton "Represents a Chat deployment’s settings for the button that customers click to chat with an agent and the chat window, such as the label that appears on the button and the pre-chat form that appears before a chat begins. This type extends the Metadata metadata type and inherits its fullName field.") is available in API version 28.0 and later.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d638118e110">Field Name</th>

              <th class="featureTableHeader  " id="d638118e113">Field Type</th>

              <th class="featureTableHeader  " id="d638118e116">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">animation</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">LiveChatButtonPresentation (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d638118e116" data-title="Description">The type of animation for a chat invitation. Valid values are:<ul class="ul bulletList">
                  <li class="li"><span class="keyword parmname">Slide</span></li>

                  <li class="li"><span class="keyword parmname">Fade</span></li>

                  <li class="li"><span class="keyword parmname">Appear</span></li>

                  <li class="li"><span class="keyword parmname">Custom</span></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">autoGreeting</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">The customized greeting message that the customer receives when
                an agent accepts a chat request from the chat button or
                invitation.<p class="p">Available in API version 29.0 and
                  later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">chasitorIdleTimeout</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">int</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the amount of idle time before the chat times out. The
                idle time starts being counted after the agent sends the last chat
                message. Available in API version 35.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">chasitorIdleTimeoutWarning</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">int</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the amount of idle time before a warning appears. The
                idle time starts being counted after the agent sends the last chat
                message. Available in API version 35.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">chatPage</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the page that hosts your chat if that page differs from
                the Chat window.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">customAgentName</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">The agent’s name as it appears to customers in the chat
                window.<p class="p">Available in API version 29.0 and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">deployments</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type"><a class="xref" href="#livechatbuttondeployments">LiveChatButtonDeployments</a></td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the deployments associated with the button.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">enableQueue</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">boolean</td>

              <td class="entry" headers="d638118e116" data-title="Description">Indicates whether queuing is enabled (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">inviteEndPosition</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">LiveChatButtonInviteEndPosition (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d638118e116" data-title="Description">The end position of the chat invitation. Valid values include:<ul class="ul bulletList">
                  <li class="li"><span class="keyword parmname">TopLeft</span></li>

                  <li class="li"><span class="keyword parmname">Top</span></li>

                  <li class="li"><span class="keyword parmname">TopRight</span></li>

                  <li class="li"><span class="keyword parmname">Left</span></li>

                  <li class="li"><span class="keyword parmname">Center</span></li>

                  <li class="li"><span class="keyword parmname">Right</span></li>

                  <li class="li"><span class="keyword parmname">BottomLeft</span></li>

                  <li class="li"><span class="keyword parmname">Bottom</span></li>

                  <li class="li"><span class="keyword parmname">BottomRight</span></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">inviteImage</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">The custom button graphic that appears for the
                invitation.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">inviteStartPosition</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">LiveChatButtonInviteStartPosition (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d638118e116" data-title="Description">The start position of the chat invitation. Valid values include:<ul class="ul bulletList">
                  <li class="li"><span class="keyword parmname">TopLeft</span></li>

                  <li class="li"><span class="keyword parmname">TopLeftTop</span></li>

                  <li class="li"><span class="keyword parmname">Top</span></li>

                  <li class="li"><span class="keyword parmname">TopRightTop</span></li>

                  <li class="li"><span class="keyword parmname">TopRight</span></li>

                  <li class="li"><span class="keyword parmname">TopRightRight</span></li>

                  <li class="li"><span class="keyword parmname">Right</span></li>

                  <li class="li"><span class="keyword parmname">BottomRightRight</span></li>

                  <li class="li"><span class="keyword parmname">BottomRight</span></li>

                  <li class="li"><span class="keyword parmname">BottomRightBottom</span></li>

                  <li class="li"><span class="keyword parmname">Bottom</span></li>

                  <li class="li"><span class="keyword parmname">BottomLeftBottom</span></li>

                  <li class="li"><span class="keyword parmname">BottomLeft</span></li>

                  <li class="li"><span class="keyword parmname">BottomLeftLeft</span></li>

                  <li class="li"><span class="keyword parmname">Left</span></li>

                  <li class="li"><span class="keyword parmname">TopLeftLeft</span></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">isActive</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">boolean</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies whether the chat button or invitation is
                active.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">label</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the text that appears on the button.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">numberOfReroutingAttempts</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">int</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the number of times a chat request can be rerouted to
                available agents if all agents reject the chat request. Available in
                API version 30.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">offlineImage</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the image that appears on the button when no agents are
                available to chat.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">onlineImage</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the image that appears on the button when agents are
                available to chat.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">optionsCustomRoutingIsEnabled</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">boolean</td>

              <td class="entry" headers="d638118e116" data-title="Description">Indicates whether custom routing is enabled for incoming chat
                requests (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>). Available in API version 30.0
                and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">optionsHasChasitorIdleTimeout</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">boolean</td>

              <td class="entry" headers="d638118e116" data-title="Description">Indicates whether the visitor idle timeout feature is enabled.
                Available in API version 35.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">optionsHasInviteAfterAccept</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">boolean</td>

              <td class="entry" headers="d638118e116" data-title="Description">Indicates whether a new chat invitation triggers after a customer
                accepts a previous chat invitation (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">optionsHasInviteAfterReject</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">boolean</td>

              <td class="entry" headers="d638118e116" data-title="Description">Indicates whether a new chat invitation triggers after a customer
                rejects a previous chat invitation (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">optionsHasRerouteDeclinedRequest</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">boolean</td>

              <td class="entry" headers="d638118e116" data-title="Description">Indicates whether a chat request, which has been rejected by all
                available agents, is rerouted to available agents again (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>). Available in API version 30.0
                and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">optionsIsAutoAccept</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">boolean</td>

              <td class="entry" headers="d638118e116" data-title="Description">Indicates whether a chat request is automatically accepted by the
                agent it’s assigned to (<samp class="codeph java">true</samp>) or
                not (<samp class="codeph java">false</samp>). For chat buttons and
                automated chat invitations with <span class="keyword parmname">routingType</span> set
                to <samp class="codeph nolang">MostAvailable</samp> or <samp class="codeph nolang">LeastActive</samp>. Available in API
                version 30.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">optionsIsInviteAutoRemove</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">boolean</td>

              <td class="entry" headers="d638118e116" data-title="Description">Indicates whether a chat invitation is set to automatically
                disappear from a customer’s screen after a certain amount of
                time (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">overallQueueLength</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">int</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the maximum number of chat requests that are allowed to
                queue.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">perAgentQueueLength</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">int</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the number of chat requests that are allowed to queue
                for an agent with the required skills.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">postChatPage</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the name of the post-chat form to which customers are
                routed when the chat ends.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">postChatUrl</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the URL of the post-chat form to which customers are
                routed when the chat ends.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">preChatFormPage</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the name of the pre-chat form to which customers are
                routed before a chat begins.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">preChatFormUrl</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the URL of the pre-chat form to which customers are
                routed when the chat begins.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">pushTimeOut</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">int</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the number of seconds an agent has to answer an
                incoming chat request before the request is routed to another
                agent.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">routingType</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">LiveChatButtonRoutingType (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies how incoming chats are routed to agents when a customer
                pushes a button. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph xml">Choice</samp></li>

                  <li class="li"><samp class="codeph xml">LeastActive</samp></li>

                  <li class="li"><samp class="codeph xml">MostAvailable</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">site</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">string</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the Salesforce site that hosts your custom chat button
                images or custom chat page.
                <p class="p"><span class="ph" id="custom_domain_perm_req"><a name="custom_domain_perm_req"><!-- --></a>You must have the CustomDomain
                    permission enabled in your organization before you can use a Salesforce
                    site with Chat.</span></p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">skills</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type"><a class="xref" href="#livechatbuttonskills">LiveChatButtonSkills</a></td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the skills associated with the button. When a customer
                clicks the button to chat, they’re automatically routed to agents
                with those skills.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">timeToRemoveInvite</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">int</td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies how long the invitation is displayed (in seconds) to
                customers before it disappears.</td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">type</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type">LiveChatButtonType (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d638118e116" data-title="Description">Required. The chat button type. Valid values are:<ul class="ul bulletList">
                  <li class="li"><span class="keyword parmname">Standard</span></li>

                  <li class="li"><span class="keyword parmname">Invite</span></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d638118e110" data-title="Field Name"><span class="keyword parmname">windowLanguage</span></td>

              <td class="entry" headers="d638118e113" data-title="Field Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_translations.htm#meta_translations" title="Metadata type that enables work with translations for various supported languages. The ability to translate component labels is part of the Translation Workbench.">Language</a></td>

              <td class="entry" headers="d638118e116" data-title="Description">Specifies the language preferences for the chat window associated
                with the button.</td>

            </tr>

          </tbody>

        </table>

## LiveChatButtonSkills

Represents the skills associated with a chat button or invitation.

## Fields

| Field Name | Field Type | Description |
| --- | --- | --- |
| skill | string | Specifies the name of the skill. |

## LiveChatButtonDeployments

Represents the deployments associated with a chat button or invitation.

## Fields

| Field Name | Field Type | Description |
| --- | --- | --- |
| deployment | string | Specifies the name of the deployment. |

## Declarative Metadata Sample Definition

Here’s a sample of a liveChatButton file.

<?xml version="1.0" encoding="UTF-8"?>
<LiveChatButton xmlns="http://soap.sforce.com/2006/04/metadata">
    <deployments/\>
    <enableQueue\>false</enableQueue\>
    <isActive\>true</isActive\>
    <label\>CustomerSupportButton</label\>
    <optionsCustomRoutingIsEnabled\>false</optionsCustomRoutingIsEnabled\>
    <optionsHasChasitorIdleTimeout\>false</optionsHasChasitorIdleTimeout\>
    <optionsHasInviteAfterAccept\>false</optionsHasInviteAfterAccept\>
    <optionsHasInviteAfterReject\>false</optionsHasInviteAfterReject\>
    <optionsHasRerouteDeclinedRequest\>false</optionsHasRerouteDeclinedRequest\>
    <optionsIsAutoAccept\>false</optionsIsAutoAccept\>
    <optionsIsInviteAutoRemove\>false</optionsIsInviteAutoRemove\>
    <postChatUrl\>https://help.salesforce.com</postChatUrl\>
    <routingType\>Choice</routingType\>
    <skills\>
        <skill\>Chat</skill\>
    </skills\>
    <type\>Standard</type\>
</LiveChatButton\>

![Note](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note.png)

#### Note

If you update your chat button through the Metadata API, be sure to update all Web pages that use the same chat button code.

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).