A starter project for integrating Conversational AI Agents in Android using VideoSDK.
- Voice & Video Support: Seamless real-time audio and video communication.
- AI Agent Integration: Talk to an AI Agent directly with real-time feedback and dynamic animations.
- Live Transcription: View real-time ongoing transcriptions of the conversations within the app.
- Screen Sharing: Built-in support for sharing your screen during the session.
- Device Management: Switch between different audio and video devices smoothly.
- Android 8.0 (API level 26) or later
- Android Studio (latest stable) with JDK 17
- Android Gradle Plugin 9.0.1 and Kotlin 2.0.21 (already pinned in the project)
You can create and configure a powerful AI agent directly from the VideoSDK dashboard — no coding required.
First, follow our detailed guide to Build a Custom Voice AI Agent in Minutes. This will walk you through creating the agent's persona, configuring its pipeline (Realtime or Cascading), and testing it directly from the dashboard.
Once your agent is created, you need to get its agentId and versionId to connect it to your frontend application.
-
After creating your agent, go to the agent's page and find the JSON editor on the right side. Copy the
agentId. -
To get the
versionId, click on the 3 dots beside the Deploy button and click on "Version History". Copy the version ID via the copy button of the version you want.
-
Clone the repository:
git clone https://github.com/videosdk-live/agent-starter-app-android.git cd agent-starter-app-android -
Open the project in Android Studio: Launch Android Studio and open the
agent-starter-app-androidfolder. Let Gradle finish syncing before proceeding. -
Set up credentials: Before running the app, you need to configure your authentication details. Copy
local.properties.exampletolocal.propertiesat the project root and supply the required values:authToken: Your authorization token.agentId: The ID of the agent you want to connect to.
Also, there are two optional values:
meetingId: If not specified, then it will create new meeting id and proceed.versionId: If not specified, then it will get the latest version for provided agentId and proceed with the latest versionId.
-
Build and Run: Connect a physical Android device (or start an emulator running API 26+), select it as the run target, and click the Run button (or press
Shift + F10) in Android Studio. You can also install a debug build from the command line with./gradlew installDebug.