Overview
The Message Agentic Flow feature enables AI-driven interactions within your chat application. In V6, AI features are handled throughMessageTemplateUtils rather than explicit extension registration.
1:1 and group conversations. AI Agents work in both one-on-one and group conversations. In a 1:1 chat, the end user talks directly with the agent user. In a group, the agent participates as a member — the UI Kit renders and attributes agent-generated messages (including cards) like any other member’s message.
Integration
Enable AI Features
Ensure AI features are enabled on your CometChat Dashboard. V6 handles AI integration internally.Custom AI Message Handling
- Dart
AI Assistant Chat History
Use theCometChatAIAssistantChatHistory widget to display past AI interactions:
- Dart
Key V6 Differences
| Aspect | V5 | V6 |
|---|---|---|
| AI extension registration | Explicit via UIKitSettings.aiFeature | Handled internally via MessageTemplateUtils |
| Custom AI templates | Via CometChatUIKit.getDataSource() | Via MessageTemplateUtils and direct template injection |
| AI Assistant widget | CometChatAIAssistantChatHistory | Same widget, same API |