Skip to main content

Overview

Bolna Voice AI includes built-in language detection that automatically identifies the language your users speak and adapts system messages accordingly. This feature ensures a seamless multilingual experience by analyzing conversation patterns and switching predefined messages to match the detected language. When a user speaks in English, Hindi, Tamil, or any other supported language, Bolna detects this and automatically delivers system messages in that language, creating a more natural and personalized conversation flow.

How detection works

Bolna’s language detection activates after 3 conversation turns. During these initial turns, the system collects and analyzes user transcripts to identify the dominant language being spoken. This approach ensures accurate detection by gathering enough conversational context before making a language determination, while still being fast enough to adapt early in the call. Once the dominant language is identified, Bolna automatically switches all configured system messages to match that language for the remainder of the conversation.

Supported message types

Language detection currently affects three types of system messages that can be configured with multilingual variants:

1. User online check message

When the agent needs to check if the user is still on the call after a period of silence, it sends a “is user online” message. You can configure this message in multiple languages, and Bolna will automatically select the appropriate version based on the detected conversation language.
Bolna Voice AI dashboard showing user online detection settings with multilingual message configuration for English, Hindi, Gujarati, Bengali, and Tamil languages to automatically check if callers are still on the line

Configure multilingual user online check messages in Bolna Voice AI dashboard

{
  "check_user_online_message": {
    "en": "Hey, are you still there?",
    "hi": "क्या आप अभी भी वहाँ हैं?",
    "ta": "வணக்கம், நீங்கள் இன்னும் இணைப்பில் இருக்கிறீர்களா?",
    "bn": "নমস্কার, আপনি কি এখনও লাইনে আছেন?"
    ...
  }
}

2. Call hangup message

When the agent ends a call, it can deliver a closing message in the user’s language. Configure multilingual variants to ensure users receive a natural farewell in their preferred language.
Bolna Voice AI dashboard Call settings showing multilingual call hangup message configuration with English, Hindi, Bengali, and Tamil language options for delivering hangup messages when ending calls

Set up multilingual call hangup messages for Bolna Voice AI agents

{
  "call_hangup_message": {
    "en": "Thank you for calling. Goodbye!",
    "hi": "कॉल करने के लिए धन्यवाद। अलविदा!",
    "bn": "কলটি এখন কেটে যাবে। ধন্যবাদ এবং নমস্কার!",
    ...
  }
}

3. Function tool calls

When the agent executes a custom tool or API call, it typically plays a brief message to let the user know to wait. This message can also be configured in multiple languages.
Bolna Voice AI custom function configuration showing pre_call_message JSON setup with English and Hindi language variants for displaying wait messages while executing API calls and custom tools

Configure multilingual pre-call messages for custom function tools in Bolna Voice AI

{
  ...
  ...
  "pre_call_message": {
    "en": "Just give me a moment, I'll be back with you.",
    "hi": "कृपया थोड़ा समय दीजिए, मैं पता करके बताता हूँ।",
    ...
    ...
  }
  ...
  ...

}

Language fallback behavior

When selecting a message, Bolna follows this fallback logic: it first attempts to use the message in the detected language, then falls back to English (en) if the detected language is not available, and finally uses the first available language in the configuration if neither is found. This ensures your agent always has a message to deliver, even if you haven’t configured all possible language variants.

Supported languages

Language detection supports all Indian languages available in Bolna, identified by their ISO 639-1 codes. Common codes include en for English, hi for Hindi, bn for Bengali, ta for Tamil, te for Telugu, mr for Marathi, gu for Gujarati, kn for Kannada, ml for Malayalam, pa for Punjabi, and many more. For a complete list of supported languages, see the multilingual language support documentation.

Best practices

When implementing multilingual messages, ensure all your configured languages have consistent message variants to provide a uniform experience. Keep messages concise and culturally appropriate for each language rather than using direct translations. Test your agent with native speakers of each language to verify the messages sound natural.