Convert text to speech with OpenAI

Having various types of messages in a bot conversation can significantly improve user engagement. You can convert text to audio and send it as an audio file message in a bot conversation. This can be done using the bot variables and OpenAI text-to-speech integration.

Step 1. Add and set up Open AI integration:

Navigate to the organization integrations section:


Add the Open AI integration:


Given the settings are correct, the status of the integration will become Active.

Step 2. Add bot variable of type Text to Speech:

In our example, we use another variable text for the conversion, so you will need to change it according to your bot structure.

Select the integration type: OpenAI Select the previously configured integration.

Step 3. Add a chat text of type Audio File to render the audio


Enable custom file URL and use the previously created variable, and adjust other settings as needed.

Edit this page

See also