This project is not covered by Drupal’s security advisory policy.

A CKEditor plugin to use ChatGPT API to assist content creation.

## Installation
1. Download the module and extract it to your Drupal installation's /modules directory.
2. Enable the module by navigating to Extend in your Drupal admin menu, find CKGPT in the list, and click the Enable button.
3. Configure the module by navigating to Configuration > Content authoring > CKGPT settings in your Drupal admin menu. Here you can enter your OpenAI API key and other settings related to the module's behavior.

## Adding CKGPT plugin to your editor
1. Navigate to Configuration > Content authoring > Text formats and editors in your Drupal admin menu.
2. Click the Configure link for the Text format you want to add the button to.
3. Scroll down to the Buttons and plugins section and drag the CKGPT button into Active toolbar.
4. Click the Save configuration button.

## Usage
1. Navigate to any content creation page within Drupal that uses CkEditor as its editor.
2. Highlight the text you wish to send as a prompt to the OpenAI API.
3. Click the CKGPT button in the CkEditor toolbar.
4. The module will send the selected text as a prompt to the OpenAI API, and the selected text will be replaced by the response from the API.

Project information

Releases