Prerequisites
Installation
- Kotlin DSL
- Groovy
The SDK declares the
INTERNET permission in its own manifest. It is merged automatically — you do not need to add it to your app’s manifest.Quick Start
1
Get your Agent ID
- Go to the Chatbase Dashboard
- Select your AI agent
- Go to Settings → General
- Copy the Agent ID
2
Enable the Android SDK channel
In the dashboard, go to Deploy → Android SDK and enable the channel for your AI agent.
3
Create a client
context can be any Android Context (Activity, Application, etc.). It is only used during creation to generate the device ID.4
Send your first message
5
Clean up
Next Steps
Streaming
Real-time streaming with callbacks and Kotlin Flow
Client-Side Tools
Register local tool handlers the AI agent can invoke
Conversations
Manage conversations, history, and pagination
Chatbase
Create clients and configure ChatbaseConfig