AI Agent Component Spec
AI Agent Component Spec
| Field | Value |
|---|---|
| Packages | cometchat_chat_uikit + cometchat_calls_uikit (add to pubspec.yaml) |
| Required setup | CometChatUIKit.init(uiKitSettings: UIKitSettings) then CometChatUIKit.login(uid) — Calls SDK must also be installed |
| Call features | Incoming Call, Outgoing Call, Call Logs, Call Buttons |
| Key components | CometChatCallButtons → Call Buttons, CometChatIncomingCall → Incoming Call, CometChatOutgoingCall → Outgoing Call, CometChatCallLogs → Call Logs |
| Auto-detection | UI Kit automatically detects the Calls SDK and enables call UI components |
| Requirements | minSdkVersion 24 (Android), iOS 12+ |
If you haven’t set up calling yet, follow the Calling Integration guide first.
Features
Incoming Call
The Incoming Call widget of the CometChat UI Kit provides the functionality that lets users receive real-time audio and video calls in the app. When a call is made to a user, the Incoming Call widget triggers and displays a call screen. This call screen typically displays the caller information and provides the user with options to either accept or reject the incoming call.
Outgoing Call
The Outgoing Call widget of the CometChat UI Kit is designed to manage the outgoing call process within your application. When a user initiates an audio or video call to another user or group, this widget displays an outgoing call screen, showcasing information about the recipient and the call status. Importantly, the Outgoing Call widget is smartly designed to transition automatically into the ongoing call screen once the receiver accepts the call. This ensures a smooth flow from initiating the call to engaging in a conversation, without any additional steps required from the user.
Call Logs
Call Logs widget provides you with the records call events such as who called who, the time of the call, and the duration of the call. This information can be fetched from the CometChat server and displayed in a structured format for users to view their past call activities.
Next Steps
Call Buttons
Add audio and video call buttons to your chat interface
Incoming Call
Handle and display incoming call screens
Outgoing Call
Manage outgoing call screens and transitions
Call Logs
Display call history and records