Text-A-Cat is a playful SMS bot that replies like a mischievous house cat! Built with Flask, OpenAI, and Twilio, this little feline lives to nap, sniff, and sass back in perfect paw-speak.
When someone texts your Twilio number, the bot responds with an AI-generated message in the voice of a goofy, curious, and somewhat judgmental house cat. It uses the OpenAI API (via gpt-4o-mini
) to create delightfully weird responses that match your custom cat-brain prompt.
Incoming SMS:
What are you thinking about right now?
Text-A-Cat Replies:
mmmm... tuna... nap... chasing fluff! meeow!
- 🧠 GPT-powered cat brain
- 📱 SMS support via Twilio
- 🐍 Built with Flask
- 🔐 Uses
.env
file to keep secrets safe
- Clone the repo
git clone https://github.com/yourusername/text-a-cat.git
cd text-a-cat
- Install dependencies
pip install -r requirements.txt
- Add your environment variables
Create a .env
file:
OPENAI_API_KEY=sk-your-api-key
TWILIO_ACCOUNT_SID=ACxxxxxxxx
TWILIO_AUTH_TOKEN=your_token
- Run it locally
python app.py
Or with Gunicorn:
gunicorn -b 127.0.0.1:5000 app:app
Want to teach the cat new tricks? Open a PR or meow at the issues tab.
MIT — do what you want, just don't blame the cat.