AI Agent Component Spec
AI Agent Component Spec
- Packages:
@cometchat/chat-uikit-react+@cometchat/calls-sdk-javascript - Key components:
CometChatCallDetails,CometChatCallDetailsInfo,CometChatCallDetailsParticipants,CometChatCallDetailsRecording - Required setup:
CometChatUIKit.init(UIKitSettings)thenCometChatUIKit.login("UID")+ Calls SDK installed - Purpose: Detailed call insights screen with metadata, participants, and recordings
- Sample app: GitHub
- Related: All Guides
Overview
The Calls Log Details feature provides users with detailed information about specific calls, including call status, participants, duration, recordings, and call history.- Provides detailed information about specific calls when selected from the calls tab.
- Enables users to review call details, understand outcomes, view participants, and access recordings for reference.
- Users can view call details with tabbed navigation showing participants, recordings, and call history.
Prerequisites
- React v18.2.0+
- CometChat React UI Kit v6.1.0+
- CometChat Chat SDK JavaScript v4.0.13+
- CometChat Calls SDK JavaScript v4.0.11+
- Project setup with initialized CometChat credentials (App ID, Auth Key, Region)
- TypeScript support (recommended)
- Call functionality implemented
- Calls tab navigation configured
Components
| Component / Class | Role |
|---|---|
| CometChatCallDetails | Main container for call details display |
| CometChatCallDetailsInfo | Shows call status, duration, and info |
| CometChatCallDetailsParticipants | Displays call participants |
| CometChatCallDetailsRecording | Shows call recordings if available |
| CometChatCallDetailsHistory | Displays call history |
| CometChatCallLogs | Calls list component in the calls tab |
Integration Steps
1. Calls Tab Integration Setup
File: CometChatSelector.tsx2. Call Details Component Integration
File: CometChatHome.tsx3. Call Details Main Component Implementation
File: CometChatCallLogDetails.tsx4. Call Information Display Component
File: CometChatCallLogInfo.tsxImplementation Flow
- Fetch Data / Call Selection
- Load Call Data / Associated Information
- Display Call Details / Tab Navigation
- Live Updates / User Status Monitoring
Customization Options
- Styling overrides via CSS
- Custom tab configurations
- Custom call status labels and icons
- User profile customization
- Duration and date formatting
- Icon replacements
Filtering / Edge Cases
- Different call types (audio/video/group)
- Call status variations (missed, rejected, busy, etc.)
- Unavailable users
- Missing duration or recording data
- Large call history handling
Error Handling & Data Validation
- Includes try-catch blocks for duration, history, and call list fetching.
Summary / Feature Matrix
| Feature | Component / Method | File Reference |
|---|---|---|
| Calls tab integration | CometChatCallLogs | CometChatSelector.tsx |
| Call details display | CometChatCallDetails | CometChatCallLogDetails.tsx |
| Call information | CometChatCallDetailsInfo | CometChatCallLogInfo.tsx |
| Call participants | CometChatCallDetailsParticipants | CometChatCallLogParticipants.tsx |
| Call recordings | CometChatCallDetailsRecording | CometChatCallLogRecordings.tsx |
| Call history | CometChatCallDetailsHistory | CometChatCallLogHistory.tsx |
| Tab navigation | activeTab state | CometChatCallLogDetails.tsx |
| User status monitoring | CometChat.addUserListener() | CometChatCallLogDetails.tsx |
Next Steps
Call Logs
The call logs component reference.
Call Features
Overview of calling capabilities.
All Guides
Browse all feature and formatter guides.
Sample App
Full working sample application on GitHub.