Native Amharic-speaking AI call agent with Twilio and OpenAI integration
# Amharic AI Call Agent Demo ๐ช๐น
A native Amharic-speaking AI call agent that enables voice-based interactions in the Amharic language using Twilio, OpenAI GPT, and FastAPI.
## ๐ Features
- **๐ช๐น Native Amharic Processing**: Understands and responds in fluent Amharic
- **๐ Voice Call Integration**: Seamless Twilio phone call handling
- **๐ค AI-Powered Conversations**: OpenAI GPT-4o-mini for intelligent responses
- **๐๏ธ Speech Recognition**: Twilio Gather with Amharic language support
- **๐ฌ Cultural Awareness**: Understands Ethiopian context and customs
- **๐ฐ Cost-Effective**: Under $10/month operation
## ๐ Live Demo
Call the demo number: [Your Twilio Number Here]
Try speaking in Amharic:
- "แฅแแฐแแ แ แแ
?" (How are you?)
- "แตแ แขแตแฎแตแซ แแแญ แแแฃ?" (Can you tell me about Ethiopia?)
- "แจแแฌ แจแ แจแญ แแแณ แฅแแดแต แแ?" (How's the weather today?)
## ๐๏ธ Technology Stack
- **FastAPI**: Modern Python web framework
- **OpenAI GPT-4o-mini**: Conversational AI in Amharic
- **Twilio**: Voice call handling and speech processing
- **Railway.app**: Cloud deployment platform
- **Python 3.11**: Runtime environment
## ๐ฑ How It Works
1. **๐ Incoming Call**: Twilio receives voice call
2. **๐ค Speech Recognition**: Converts Amharic speech to text
3. **๐ง AI Processing**: OpenAI generates culturally-aware Amharic response
4. **๐ Text-to-Speech**: Twilio converts response back to speech
5. **๐ฌ Continuous Conversation**: Supports back-and-forth dialogue
## โก Quick Deploy to Railway
### Environment Variables Required:
- `OPENAI_API_KEY`: Your OpenAI API key
## ๐ ๏ธ Local Development
### Prerequisites
- Python 3.11+
- OpenAI API key
- Twilio account
- ngrok (for local development)
### Setup
1. **Clone repository**:
```bash
git clone
github.com
cd amharic-ai-call-demo
```
2. **Install dependencies**:
```bash
pip install -r requirements.txt
```
3. **Set environment variables**:
```bash
export OPENAI_API_KEY="your-openai-api-key"
```
4. **Run the ser โฆ