AI Agent Component Spec
AI Agent Component Spec
Overview
This guide shows you how to add AI-powered conversation starters to your chat. When users open a new or empty conversation, they’ll see suggested opening messages to help break the ice. Time estimate: 5 minutesDifficulty: Beginner
Prerequisites
- React.js setup complete
- Messaging configured
- CometChat Pro or Enterprise plan (AI features)
Steps
Step 1: Enable Conversation Starter in Dashboard
- Go to your CometChat Dashboard
- Navigate to Extensions → Smart Chat Features
- Enable Conversation Starter
Step 2: Auto-Integration
Once enabled, conversation starters automatically appear in empty chats:Step 3: Handle Starter Selection
When a user clicks a conversation starter, it populates the message composer:Complete Example
Full implementation with conversation starters:Advanced Configuration
Advanced Configuration
Styling
Customize conversation starters appearance:Common Issues
| Issue | Solution |
|---|---|
| Starters not appearing | Verify extension is enabled in Dashboard |
| Empty suggestions | AI needs context; may not work for all users |
| Slow loading | AI processing takes 1-2 seconds |
| Feature unavailable | Upgrade to Pro or Enterprise plan |