Create Live Agent Chat Button
sf_create_chat_buttonCreate a Salesforce Live Chat button for websites to start agent chat sessions, with options for queue-based or bot routing, display language, and timeout alerts.
Instructions
Creates a Live Chat button (LiveChatButton) that can be embedded on websites to start chat sessions with agents.
routingType: Choice (skills-based) or Queue (queue-based routing) queueName: the Queue to route chats to (for Queue routing) botName: an Einstein Bot to handle chats initially (optional) windowLanguage: display language for the chat window (e.g. "en_US", "fr", "de") inviteRenderer: name of a custom Visualforce page for chat invitations customAgentName: agent display name shown to website visitors optionsHasTimeoutAlert: show alert if no agent available within timeout period
After creating, embed the chat button on a site with sf_create_embedded_service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| botName | No | Bot name for bot-first routing | |
| queueName | No | Queue DeveloperName for queue-based routing | |
| buttonName | Yes | API name / DeveloperName of the chat button | |
| description | No | ||
| routingType | No | Queue | |
| inviteRenderer | No | Custom invite Visualforce page/LWC component name | |
| windowLanguage | No | Chat window language code, e.g. 'en', 'fr', 'de' | en |
| customAgentName | No | Agent display name shown in chat window | |
| optionsHasTimeoutAlert | No |