This repository contains a simple C# chatbot powered by OpenAI's ChatGPT. The chatbot utilizes the RestSharp and Newtonsoft.Json libraries to interact with the ChatGPT API and process user input.
- Clone this repository or copy the provided code.
- Ensure you have the required NuGet packages installed:
- RestSharp
- Newtonsoft.Json
- Replace the placeholder API key in the
Main
method with your ChatGPT API key. - Run the application to start interacting with the ChatGPT chatbot.
For a detailed step-by-step guide on how this code works and how to create a ChatGPT chatbot in C#, please refer to the following article: Creating a Chatbot with ChatGPT and C#
- User-friendly console interface with colored prompts.
- Easy-to-understand code structure for quick customization.
- Simple API interaction with the ChatGPT API using RestSharp.