Skip to main content

Prerequisites

Installation

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

  1. Go to the Chatbase Dashboard
  2. Select your AI agent
  3. Go to Settings → General
  4. 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.
If the Android SDK channel is not enabled, every SDK request fails with a 404 AGENT_NOT_FOUND error — even when the agent ID is correct.
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