The Spree Open AI Extension is designed to enhance your Spree store with AI-powered features for generating product descriptions and translating content into multiple languages.
Automatically generate product descriptions based on specified parameters.
- Navigate to the product's edit page.
- Click on the "Generate with AI" link.
- A dropdown menu will appear with the following options:
- Features and Keywords - Generate product descriptions based on predefined features and keywords.
- Tone of Voice - Select the desired tone (formal, casual, etc.) for the generated content.
- Custom Tone of Voice - Define a custom tone of voice for the generated content to match specific language preferences or branding guidelines.
- Special Instructions - Provide additional guidelines or requirements for generating the product description.
- Choose the desired option and fill in any required information.
- Click on the "Generate" button.
- The description will be automatically generated and filled in the product's description field.
Seamlessly translate content from English to other languages using AI.
- Go to the translations page.
- Find the field you want to translate.
- Fill in the content in English.
- Click on the "Translate with AI" link next to the field.
- The content will be translated from English to all other supported languages.
-
Add this extension to your Gemfile with this line:
gem 'spree_openai'
-
Install the gem using Bundler
bundle install
-
Copy & run migrations
bundle exec rails g spree_openai:install
-
Restart your server
If your server was running, restart it so that it can find the assets properly.
To enable this integration:
- Go to the integrations page in your store's settings.
- Configure the API key for the Spree Open AI Extension.
- Once configured, the integration will be enabled and ready to use.
First bundle your dependencies, then run rake
. rake
will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app
.
bundle update
bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_openai/factories'
bundle exec gem bump -p -t
bundle exec gem release
For more options please see gem-release README
If you'd like to contribute, please take a look at the instructions for installing dependencies and crafting a good pull request.
Copyright (c) 2024 [name of extension creator], released under the New BSD License