AI Agent Component Spec
AI Agent Component Spec
| Field | Value |
|---|---|
| Package | cometchat_chat_uikit |
| Key components | CometChatCallLogs, CometChatCallLogDetails |
| Init | CometChatUIKit.init(uiKitSettings) then CometChatUIKit.login(uid) |
| Entry point | Calls tab → CometChatCallLogs → tap item → CometChatCallLogDetails |
| Sample app | GitHub |
| Related | All Guides |
Components
| Component / Class | Role |
|---|---|
CometChatCallLogs | Displays the list of recent calls with tap callbacks |
CometChatCallLogDetails | Shows detailed information (participants, duration, type) |
CallLog | Call log data model from SDK |
Integration Steps
1. Add Calls Tab
Integrate the Calls tab into your main dashboard usingCometChatCallLogs.
File: dashboard.dart
2. Display Call Logs
UseCometChatCallLogs to fetch and show recent calls with customizable styling.
File: dashboard.dart
3. Show Call Log Details
Present detailed information when a call log is tapped. File: cometchat_call_log_details.dartFeature Matrix
| Feature | Component / Method | File |
|---|---|---|
| Calls tab | CometChatCallLogs | dashboard.dart |
| Display call logs | CometChatCallLogs | dashboard.dart |
| Call details | CometChatCallLogDetails | cometchat_call_log_details.dart |