AI Integration Quick Reference
AI Integration Quick Reference
Overview
Flagging messages allows users to report inappropriate content to moderators or administrators. When a message is flagged, it appears in the CometChat Dashboard under Moderation > Flagged Messages for review.For a complete understanding of how flagged messages are reviewed and managed, see the Flagged Messages documentation.
Prerequisites
How It Works
Get Flag Reasons
Before flagging a message, retrieve the list of available flag reasons configured in your Dashboard:Flag a Message
UseflagMessage() with the message ID and a FlagDetail object:
Parameters
Complete Example
Next Steps
AI Moderation
Automate content moderation with AI
Delete a Message
Remove messages from conversations
Receive Messages
Listen for incoming messages in real time
Send Messages
Send text, media, and custom messages