--- title: OpenAI --- ## Create chat completion With the OpenAI block, you can create a chat completion based on your user queries and display the answer back to your typebot. OpenAI block This integration comes with a convenient message type called **Dialogue**. It allows you to easily pass a sequence of saved assistant / user messages history to OpenAI: OpenAI messages sequence Then you can give the OpenAI block access to this sequence of messages: OpenAI messages sequence ## Create speech This action allows you to transform a text input into an audio URL that you can reuse in your bot. :::note The generated audio URLs are temporary and expire after 7 days. If you need to store them, make sure to download them before they expire. :::
## Troobleshooting ### Error message: "OpenAI block returned error" It means your OpenAI block is not configured properly. Please check the following: - You have selected an OpenAI account - You have at least 1 **user** message or a **Dialogue** message set up. ### It returns an empty message It most likely mean that you exceeded your OpenAI free quota. Add a payment method to your OpenAI account to continue using it.