Use Full UI
This guide shows you how to use the prebuilt UI components to quickly integrate Agentforce chat functionality into your Android app.
Use the AgentforceLauncherContainer
Composable in your screen. It displays a Floating Action Button (FAB) that, when tapped, presents the full chat container.
To display the chat UI, you can use the AgentforceConversationContainer
Composable. This Composable provides the complete chat interface that you can integrate into your app.
First, create an AgentforceConversation
object:
Then use the AgentforceConversationContainer
Composable:
The AgentforceConversationContainer
Composable takes the following parameters:
conversation
: TheAgentforceConversation
object that you createdonClose
: A lambda that will be called when the user closes the chat view
[INFORMATION NEEDED: How do UI events work in the Android SDK?]
Based on the iOS implementation, there should be equivalent delegate patterns or callback mechanisms for:
- Modifying messages before sending
- Handling sent messages
- Managing agent switches
- Error handling
[INFORMATION NEEDED: What other UI containers/presentation modes are available?]
- Are there different UI presentation modes?
- What launcher customization options exist?
- How do different UI containers work?
- What customization options are available for the prebuilt UI?
- Headless: See Build a Headless Experience for custom UI
- Customization: See Branding and Theming for visual customization