AI Integration Quick Reference
AI Integration Quick Reference
@cometchat/calls-sdk-javascript.
Components
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
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.