medusa-product-ai-widget
v0.0.4
Published
A widget to improve product descriptions with AI
Maintainers
Readme
https://github.com/VariableVic/medusa-product-ai-widget/assets/42065266/bc5c51ef-83bc-42e3-a698-7bd71988e0ed
Prerequisites
- This plugin requires an OpenAI API key and platform account. Go to https://platform.openai.com/account/api-keys to set this up.
- You need a Medusa server with the Admin installed. The fastest way to set this up is by using create-medusa-app.
Getting Started
- Install the package with
yarn add medusa-product-ai-widgetornpm i medusa-product-ai-widget. - In
medusa-config.js, add the plugin to thepluginsarray with the following options:
const plugins = [
// ... other plugins
{
resolve: `medusa-product-ai-widget`,
options: {
api_key: process.env.OPENAI_API_KEY,
enableUI: true
}
}
]- In your
.envfile, add anOPENAI_API_KEYenvironment variable containing your API key:
OPENAI_API_KEY=<YOUR OPENAI API KEY>- Start your dev server and log into the admin. Open any product that has a product description and the widget will appear on the bottom of the page!
