Skip to main content
An identity-aware agent that detects user language and responds in the same language with persistent memory.

Code

Create multilingual_collab_agent_v2.py with the code below, or save it directly from your editor.

Configuration File

Create agent_config.json in the same directory:

Skill Configuration

Create skills/multilingual-collaboration/skill.yaml:

How It Works

Language Detection
  • Analyzes message content for language indicators
  • Supports English, Hindi (हिन्दी), and Bengali (বাংলা)
  • Responds entirely in detected language
  • Uses proper scripts for each language
Memory Integration
  • Mem0 persistent memory for context retention
  • Remembers user preferences and past interactions
  • References relevant information from previous conversations
  • Builds knowledge base over time
Identity Features
  • Bindu DID (Decentralized Identifier) support
  • Agent discovery in Internet of Agents ecosystem
  • Interoperability with other Bindu agents
  • A2A protocol compliance
Collaboration Capabilities
  • Cross-language communication assistance
  • Document drafting in multiple languages
  • Cultural context awareness
  • Translation with meaning preservation

Dependencies

Environment Setup

Create .env file:
Get your Mem0 API key at https://app.mem0.ai/dashboard/api-keys

Run

Examples:
  • “What is the Bindu framework?” (English)
  • “बिंदू फ्रेमवर्क क्या है?” (Hindi)
  • “বিন্দু ফ্রেমওয়ার্ক কী?” (Bengali)
  • “Translate this document from English to Hindi”
  • “Help me write an email in Bengali”

Example API Calls

Frontend Setup

Open http://localhost:5173 and try to chat with the multilingual collaborative agent