AI Agent Component Spec
AI Agent Component Spec
Overview
This guide shows you how to display message delivery and read receipt information usingCometChatMessageInformation. This component is useful for showing users who has received and read their messages in group conversations.
Time estimate: 10 minutesDifficulty: Intermediate
Prerequisites
- React.js setup complete
- Messaging configured
- Read receipts enabled in CometChat Dashboard
Steps
Step 1: Import the Component
Step 2: Fetch a Message
Get the message you want to show information for:Step 3: Render Message Information
Display the receipt details:Step 4: Handle Close Action
Integrate with your UI to show/hide the panel:Complete Example
Full implementation with message list integration:Advanced Configuration
Advanced Configuration
Styling
Customize the appearance:Common Issues
| Issue | Solution |
|---|---|
| No receipts showing | Ensure read receipts are enabled in CometChat Dashboard |
| Empty list | The message may not have been delivered to any recipients yet |
| Error loading | Check that the message ID is valid and the user has permission to view it |
| Stale data | Receipts update in real-time; ensure SDK event listeners are active |