Embedded Service Chat SDK for Android Developer Guide
No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Release Notes
Android Examples
Overview
Quick Setup
Use Einstein Bots with Chat
Handle Custom URLs in Chat
Listen for State Changes and Events
Show Pre-Chat Fields to User
Create or Update Salesforce Records from a Chat Session
Check Agent Availability
Transfer File to Agent
Block Sensitive Data in a Chat Session
Build Your Own UI with the Chat Core API
Data Protection and Security
Additional Resources
Using Chat with the Service Chat SDK
Add the Chat experience to your mobile app.
The legacy chat product is scheduled for retirement on February 14, 2026, and is in maintenance mode until then. During this phase, you can continue to use chat, but we no longer recommend that you implement new chat channels. To avoid service interruptions to your customers, migrate to Messaging for In-App and Web before that date. Messaging offers many of the chat features that you love plus asynchronous conversations that can be picked back up at any time. Learn about chat retirement in Help.
Important
-
Chat in the Service Chat SDK for Android
Using Chat within the Service Chat SDK, you can provide real-time chat sessions from within your native app. -
Quick Setup: Chat in the Service Chat SDK
To add Chat to your Android app, create a configuration object that points to your org and then create a Chat UI client. -
Use Einstein Bots with Chat
With Einstein Bots, you can complement your chat support experience with a smart, automated system that saves your agents time and keeps your customers happy. Once you've set up Einstein Bots in your org, the SDK automatically begins the chat experience using your bot. You can design your bot to transfer to an agent at any point. -
Handle Custom URLs in Chat
Have your agents pass along custom URLs to perform specific actions in your mobile app. -
Listen for State Changes and Events
You can add listeners for state changes and events during a chat session and respond accordingly. For instance, when the client ends a session, you can display a dialog to the user. -
Show Pre-Chat Fields to User
Before a chat session begins, you can request that the user enter pre-chat fields that are sent to the agent at the start of the session. -
Create or Update Salesforce Records from a Chat Session
When a chat session begins, you can create or find records within your org and pass this information to the agent. Using this technique, your agent can immediately have all the context they need for an effective chat session. -
Check Agent Availability
Before starting a session, you can check the availability of your chat agents and then provide your users with more accurate expectations. For instance, when no agents are available, you can hide or disable the button to contact an agent -
Transfer File to Agent
Give users the ability to transfer files during a chat so they can share information about their issues. -
Block Sensitive Data in a Chat Session
To block sending sensitive data to agents, specify a regular expression in your org's setup. When the regular expression matches text in the user's message, the matched text is replaced with customizable text before it leaves the device. -
Build Your Own UI with the Chat Core API
With the Chat Core API, you can access the functionality of Chat without a UI. This API is useful if you want to build your own UI and not use the default.