Skip to main content

Built-in services

Built-in services are JS libraries that are loaded automatically with each bot. You can use them in any JS script without explicit import.

ServiceProvided features
$analyticsCollect dialog statistics.
$cailaAccess NLU and client entities from the bot script.
$conversationApiInstantly send bot messages to the channel without waiting for the user’s request to be processed.
$dialerControl telephony features from the bot script.
$envAccess environment variables added within the project.
$faqAccess the bot knowledge base from the bot script.
$gptAccess OpenAI’s ChatGPT from the bot script.
$httpExecute HTTP requests to external resources.
$jsapiUse various system methods.
$mailSend email messages from the bot script.
$nlpManage patterns, word classification, coordination, etc.
$prompterUse the Prompter API in the prompter bot script.
$pushgateCreate custom events, as well as trigger and process them right from the bot script.
$reactionsCreate bot responses and state transitions.
$secretsAccess secrets added within the project.
$textCampaignControl the dispatch of messages sent to clients during text campaigns.