Skip to content

An API to connect OpenAI to your Wordpress site. Example API

Notifications You must be signed in to change notification settings

donaldafeith/OpenAIAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

OpenAI Integration for WordPress

This WordPress plugin enables integration with OpenAI's powerful AI models, allowing you to leverage the capabilities of models like gpt-3.5-turbo-instruct directly within your WordPress site.

Installation

To install the OpenAI Integration plugin, follow these steps:

  1. Download the Plugin: Download the ZIP file of this plugin from the GitHub repository.

  2. Upload to WordPress:

    • Navigate to your WordPress admin panel.
    • Go to Plugins > Add New.
    • Click Upload Plugin and choose the downloaded ZIP file.
    • Click Install Now.
  3. Activate the Plugin:

    • Once the installation is complete, click on Activate Plugin.

Configuration

  1. Acquire an OpenAI API Key: To use this plugin, you'll need an API key from OpenAI. You can obtain this from the OpenAI website.

  2. Set up the API Key in WordPress:

    • In your WordPress admin panel, navigate to the OpenAI Integration settings page.
    • Enter your OpenAI API Key in the provided field.

Usage

To use the plugin, insert the shortcode [openai prompt="Your Question"] into any post or page. Replace "Your Question" with the query you want to send to the OpenAI API.

Example

[openai prompt="What is the capital of France?"]

This shortcode will display the AI-generated answer within your content.

Use Cases

  • Content Creation: Generate creative writing, blog ideas, or complete sentences based on partial inputs.
  • Data Analysis: Summarize complex data or generate reports.
  • Language Translation: Translate sentences or paragraphs into different languages.
  • Educational Purposes: Answer questions for educational content or quizzes.

License

This plugin is provided under the MIT License and is available "as-is" without any warranty.


Note: The use of the OpenAI API is governed by OpenAI's policies and usage limits. Ensure your usage complies with their terms and conditions.

About

An API to connect OpenAI to your Wordpress site. Example API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages