AI-powered USSD application using Africa's Talking and Google Gemini.
- Health Assistant: AI-powered symptom checker.
- Translator: English to Swahili translator.
- Health Assistant: AI-powered symptom checker.
- Translator: Multilingual voice and text translator.
- Voice AI: Interactive phone menu with spoken AI guidance.
- Guidance Service: Encouraging step-by-step practical tips.
- Node.js (v18+)
- Africa's Talking Account (Live or Sandbox)
- Google Gemini API Key
- Clone the repository.
- Install dependencies:
npm install - Create a
.envfile (see.env.examplefor required variables). - Expose your local server:
ngrok http 3000
Inside the Africa's Talking Dashboard, set the following Callback URLs:
- USSD Callback:
https://ducal-isaiah-sappiest.ngrok-free.dev/ussdRoutes - Voice Callback:
https://ducal-isaiah-sappiest.ngrok-free.dev/voice
- Dial:
*347*157#(or your code). - Test: Select "Health", describe a symptom like "headache".
- Result: Sessions ends with a "Thinking" message; advice arrives via SMS.
- Action: Trigger an outbound call via API:
POST /api/call { "phoneNumber": "+234..." } - Test: Answer the call, press '1' for Health. Describe a symptom after the beep.
- Result: Gemini listens to your audio and speaks back natural, calm advice.
- Action: Call and press '2' (Voice) or select Menu 2 (USSD).
- Test: Speak/Type "Hello, how are you?".
- Result: Instant Swahili translation ("Jambo, habari yako?").
DialAI is built for inclusivity. By combining USSD, Voice, and Gemini AI, we bridge the digital divide—providing life-saving information to anyone with a basic phone and no internet.