learnfullabs / gutenberg-ai-tools

GNU General Public License v2.0
0 stars 0 forks source link

CONTENTS OF THIS FILE

This module provides an AI Block to your Gutenberg Editor, with this tool, you can use generative AI to add content to your nodes.

REQUIREMENTS

This module requires the Gutenberg and OpenAI modules to be installed first, and you will need to open an account at OpenAI and create an API Key and Organization ID.

INSTALLATION

  1. Install normally as other modules are installed. For Support: https://www.drupal.org/docs/8/extending-drupal/installing-contributed-modules

  2. Enable the OpenAI modules, then go to /admin/config/openai/settings and add the API Key and Organization ID, you will need to open an account at OpenAI first

  3. This module enables a REST Endpoint for interacting with the OpenAI engine from the Gutenberg Editor, make sure it is enabled by going to /admin/config/services/rest and verify the resource "Gutenberg AI Tools OpenAI REST" is enabled.

  4. Make sure to enable the Gutenberg Editor for your content type of choice, you can do this by going to Structure > Content types > Content Type (Page, Article, etc), in the left sidebar menu, click on "Gutenberg Experience", then click on "Enable Gutenberg experience", scroll down to the "Allowed Custom Gutenberg blocks", then check on "AI Block" and save.

  5. Open the Gutenberg Editor in your Drupal site, click on the "+" (Add Block) icon, type "AI Block", select it, and on the "Block title" field, type the question you want to feed to OpenAI, and then click on the Ask ChatGPT the answer provided by OpenAI will appear after a bit in the block below.

TODO/BUGS