AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Package | @cometchat/chat-sdk-javascript |
| Key Classes | CometChat.Group |
| Group Types | PUBLIC, PRIVATE, PASSWORD |
| Member Roles | owner, admin, moderator, participant |
| Key Methods | createGroup(), joinGroup(), leaveGroup(), deleteGroup() |
| Prerequisites | SDK initialized, user logged in |
| Related | Create Group, Join Group, Retrieve Groups |
Group Types
| Type | Description | Join Behavior |
|---|---|---|
| Public | Open to all users | Any user can join without approval |
| Private | Invite-only | Users must be added by admin/moderator |
| Password | Protected by password | Users must provide correct password to join |
Member Roles
| Role | Permissions |
|---|---|
| Owner | Full control: manage members, settings, delete group. Cannot leave without transferring ownership. |
| Admin | Manage members (add, kick, ban), change member scope, update group settings |
| Moderator | Kick and ban members, moderate content |
| Member | Send/receive messages, leave group |
Next Steps
Create a Group
Create public, private, or password-protected groups
Join a Group
Join existing groups as a participant
Retrieve Groups
Fetch and filter the list of groups
Retrieve Group Members
Get the member list for a group