API
We're adding API as a channel, so users can use the chatbot logic built on WotNot but utilize their own custom-made chat widget / launcher.
Why is this helpful?
You have a better chat widget UI
You want to manage chatbots on multiple domains
Following are the steps to use API as a channel:
Step 1: Build your chatbot flow
Goto Bot builder > Choose "API" as channel
Build your conversation flow
Hit "Deploy" to publish your version
Step 2: Configure WotNot's APIs
You would need to invoke 2 APIs to facilitate the chat between the chatbot built on WotNot and your system.
Start conversation - To initiate the conversation and create a thread.
Send visitor message - To send the visitor's reply to a message for WotNot to process and goto the next step in the chat flow.
With this your system will be able to smoothly interact with the chatbot built on WotNot.
Start conversation
POST
https://app.wotnot.io/api/v1/conversations
Initiates a chat session with a visitor. Make sure you use this API for unique visitors.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
Response
Send visitor response
POST
https://app.wotnot.io/api/v1/conversation/<conversation_id>/messages
Send all visitor responses received at your systems to WotNot using this API.
After receiving it, WotNot will process the visitor message as per the chatbot flow and provide the chatbot response.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
Response
Last updated
Was this helpful?