JavaScript Socket API
JavaScript Socket API Chat Library that correspond to processes that transform your Custom Channel into a fully functional AI Chatbot.
Last updated
Was this helpful?
JavaScript Socket API Chat Library that correspond to processes that transform your Custom Channel into a fully functional AI Chatbot.
Last updated
Was this helpful?
This is the Chat Library of the JavaScript Socket API that is currently available and compatible with the Captivate Chat platform. These are all intended to create processes that will transform your Custom Channel into a full-blown AI Chatbot.
They are also available .
REMINDER
This JavaScript Socket API is advisable to be used by developers familiar with the product or service you want to transform into a Custom Channel.
Please provide this page to them so they can conduct proper testing with the Custom Channel you want to create.
Import and initialize the API client:
Create a new conversation with the following options:
Basic setup with just a user ID:
Include user information and custom data:
Send a message to the conversation:
Listen for responses:
Use event listeners to handle various updates, errors, or custom actions:
Error handling:
Updates on conversation status:
Handling custom actions:
Retrieve the transcript of a conversation:
Delete the current conversation
Fetch a list of conversations associated with a specific user ID:
Delete list of conversations associated with a specific user ID: