Chatbot interface
Chatbots can add rich functionality to your chat integration by enabling automatic and application-aware responses to user enquiries.
While TalkJS doesn't provide an out-of-the-box AI chatbot that can interact with your users without any further operations, we provide a way for chatbots to interface with the chat:
- Use our webhooks feature to create a URL to monitor events from users (for example, when a user sends a message)
- Call the chatbot to generate responses to incoming events
- Call our REST API to send the chatbot's responses to the chat
It is up to your application to appropriately process incoming events and generate relevant responses.
For an example that uses the language model that powers ChatGPT, see our tutorial on how to integrate a chatbot into your TalkJS chat with the OpenAI API.