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
Mainmethod with your ChatGPT API key. - Run the application to start interacting with the ChatGPT chatbot.
- Log in to your OpenAI account.
- Go to the “View API Keys” section
- Click on “Create API Key” and give it an appropriate name.
- Copy the API key, as you’ll need it later.
- Keep your API key secure, as it grants access to your ChatGPT API usage.