Servo is a robot butler that can respond to text prompts. A user can enter a prompt into the text field and hit submit to send a request to Servo. The user's prompts and Servo's responses are displayed list-style underneath.
Servo utilizes the public API for OpenAI's powerful AI model, GPT-3. The client sends a POST request to the API, and the API return's Servo's response. The application was built using the React frontend library. The App component contains a form with a controlled text input, which updates certain stateful variables on change. When the form is submitted, a fetch request with a method of "POST" is sent to the external API, and the response gets recorded and displayed below the form.
In the future, it would be neat to create a backend for the application with a database and user authentication. That way, people could sign up for an account and log in whenever they want to view their exchanges with Servo.