# How to build multilingual AI agents for customer support

DevFeed: [How to build multilingual AI agents for customer support](<https://devfeed.tech/articles/how-to-build-multilingual-ai-agents-for-customer-support-109682.md>)

Original publisher: [Read original article](<https://www.twilio.com/en-us/blog/insights/multilingual-ai-agents>)

Author: Jesse Sumrak

Published: 2026-10-29T00:00:00Z

Content type: tutorial

Language: en

Sources: [Twilio](<https://devfeed.tech/sources/twilio-blog.md>), [Twilio Blog](<https://devfeed.tech/sources/twilio-blog-2.md>)

Topics: [AI for customer service automation](<https://devfeed.tech/topics/ai-for-customer-service-automation.md>), [twilio api](<https://devfeed.tech/topics/twilio-api.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-voice-agent](<https://devfeed.tech/tags/ai-voice-agent.md>), [ai-voice-agents](<https://devfeed.tech/tags/ai-voice-agents.md>), [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [audio](<https://devfeed.tech/tags/audio.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [build](<https://devfeed.tech/tags/build.md>), [build-ai-agents](<https://devfeed.tech/tags/build-ai-agents.md>), [customer-support](<https://devfeed.tech/tags/customer-support.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [industry-insights](<https://devfeed.tech/tags/industry-insights.md>), [language](<https://devfeed.tech/tags/language.md>), [messaging](<https://devfeed.tech/tags/messaging.md>), [multilingual-ai](<https://devfeed.tech/tags/multilingual-ai.md>), [switch](<https://devfeed.tech/tags/switch.md>), [twilio](<https://devfeed.tech/tags/twilio.md>), [voice](<https://devfeed.tech/tags/voice.md>)

## AI overview

Twilio ConversationRelay can detect language per utterance and switch a voice agent mid-call without restarting: configure a <Language> element for each supported language, use Deepgram with speech-to-text language set to multi, then read each transcript's lang tag and send a language message to update recognition and text-to-speech. Detected tags use primary codes such as es, without regional suffixes. Language and voice coverage and quality depend on the selected providers; ElevenLabs text-to-speech can also detect language when set to multi, and Deepgram Flux can use configured languages as recognition hints. Pass the current language into the LLM context and define how it handles mixed-language input; keep factual values sourced from tools or a knowledge base. The excerpt also describes storing language preference in Twilio Conversation Memory for future calls and using Agent Connect across voice and messaging channels. For human escalation, pass the detected language as a routing attribute to Flex so it can route to a matching representative with conversation history.

## Source excerpt

Learn how to build AI agents that detect a caller's language and switch mid-conversation (across voice and messaging) with Twilio ConversationRelay.