The flow
Create a user
CometChat requires you to connect every bot to a user. This has one major advantage- at any time, you can log in as that bot user and send out personalized replies. So before you create a bot, you must first create a new user.Create the bot
Once you’ve created a user, you can create a new bot. The actual implementation of the bot is entirely up to you. You simply need to specify aCallback URL
and CometChat will automatically start forwarding all messages that fit the criteria to the URL.