AI Agent Component Spec
AI Agent Component Spec
Overview
This guide shows you how to add collaborative whiteboard functionality to your chat. Whiteboards let users draw, sketch, and brainstorm together in real-time. Time estimate: 5 minutesDifficulty: Beginner
Prerequisites
- React.js setup complete
- Groups configured
- CometChat account with Collaboration extensions
Steps
Step 1: Enable Whiteboard Extension
- Go to your CometChat Dashboard
- Navigate to Extensions → Collaboration
- Enable Collaborative Whiteboard
Step 2: Auto-Integration
Once enabled, whiteboard automatically integrates into your chat:
Step 3: Create a Whiteboard Session
Users can create whiteboards through the UI:- Click the attachment/action button in the message composer
- Select “Collaborative Whiteboard”
- A whiteboard session is created and shared in the chat
Step 4: Join Whiteboard Sessions
When a whiteboard message appears:- Click the whiteboard message to open it
- All participants can draw simultaneously
- Changes sync in real-time
Complete Example
Full group chat with whiteboard:Advanced Configuration
Advanced Configuration
Styling
Customize whiteboard message appearance:Common Issues
| Issue | Solution |
|---|---|
| Whiteboard button not showing | Enable extension in Dashboard |
| Can’t join session | Check if session is still active |
| Drawing not syncing | Verify network connectivity |
| Session expired | Create a new whiteboard session |