AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Packages | @cometchat/chat-uikit-react + @cometchat/calls-sdk-javascript |
| Key components | CometChatCallDetails, CometChatCallDetailsInfo, CometChatCallDetailsParticipants, CometChatCallDetailsRecording |
| Init | CometChatUIKit.init(UIKitSettings) then CometChatUIKit.login("UID") + Calls SDK installed |
| Purpose | Detailed call insights screen with metadata, participants, and recordings |
| Sample app | GitHub |
| Related | All Guides |
@cometchat/calls-sdk-javascript.
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
RenderCometChatCallLogs when the “Calls” tab is active. When a call is clicked, dispatch it to the app state so the details panel can display it.
File: CometChatSelector.tsx
2. Call Details Component
Guard-check that the selected item is aCometChat.Call instance, then render CometChatCallDetails. The onBack callback clears the selection and returns to the call list.
File: CometChatHome.tsx
3. Call Details Implementation
The main details screen. It shows the caller’s avatar and name at the top, call info (status, duration) below, and three tabs: Participants, Recording, and History. Tab selection switches the content panel. File: CometChatCallLogDetails.tsx4. Call Information Display
Renders the call status line (incoming/outgoing) based on who initiated the call. Compares the initiator’s UID against the logged-in user to determine direction, then maps the SDK call status to a localized label. File: CometChatCallLogInfo.tsxFeature Matrix
| Feature | Component / Method | File |
|---|---|---|
| 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.