MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/ai_allyindian_com/README.md
# cmfai

AI Voice Agent for Mutual Fund Appointments (Multilingual)

## Features
- POST /call_create: Initiate a call and log to MongoDB
- POST /call_response: Handle customer response, detect language, use Sarvam.ai API, log interaction
- Multilingual: Tamil, Hindi, Kannada, English
- Uses MongoDB and Sarvam.ai API

## Setup
1. Create a `.env` file with:
   - `MONGODB_URI=your_mongodb_uri`
   - `SARVAM_API_KEY=your_sarvam_api_key`
2. Install dependencies: `npm install`
3. Start server: `npm start`

## Project Structure
- `models/` - Mongoose models
- `routes/` - Express route handlers
- `config/` - Configuration files

## Language Prompts
- ta: "நீங்கள் ஒரு மென்மையான மெச்சான நிதி ஆலோசகர், சந்தா திட்ட நேரத்தை உறுதிசெய்கின்றீர்கள்."
- hi: "आप एक विनम्र म्यूचुअल फंड एजेंट हैं जो ग्राहक की अपॉइंटमेंट तय करने में मदद करता है।"
- kn: "ನೀವು ವಿನಮ್ರ ಮ್ಯೂಚುಯಲ್ ಫಂಡ್ ಏಜೆಂಟ್ ಆಗಿದ್ದೀರಿ, ಗ್ರಾಹಕರ ಸಭೆ ನಿಗದಿ ಮಾಡಲು ಸಹಾಯ ಮಾಡುತ್ತೀರಿ."
- en: "You are a polite mutual fund agent helping customers schedule an appointment."