Inspiration

We were interested in the theme of travelling through time and using AI Agents, and decided on a web app experience where a user can talk to people from different historical periods and backrounds.

What it does

Loads three randomly generated people from different historical periods (Roman Empire, Ancient Egypt, World War 2, The Aztec Empire, etc.), along with an image of what the person looks like from that time period and their background description. You then have the option to have a conversation with your selected person in the webapp, or return to any previous conversations you have had. When you load the main page, you are able to create a new account, or if you already have an account you can sign into your account, which loads any of your previous conversation history.

How we built it

We first coded the AI Chatbot agent with an OpenAI API Key. We then created a file with AI generated images. Then, created a main html page, and then a chatbot html page where the three different people are generated with their AI images and description. Next, we created a SQLite database to store chat history between the AI Agent and the User.

Challenges we ran into

None of us have used Flask or OpenAI's API key before, so we learned how to do this today.

Accomplishments that we're proud of

We have a working chatbot with AI images, AI descriptions, a fully functioning front-end that also has a sign up and login page, and a database in SQL to save chat history and account information.

What we learned

How to use Flask to host a web app, use OpenAI's API key to build an AI Agent to meet our requirements, provide version control and train the AI model with training data. Have a front end with a main page for creating a new account or logging into an existing account, with chat history connected to the username and the SQLite database.

What's next for Talking Through Time

Music playing in the backround when the chatbot.html page is loaded that matches the specific historical period of the person the user is speaking to and hosting our Flask app on our Go Daddy domain.

Share this project:

Updates