A Flutter starter template for building real-time conversational AI agents using VideoSDK.
- Voice Support: Real-time audio communication with mic toggle and device switching.
- AI Agent Integration: Interact with an AI agent with real-time responses.
- Live Transcription: Display ongoing conversation transcripts.
- Screen Sharing: Share your screen during sessions.
- Device Management: Switch between audio input/output devices.
Before you begin, ensure you have the following installed:
- Flutter (v3.8.0 or later)
- Dart (v3.x or later)
- Android Studio or Xcode for device/emulator setup
Use the following steps to run the project locally:
git clone https://github.com/videosdk-live/agent-starter-app-flutter.git
cd agent-starter-flutterflutter pub getCreate a .env file in the root directory by copying the example:
cp .env.example .envUpdate the .env file with the following values:
AUTH_TOKEN=your_videosdk_auth_token
AGENT_ID=your_agent_id
MEETING_ID=your_meeting_id (optional)
VERSION_ID=your_agent_version_id(optional)Tip
You can obtain your AUTH_TOKEN from the VideoSDK Dashboard.
# Android
flutter run
# iOS
cd ios && pod install && cd ..
flutter run -d ios| Variable | Description | Required |
|---|---|---|
AUTH_TOKEN |
VideoSDK authorization token | Yes |
AGENT_ID |
ID of the AI agent to connect with | Yes |
MEETING_ID |
Meeting ID to join (optional) | No |
The app requires the following permissions:
Android — add to AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />iOS — add to Info.plist:
<key>NSMicrophoneUsageDescription</key>
<string>Microphone access is required for audio calls.</string>
<key>NSCameraUsageDescription</key>
<string>Camera access is required for video calls.</string>Built with ❤️ by VideoSDK