Skip to main content
Quick Reference for AI Agents & DevelopersChoose your integration path:
These guides provide complete, step-by-step instructions for integrating CometChat into your application. Each guide is designed to be followed from start to finish, with copy-paste ready code examples.

Choose Your Integration Path


Add-On Features


Quick Decision Guide

I want to…Use this guide
Add chat to my appChat Only
Add video calls without chatCalls Only
Build a full communication appChat + Calls
Filter inappropriate contentModeration
Send push notificationsNotifications

Integration Checklist

Use this checklist to track your integration progress:

Basic Setup

  • Create CometChat account and app
  • Get App ID, Region, and Auth Key
  • Install SDK(s)
  • Initialize CometChat
  • Implement user login

Chat Features

  • Send text messages
  • Send media messages
  • Receive messages (listeners)
  • Fetch message history
  • Typing indicators
  • Read receipts
  • Create/join groups

Calling Features

  • Initialize Calls SDK
  • Initiate calls
  • Accept/reject calls
  • Handle call events
  • End calls properly

Production Readiness

  • Switch to Auth Tokens (not Auth Key)
  • Enable push notifications
  • Configure moderation rules
  • Handle errors gracefully
  • Test on multiple devices

Common Integration Patterns

// Initialize in useEffect or app startup
useEffect(() => {
  const init = async () => {
    await CometChat.init(APP_ID, appSettings);
    // Check for existing session
    const user = await CometChat.getLoggedinUser();
    if (user) setUser(user);
  };
  init();
}, []);
// Initialize in main.js or plugin
export default {
  async install(app) {
    await CometChat.init(APP_ID, appSettings);
    app.config.globalProperties.$cometchat = CometChat;
  }
}
// Initialize in app.module.ts or service
@Injectable({ providedIn: 'root' })
export class CometChatService {
  async initialize() {
    await CometChat.init(APP_ID, appSettings);
  }
}

Need Help?