All examples shown are set in a Production environment.
If you are using the adapters, you can access the API client through the Chat instance used as an entry parameter of the function:
function(chatbot) {
var ChatbotAPI = chatbot.api //Apiclient methods can be accessed using the ChatbotAPI
}
To create an API client instance, invoice the apiClient method.
Once you start the API Client, it exposes the following methods:
Conversation
Variables
App
Tracking
Surveys
Language detector