AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Package | @cometchat/chat-uikit-angular |
| Framework | Angular |
| Components | CometChatConversationsComponent, CometChatMessageHeaderComponent, CometChatMessageListComponent, CometChatMessageComposerComponent |
| Layout | Two-panel — conversation list (left) + message view (right) |
| Prerequisite | Complete Angular Integration Steps 1–5 first |
| Pattern | WhatsApp Web, Slack, Microsoft Teams |

What You’re Building
Three sections working together:- Sidebar (conversation list) — shows all active conversations (users and groups)
- Message view — displays chat messages for the selected conversation in real time
- Message composer — text input with support for media, emojis, and reactions
Step 1 — Update AppComponent
Wire the conversation list and message components together in your root component. The UIKit’sChatStateService handles all the wiring — when a user clicks a conversation, cometchat-conversations updates the service, and the message components automatically react to the change.
src/app/app.component.ts
cometchat-conversationscallsChatStateService.setActiveConversation()automatically when a conversation is clicked.setActiveConversation()extracts theUserorGroupand sets it as the active entity, enforcing mutual exclusivity (setting a user clears the group, and vice versa).cometchat-message-header,cometchat-message-list, andcometchat-message-composerauto-subscribe toChatStateService— no[user]or[group]bindings needed.- The
@ifblock readschatStateService.activeUser()andchatStateService.activeGroup()signals to show the chat window or the empty state.
Step 2 — Run the Project
Next Steps
Theming
Customize colors, fonts, and styles to match your brand
Components Overview
Browse all prebuilt UI components
Angular Integration
Back to the main setup guide
Core Features
Chat features included out of the box