AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Package | @cometchat/chat-uikit-angular |
| Key components | cometchat-thread-header, cometchat-message-list, cometchat-message-composer |
| Init | CometChatUIKit.init(uiKitSettings) then CometChatUIKit.login("UID") |
| Entry point | cometchat-message-list threadRepliesClick output opens thread view from group messages |
| Sample app | GitHub |
| Related | All Guides |
Components
| Component / Selector | Role |
|---|---|
cometchat-threaded-messages | Main container for threaded messages |
cometchat-thread-header | Displays parent message and controls |
cometchat-message-list | Shows messages filtered by parentMessageId |
cometchat-message-composer | Input for composing threaded replies |
Implementation Steps
1. Thread State Management
Create a component that tracks the parent message the user clicked “Reply in Thread” on. When set, show the threaded messages side panel.2. Thread Trigger from Group Messages
Wire thethreadRepliesClick output on cometchat-message-list. When a user clicks the thread reply icon on any message, this fires with the parent message object.
3. Threaded Messages Component
Render the thread panel with the parent message context, reply list filtered byparentMessageId, and a composer scoped to the thread.
4. Thread Panel with Blocked Composer Fallback
When the composer is blocked (e.g., permissions), show a fallback message instead.5. Full Component Example
A complete standalone component wiring thread state, the trigger, and the panel together.Feature Matrix
| Feature | Component / Binding | Description |
|---|---|---|
| Show thread option | (threadRepliesClick) on cometchat-message-list | Fires when user clicks thread reply icon |
| Display thread messages | cometchat-message-list with [parentMessageId] | Filters messages to thread replies |
| Compose reply | cometchat-message-composer with [parentMessageId] | Scopes new messages to the thread |
| Thread header | cometchat-thread-header with [message] | Shows parent message context |
| Close thread | (closeClick) on cometchat-thread-header | Closes the thread side panel |
| Thread state | Component property threadedMessage | Tracks the active parent message |
Next Steps
Message List
Render real-time message threads.
Thread Header
Customize the thread header component.
All Guides
Browse all feature and formatter guides.
Sample App
Full working sample application on GitHub.