How to create interactive messages in OneChat
Interactive Messages OneChat lets you create interactive message types like cards and forms in side your OneChat Web Widget using the APIs. You can create these messages using the New Message API. Payload Samples Use the following payload samples as the values to create various interactive messages. 1. OptionsFew readersHow to add Agent Bots to OneChat
Agent Bots AgentBot is a web service connected to a OneChat inbox and can act as a bot handling customer queries. OneChat allows you to easily connect your custom bot logic into conversation handling via AgentBot APIs. Once you connect agent bot to an inbox, all the new conversations created in your inbox will initially be assigned 'bot' status. OneChat will send each conversation events to your bot URL aFew readersWebhook Events in OneChat
Webhook Events OneChat Publishes Various events to Webhook Endpoints if any of the following are configured: Webhook Integration API Channel Agent Bots A sample webhook payloadFew readersWebsocket Events in OneChat
Websocket Events To subscribe to various events happening in your OneChat installation in realtime, you can connect to the OneChat WebSockets. OneChat WebSockets connection can be made at the following URL. Authenticating your WebSocket connection You will start receiving the events directed towards your customer after subscribing using the customer pubsubtoken. You will start receiving the events directed towards your agents after subscribingFew readersUsage of Cookies in OneChat
Cookies OneChat uses the following cookies. Chat Widget cwconversation: This cookie lets OneChat persist the conversation when the contact navigates through the webpages / revisits the website later. cwuser identifier : This cookie is used to cache the contact details if a contact is identified via the setUser SDK method. Agent Dashboard chatwootsession: Used by the OneChat Super Admin panel to persist the user session. authdata: Used by the Agent Dashboard to sFew readers