Learn and Improve Spanish with an SMS Chatbot
Practice Spanish by messaging a chatbot designed to help me sharpen grammar and expand vocabulary. This bot draws from a curated repository of vocabulary words and grammar concepts I’m actively studying, generating messages and conversations that challenge me to apply these topics.
The ultimate goal is for the chatbot to dynamically grow this repository, adding new words and grammar concepts based on our interactions. Powered by ChatGPT, the bot integrates seamlessly with my notes database for easy access and organization.
Creating Custom Chat Assistants for Personalized Learning
I started by building an interface that allows me to create and modify OpenAI-powered chat assistants. To achieve this, I developed a Python app that leverages the OpenAI API to manage and customize these assistants. Using this platform, I created an assistant specifically designed to act as my Spanish tutor, with tailored instructions to guide it in helping me improve my grammar and vocabulary.
The Gmail API module performs three key functions:
Monitors notifications from my email account.
Retrieves messages when they arrive.
Sends messages to my phone.
OpenAI API
The OpenAI API module handles three core tasks:
1. Manages assistants.
2. Passes prompts and responses between the user and the assistants.
3. Manages the files that the assistants can access.
This project was a valuable exercise in learning how to build an app that is easy to grow and modify. I employed an Object-Oriented Programming (OOP) approach, which made it more efficient to expand and adapt the program over time.