New
- Managing Chat API as an asynchronous channel.
- Changing ASR and TTS settings from the script.
Managing Chat API as an asynchronous channel
The Chat API channel settings now have a field for webhook address. You can receive bot messages or events to it when working with asynchronous requests.
Asynchrony allows you to process several requests simultaneously. You can send new requests without waiting for the server to finish processing the previous ones. For example, with asynchronous requests, you can send text campaigns without delays and receive asynchronous events without additional requests.
Changing ASR and TTS settings from the script
When you create a phone channel and select your ASR/TTS provider, you can specify the settings for speech recognition and synthesis. Previously they could only be configured when creating or editing the connection, and they were used for all subsequent phone calls.
Now you can override these settings for each individual call: for example, you can switch the recognition language mid-conversation or change the voice in which the bot talks to a specific user.
To control the ASR and TTS settings from the script, use the new $dialer
built-in service methods:
Method | Action |
---|---|
getAsrProvider getTtsProvider | Get the ASR/TTS provider name. |
getAsrConfig getTtsConfig | Get the current ASR/TTS settings. |
setAsrConfig setTtsConfig | Override the ASR/TTS settings. |