tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Generative AI > Google Gemini API > Multilingual Agent - Hindi and English

Multilingual Agent - Hindi and English

Author: Venkata Sudhakar

India is a multilingual market. ShopMax India serves customers across Hindi-speaking states like UP, Bihar, MP, and Rajasthan where many prefer communicating in Hindi, as well as metro customers who prefer English. A Multilingual Agent detects the language of each message and responds accordingly - no manual routing needed. Gemini natively understands Hindi written in Devanagari script as well as Hinglish (Hindi written in Roman script), making it ideal for Indian language support.

This tutorial builds a Multilingual Customer Service Agent using Google ADK and Gemini 2.0 Flash. The agent detects the input language, fetches the appropriate response in that language, and maintains language consistency throughout the conversation.

The below example shows the Multilingual Agent handling a product enquiry first in Hindi then switching to English.


It gives the following output,

Customer: Laptop ka price kitna hai aur warranty kya milegi?
Agent: Namaste! Dell Latitude 15 Laptop ki jaankari:
  Daam    : Rs 68,000
  Warranty: 3 saal ki on-site warranty
  Stock   : Uplabdh hai
  Kya aap order karna chahte hain ya koi aur sawaal hai?

Customer: What is the price of the HP printer?
Agent: Thank you for your enquiry!
  HP LaserJet Pro Printer details:
  Price       : Rs 22,000
  Warranty    : 1 year carry-in warranty
  Availability: In stock
  Would you like to place an order or need more information?

The Multilingual Agent can be extended to support Tamil, Telugu, Kannada, Bengali, and Marathi - Gemini understands all major Indian languages. Deploy it as a WhatsApp Business bot to reach customers in their native language at scale. For voice interactions, combine it with the Gemini Live API to handle Hindi and regional language calls without human agents.


 
  


  
bl  br