Convert your own mobile number into an AI assistant that replies via SMS.
AiTextra is a system that allows your phone number to behave like an AI chatbot. Anyone can send an SMS to your number, and your phone will automatically reply using AI.
This project does NOT give you a shared AI service.
👉 Instead, it helps you build:
YOUR PHONE NUMBER = YOUR PERSONAL AI BOT
- Your phone receives SMS
- Your backend processes it using AI
- Your phone sends back the reply
This is a self-hosted system.
👉 You MUST:
- Clone this repository
- Run your own backend
- Use your own API keys
- Connect your own phone
User sends SMS
↓
Your Phone (SimAPI App)
↓
Webhook → Your Backend
↓
AI (Gemini)
↓
SimAPI
↓
Your Phone sends reply
AiTextra/
│
├── backend/ ← 🔥 THIS IS THE MAIN PART
│ ├── index.js
│ ├── aiService.js
│ ├── smsService.js
│ ├── memoryService.js
│ └── package.json
│
└── mobile-app/ ← Android APK (SimAPI)
👉 Everything important is inside the backend/ folder
git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git
cd YOUR_REPO/backendnpm installInside the backend/ folder, create a .env file:
GEMINI_API_KEY=your_gemini_api_key
SIMAPI_KEY=your_simapi_key
PORT=3000- Gemini API → Google AI Studio
- SimAPI Key → SimAPI Dashboard
node index.jsServer running on http://localhost:3000
Use ngrok:
ngrok http 3000Copy URL like:
https://xxxxx.ngrok-free.dev
👉 Download APK:
https://github.com/YOUR_USERNAME/YOUR_REPO/releases/download/v1.0/simapi.apk
Allow:
- Send SMS
- Read Phone State
- Internet
- Background activity
Settings → Apps → SimAPI → Battery → Unrestricted
- Open SimAPI app
- Paste your API key
- Click Connect
Device Status: Online
Configure your SMS forwarder:
https://xxxxx.ngrok-free.dev/webhook
{
"sender": "%from%",
"text": "%text%"
}{
"Content-Type": "application/json"
}Send SMS to your phone:
Hello AI
Hello! How can I assist you today?
You can deploy backend on:
- Render
- Railway
After deployment:
https://your-app.onrender.com/webhook
Replace ngrok URL in SMS forwarder.
The API key connects:
Your Phone ↔ Your SimAPI Backend
👉 Important:
- The backend uses YOUR API key
- Only YOUR phone will send SMS
- This is a single-device AI bot
This will NOT work.
👉 You must run your own backend.
Make sure:
Same API key in:
- .env
- SimAPI app
Check:
- Device online
- Permissions granted
- Battery unrestricted
Cause:
- ngrok delay
- free hosting cold start
After setup:
Your phone number becomes an AI chatbot
Anyone can message your number → AI replies.
- Personal AI assistant
- Rural AI access
- Offline chatbot
- Emergency response systems
Abeer Pathela
If this project helped you, give it a ⭐