# ChatGPT

{% hint style="warning" %}
**Note:** This module makes use of the data storage and will use data calls to run. Information about the data storage can be found [here](https://botghost.com/docs/~/changes/zT1fjHAwQ21lXOKdCcfT/data-storage/data-storage).
{% endhint %}

The ChatGPT module allows users to hold conversations with their bot by using the OpenAI GPT 3.5 Turbo - GPT 4 software. Get it to tell you stories or ask some advanced questions! You can configure the module on the dashboard by heading to the modules section and finding the '[ChatGPT](https://dashboard.botghost.com/dashboard/module/6e8c5384-e6f8-4282-8125-5ca9b53242c8/chatgpt)' module.

### API Key

Here you can configure all of the important parts of this module , from entering your API key to setting the version type.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FMQLP0m2jLW6RQMUaxBz4%2Fimage.png?alt=media&#x26;token=888c8e70-0afe-4209-91db-53064ea48c82" alt=""><figcaption></figcaption></figure>

**OpenAI API Key:** Here you will need to enter your OpenAI API key to be able to use the module, you can follow this guide [here](https://platform.openai.com/docs/api-reference/authentication). To generate your own API key.

**Model:** Here you can select the AIs model, you can select from:

* GPT 3.5 Turbo
* GPT 4 (this may not be available to you)

**Chatmode:** Here you can enable/disable the ability for your bot to automatically reply to its @mentions with a ChatGPT-generated reply.

**Chatmode Channel:** Here you can set the channel in which the bot will automatically reply to its @mentions with a ChatGPT-generated reply if the setting is enabled.

### Commands

Here you can configure the main and only commands for the ChatGPT module.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FIQqQbERV6TZxhDuhrTfr%2Fimage.png?alt=media&#x26;token=d6b96f1f-dfdc-4e75-8d16-dbfab439876e" alt=""><figcaption></figcaption></figure>

**/Respond:** Here you can edit the command which when triggered will send an AI-generated chat response to your prompt.

**/Edit-Text:** Here you can edit the command that when triggered will edit a given text with your instructions using AI.

### Events

Here you can edit the only event for the ChatGPT module, this will allow you to fine tune the event and even add additional functions to it.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F0JzS9NNdYYZ2ZrA7nZjy%2Fimage.png?alt=media&#x26;token=2e46a6b9-fe44-4f35-86fe-fd62f7890c89" alt=""><figcaption></figcaption></figure>

**ChatGPT:** This is the only event for the GPT module, here you ca nedit the event to add new additions, fine tune responses and much more.

{% hint style="danger" %}
**Warning:** it's advised that you do not edit the event & commands unless you have a good understanding of BotGhost and the Custom Event Builder/Command Builder. You can always reset the module to default if you should happen to make a mistake while editing the event or commands.

![](https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FwVeILIzUkDui6gT9nA4O%2Fimage.png?alt=media\&token=b4b2d48a-21a1-4b42-8376-6c4b06f5b4ce)
{% endhint %}
