Socializing during quarantine is hard, and trapped at home there is only so much that we can do by ourselves, after reading every book in my library and binged every show on Netflix I was out of stories, so what do I do now?
So I built a AI-powered conversational bot to fulfill my lack of stories, not only that but take part on them too. Hey, we all enjoy a good story (or a good laugh)
This project shows how to integrate a custom machine learning model with an API to build an AI-powered conversational bot that builds a story based on your input.
- Python 3.4 or newer
- A Twilio account — sign up
- A Twilio phone number with Voice capabilities
- A AIDungeon account — sign up
After the above requirements have been met:
- Clone this repository and
git clone email@example.com:KNawm/aidungeon-twilio.git cd aidungeon-twilio
- Create a new virtual environment
python3 -m venv venv venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Set your environment variables
cp .env.example .env
.env in your favorite text editor and configure the following values.
I used Python with Flask for the backend. It's built on top of the AIDungeon API, you just call and the bot will put together a story protagonized by you, fantasy, zombies, apocalypse, you name it, possibilities are endless.
I wanted to work with the model directly but for a lack of time I couldn't (maybe next time?). I enjoyed doing it, and I'll definitely continue working on it improving it and adding features!