AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Packages | @cometchat/chat-uikit-angular + @cometchat/calls-sdk-javascript |
| Key components | cometchat-call-logs, cometchat-call-log-details, cometchat-call-log-participants, cometchat-call-log-recordings |
| 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 / Selector | Role |
|---|---|
cometchat-call-logs | Calls list component in the calls tab |
cometchat-call-log-details | Main container for call details display |
cometchat-call-log-participants | Displays call participants |
cometchat-call-log-recordings | Shows call recordings if available |
cometchat-call-log-history | Displays call history |
Implementation Steps
1. Calls Tab Integration
Rendercometchat-call-logs when the “Calls” tab is active. When a call is clicked, store it so the details panel can display it.
2. Call Details Component
Guard-check that the selected item is a call, then render the details view. The(backClick) output clears the selection and returns to the call list.
3. Call Details Implementation
The main details screen shows the caller’s avatar and name at the top, call info below, and three tabs: Participants, Recording, and History.4. Call Information Display
Determine call direction (incoming/outgoing) by comparing the initiator’s UID against the logged-in user, then map the SDK call status to a localized label.5. Full Integration Example
A complete component wiring the calls tab, call selection, and details panel together.Feature Matrix
| Feature | Component / Method | Description |
|---|---|---|
| Calls tab integration | cometchat-call-logs with (itemClick) | Lists calls and triggers detail view |
| Call details display | cometchat-call-log-details | Main details container with tabs |
| Call information | getCallStatus() | Determines incoming/outgoing direction |
| Call participants | cometchat-call-log-participants | Displays participant list |
| Call recordings | cometchat-call-log-recordings | Shows available recordings |
| Call history | cometchat-call-log-history | Displays call history entries |
| Tab navigation | activeTab property | Switches between Participants, Recording, History |
| Cleanup | ngOnDestroy | Unsubscribes from event listeners |
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.