Frappe Content licensed CC-BY-SA 3.0
English
Go to website
Back
Articles on:
OneChat | Advanced
Learn more about interactive messages, usage of cookies and more.
How 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 a
Few readers
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. Options
Few readers
Usage of Cookies in OneChat
Cookies OneChat uses the following cookies. Chat Widget cw_conversation: This cookie lets OneChat persist the conversation when the contact navigates through the webpages / revisits the website later. cw_user_{identifier}: This cookie is used to cache the contact details if a contact is identified via the setUser SDK method. Agent Dashboard _chatwoot_session: Used by the OneChat Super Admin panel to persist the user session. auth_data: Used by the Agent Dashboard to s
Few readers
Websocket 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 pubsub_token. You will start receiving the events directed towards your agents after subscribing
Few readers
Webhook 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 payload
Few readers