GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - abeerpathela/AiTextra: AI-powered SMS chatbot that lets any user interact with an LLM using simple text messages โ€” no internet or app required.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
backend
backend
 
 
README.md
README.md
 
 

Repository files navigation

๐Ÿค– AiTextra โ€” Turn Your Phone Number into an AI Chatbot

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.

image

๐ŸŒ What This Project Actually Does

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

โš ๏ธ IMPORTANT (READ BEFORE STARTING)

This is a self-hosted system.

๐Ÿ‘‰ You MUST:

  • Clone this repository
  • Run your own backend
  • Use your own API keys
  • Connect your own phone

๐Ÿง  System Overview

User sends SMS
   โ†“
Your Phone (SimAPI App)
   โ†“
Webhook โ†’ Your Backend
   โ†“
AI (Gemini)
   โ†“
SimAPI
   โ†“
Your Phone sends reply

๐Ÿ“ฆ Project Structure

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


๐Ÿš€ Step-by-Step Setup


๐Ÿ“ฅ STEP 1 โ€” Clone the Repository

git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git
cd YOUR_REPO/backend

๐Ÿ“ฆ STEP 2 โ€” Install Dependencies

npm install

๐Ÿ” STEP 3 โ€” Create Your .env File

Inside the backend/ folder, create a .env file:

GEMINI_API_KEY=your_gemini_api_key
SIMAPI_KEY=your_simapi_key
PORT=3000

๐Ÿ”‘ Where to get keys?

  • Gemini API โ†’ Google AI Studio
  • SimAPI Key โ†’ SimAPI Dashboard

โ–ถ๏ธ STEP 4 โ€” Run Backend

node index.js

Expected output:

Server running on http://localhost:3000

๐ŸŒ STEP 5 โ€” Expose Backend (for testing)

Use ngrok:

ngrok http 3000

Copy URL like:

https://xxxxx.ngrok-free.dev

๐Ÿ“ฑ STEP 6 โ€” Install SimAPI App

๐Ÿ‘‰ Download APK:

https://github.com/YOUR_USERNAME/YOUR_REPO/releases/download/v1.0/simapi.apk

๐Ÿ” STEP 7 โ€” Give Permissions

Allow:

  • Send SMS
  • Read Phone State
  • Internet
  • Background activity

๐Ÿ”‹ STEP 8 โ€” Disable Battery Optimization (VERY IMPORTANT)

Settings โ†’ Apps โ†’ SimAPI โ†’ Battery โ†’ Unrestricted

๐Ÿ”‘ STEP 9 โ€” Connect Your Phone

  1. Open SimAPI app
  2. Paste your API key
  3. Click Connect

โœ… Expected:

Device Status: Online

๐Ÿ“ก STEP 10 โ€” Setup SMS Forwarding

Configure your SMS forwarder:


Webhook URL:

https://xxxxx.ngrok-free.dev/webhook

JSON Payload:

{
  "sender": "%from%",
  "text": "%text%"
}

Headers:

{
  "Content-Type": "application/json"
}

๐Ÿงช STEP 11 โ€” Test

Send SMS to your phone:

Hello AI

๐ŸŽ‰ Expected Reply:

Hello! How can I assist you today?

๐Ÿš€ Deployment (Optional)

You can deploy backend on:

  • Render
  • Railway

After deployment:

https://your-app.onrender.com/webhook

Replace ngrok URL in SMS forwarder.


๐Ÿ” How API Key Works

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

โš ๏ธ Common Mistakes


โŒ Expecting it to work without cloning

This will NOT work.

๐Ÿ‘‰ You must run your own backend.


โŒ Wrong API key

Make sure:

Same API key in:
- .env
- SimAPI app

โŒ No SMS received

Check:

  • Device online
  • Permissions granted
  • Battery unrestricted

โŒ Slow response

Cause:

  • ngrok delay
  • free hosting cold start

๐ŸŽฏ Final Result

After setup:

Your phone number becomes an AI chatbot

Anyone can message your number โ†’ AI replies.


๐Ÿ’ก Use Cases

  • Personal AI assistant
  • Rural AI access
  • Offline chatbot
  • Emergency response systems

๐Ÿ‘จโ€๐Ÿ’ป Author

Abeer Pathela


โญ Support

If this project helped you, give it a โญ

About

AI-powered SMS chatbot that lets any user interact with an LLM using simple text messages โ€” no internet or app required.

Topics

accessibilityai-assistantai-chatbotai-over-smsbackendcommunicationexpressjsllm-integrationlow-connectivity-chatnodejsrural-techsms-aisms-bot

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.