Giter Site home page Giter Site logo

chatgpt-block's Introduction

ChatGPT Block for WordPress

This custom Gutenberg block allows you to generate content using OpenAI's ChatGPT within the WordPress block editor. Enter a ChatGPT prompt, and the block will generate content based on the provided prompt.

Requirements

  • WordPress 5.0 or higher
  • PHP 7.0 or higher
  • Node.js and npm for building the block
  • An OpenAI API key

Installation

  1. Clone or download this repository to your local machine.
  2. Navigate to the chatgpt-block directory in your terminal and run npm install to install the required dependencies.
  3. Run npm run build to build the block.
  4. In your WordPress installation, go to Plugins > Add New > Upload Plugin, and upload the chatgpt-block folder as a .zip file.
  5. Activate the plugin.

Configuration

  1. Go to Settings > ChatGPT Settings in your WordPress admin dashboard.
  2. Enter your OpenAI API key in the API Key field and save the settings.

Usage

  1. Create a new post or page, or edit an existing one in your WordPress admin dashboard.
  2. Add a new block by clicking the + icon and search for "chatgpt" in the block search bar.
  3. Select the ChatGPT Block.
  4. Enter a ChatGPT prompt in the block and click Generate Content.
  5. The generated content will be displayed within the block. You can edit or format the content as needed.

License

This project is licensed under the GNU General Public License v2.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.