Get Chat Settings from Your Org
After you’ve set up chat in the console, supply your app developer with four values:
the chat endpoint hostname, the organization ID, the deployment ID, and the button ID. You
can get this information from your org’s setup.
- Chat Endpoint Hostname
- The hostname for the Chat endpoint that your organization has been assigned.
To get this value, from Setup, search for Chat
Settings and copy the hostname from the API
Endpoint.
Be sure not to include the protocol or the path. For instance, if the API Endpoint is:
https://d.gla5.gus.salesforce.com/chat/rest/
The chat endpoint hostname is:
d.gla5.gus.salesforce.com
- Org ID
- The Salesforce org ID. To get this value, from Setup, search for
Company Information and copy the
Salesforce Organization ID.
- Deployment ID
- The unique ID of your Chat deployment. To get this value, from Setup,
select
For instance, if the deployment code contains the following information:
<script type='text/javascript' src='https://d.gla3.gus.salesforce.com/content/g/js/44.0/deployment.js'></script> <script type='text/javascript'> liveagent.init('https://d.gla5.gus.salesforce.com/chat', '573B00000005KXz', '00DB00000003Rxz'); </script>
. The script at the bottom of the page contains a call to the
liveagent.init function with the
pod, the deploymentId, and
orgId as arguments. Copy the
deploymentId value. -
The deployment ID value is:
573B00000005KXz
Be sure not to use the org ID value (which is also in this deployment code) for the deployment ID.
- Button ID
- The unique button ID for your chat configuration. To get this value, from
Setup, search for Chat Buttons and select
Chat Buttons & Invitations. Copy the id for the button from the JavaScript
snippet.
For instance, if your chat button code contains the following information:
<a id="liveagent_button_online_575C00000004h3m" href="javascript://Chat" style="display: none;" onclick="liveagent.startChat('575C00000004h3m')"> <!-- Online Chat Content --> </a> <div id="liveagent_button_offline_575C00000004h3m" style="display: none;"> <!-- Offline Chat Content --> </div> <script type="text/javascript"> if (!window._laq) { window._laq = []; } window._laq.push(function() { liveagent.showWhenOnline('575C00000004h3m', document.getElementById('liveagent_button_online_575C00000004h3m')); liveagent.showWhenOffline('575C00000004h3m', document.getElementById('liveagent_button_offline_575C00000004h3m')); }); </script>
-
The button ID value is:
575C00000004h3m
Be sure to omit the liveagent_button_online_ text from the ID when using it in the SDK.