0.0.8 • Published 1 month ago

medusa-product-ai-widget-ghilas v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

https://github.com/VariableVic/medusa-product-ai-widget/assets/42065266/1ba79467-d178-418a-963d-da17b9ee3506

Prerequisites

  1. This plugin requires an OpenAI API key and platform account. Go to https://platform.openai.com/account/api-keys to set this up.
  2. You need a Medusa server with the Admin installed. The fastest way to set this up is by using create-medusa-app.

Getting Started

  1. Install the package with yarn add medusa-product-ai-widget or npm i medusa-product-ai-widget.
  2. In medusa-config.js, add the plugin to the plugins array with the following options:
const plugins = [
  // ... other plugins
  {
    resolve: `medusa-product-ai-widget`,
    options: {
      api_key: process.env.OPENAI_API_KEY,
      enableUI: true
    }
  }
]
  1. In your .env file, add an OPENAI_API_KEY environment variable containing your API key:
OPENAI_API_KEY=<YOUR OPENAI API KEY>
  1. 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!
0.0.8

1 month ago

0.0.7

1 month ago

0.0.3

2 months ago

0.0.2

2 months ago

0.0.5

2 months ago

0.0.4

2 months ago

0.0.6

2 months ago

0.0.1

2 months ago