Advanced Features

Realtime Voice Chat

If you have the Standard or above plan, you can turn on the Realtime Voice Chat feature. With this feature, your chatbot can communicate with the user directly like person to person talks. Below is a demo of how it works in our website.


Set Up Realtime Voice Chat

The Realtime Voice Chat feature is not enabled by default due to its high cost. To activate it:

  1. Navigate to the Settings page and select the Realtime Audio tab.
  2. Configure the realtime voice avatar that will appear in the center of the chatbot widget.
  3. Set the default voice for initial user interactions. Users can change this later if desired.
  4. Preview voices by clicking the play button.

Realtime Voice Chat Settings

By default, the Enable Record Audio option is turned on, allowing you to playback original voice interactions in your chat logs dashboard. If disabled, you'll only see chat history through transcripts generated by OpenAI's whisper model. Note that there may be discrepancies between these transcripts and the audio understood by OpenAI's realtime API.

Recorded audio interactions are stored securely in our encrypted Azure blob server, counting towards your file storage quota. The Standard plan includes 2.5GB of free storage, while the Professional plan offers 10GB.

Adjustable parameters for realtime voice chat include:

  • Threshold: Voice activity detection sensitivity (lower values are more sensitive).
  • Prefix Padding: Duration of audio to include before speech recognition.
  • Silence Duration: Silent period before the server considers speech ended.
  • RAG Limit: Number of search results to include in context (fewer results mean less information and reduced input text tokens).

Users can change the voice by clicking the adjust button in the top right corner, which opens the voice selection overlay: Realtime Voice Selection Overlay

You can customize the available languages in the settings.

Cost

OpenAI's realtime API is expensive, so we calculate message costs based on consumed tokens. Unlike text-based interactions, each voice message uses a variable number of tokens. Below is pricing table for different kinds of tokens:

TypeInput (per 1k tokens)Output (per 1k tokens)
Text1 credit4 credits
Audio20 credits40 credits

Unlikey the text based messages, the realtime voice model decides when to retrieve context information using the RAG search tool. By default, we send 10 RAG text chunks (about 3000 input text tokens) to the API. You can reduce this to a minimum of 5 chunks to lower costs.

Typically, messages without context retrieval cost around 10 message credits, while those with context cost 30-40 credits.

You can view the message credit cost for each interaction by hovering over the question mark icon in the Chat Logs dashboard.

Chat Logs Dashboard View Tokens And Cost

Lead Information Collection

As users interact directly with the chatbot without a form, the system automatically records name, phone, and email information mentioned during the conversation. This data is sent to your leads dashboard, webhook, etc.

You can modify your chatbot's base prompt to collect basic user information when the conversation starts before providing further service.

The collected information functions similarly to data submitted through a lead collection form. We will send postMessage and webhook events, and the chatbot will retain awareness of this information in future conversations, even if the user refreshes the page.

Previous
Live Chat Escalation