AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Package | @cometchat/chat-uikit-angular |
| Framework | Angular |
| Components | CometChatConversationsComponent, CometChatCallLogsComponent, CometChatUsersComponent, CometChatMessageHeaderComponent, CometChatMessageListComponent, CometChatMessageComposerComponent |
| Layout | Tabbed sidebar (Chats, Calls, Users) + message view |
| Prerequisite | Complete Angular Integration Steps 1–5 first |
| Pattern | Full-featured messaging app with multiple sections |

What You’re Building
Three sections working together:- Tab bar — switches between Chats, Call Logs, and Users
- List view — renders the list for the active tab (conversations, call logs, or users)
- Message view — header + messages + composer for the selected item
Step 1 — Update AppComponent
Wire everything together.ChatStateService handles the state — cometchat-conversations and cometchat-users automatically update the service when an item is clicked, and the message components auto-subscribe.
src/app/app.component.ts
- The
activeTabproperty drives which list component renders —cometchat-conversations,cometchat-call-logs, orcometchat-users. cometchat-conversationscallsChatStateService.setActiveConversation()on click, which extracts theUserorGroupand sets it as the active entity.cometchat-userscallsChatStateService.setActiveUser()on click.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