How to Develop a Chatbot with React and OpenAI
Too Long; Didn't Read
In the [last article] we built a Node.js/Express server that exposes an `/ask` endpoint. When this endpoint is triggered and we include a text `prompt', the endpoint interacts with OpenAI's `/completions` API to generate and return a continuation of that text. We'll be building the UI of our app with the React JavaScript library. To get started, we'll first want to scaffold a React development environment quickly.