Skip to content

Generative AI (Magic AI) ​

Generative AI helps you write content and create images in the admin panel, and helps shoppers search with a photo, read reviews in their own language and get a thank-you message after an order. In the admin panel these features are called Magic AI, and they are all set up in one place: Configure >> Magic AI. The group has four screens: General, Providers, Admin Features and Storefront Features.

This page covers the setup only. What each feature does, and how to use it, is described in the Generative AI section.

The Magic AI group on the Configure page with its four screens

Turn on Generative AI (Magic AI) ​

Enabled is the master switch for Magic AI. Switch it on before you turn on any feature.

  1. Go to Configure >> Magic AI >> General.
  2. In Settings, switch Enabled on.
  3. Click Save Configuration.
Settings section of the Magic AI General screen with Enabled switched on

The switch applies to the whole store, not to one channel.

Connect a provider ​

Magic AI sends each request to the provider of the model it uses. Bagisto supports eight providers, and you only need to connect the ones whose models you plan to use.

ProviderWhat to enter
Anthropic, DeepSeek, Gemini, Groq, Mistral, OpenAI and xAIThe API Key you create in your account on the provider's website.
OllamaThe Base URL of the server that runs your Ollama models, http://localhost:11434 by default. Enter an API Key only if that server asks for one.

Before you start, create an API key in your account on the provider's website.

  1. Go to Configure >> Magic AI >> Providers.
  2. In the provider's section, enter the API Key.
  3. For Ollama, enter the Base URL of your Ollama server.
  4. Click Save Configuration.
Providers screen with a section for each of the eight providers

Keys are masked on the screen. Provider settings apply to the whole store.

Enable the admin features ​

The admin features help you write and illustrate content while you work in the admin panel. Nothing they produce is added until you click Apply.

SectionWhat it does
Text GenerationMakes the Magic AI button in the toolbar of the rich-text editors clickable, in editors such as product and category descriptions and CMS pages. While the feature is off, the button is greyed out. You describe what you need, choose a model and generate the text. See Generate text content.
Image GenerationAdds a Magic AI tile beside Add Image in the image fields of the admin panel, such as product and category images. You describe the image, choose a model and generate it. See Generate product images.
  1. Go to Configure >> Magic AI >> Admin Features.
  2. In Text Generation, switch Enabled on.
  3. In Providers, choose the providers whose text models admins can pick from.
  4. In Image Generation, switch Enabled on.
  5. In Providers, choose the providers whose image models admins can pick from: Gemini, OpenAI or xAI.
  6. Click Save Configuration.
Admin Features screen with Text Generation and Image Generation switched on and providers chosen

The model list in each dialog shows only the models of the providers you choose here, so choose at least one provider whose key you have saved. The admin features apply to the whole store.

Roles don't limit these features. While they're on, every admin user who can open a rich-text editor or an image field can use the Magic AI button and tile, and each request is charged to your provider account.

Enable the storefront features ​

The storefront features respond to what a shopper does: searching with a photo, reading a review or placing an order. Each is set per channel.

SectionWhat it does
AI Image SearchWhen a shopper searches with a photo, a model identifies the product in it, and the store searches the catalog for the first keyword the model suggests. The camera icon in the search bar comes from Image Search Option under Product Settings, which must also be on. Without AI image search, photo search still works, using basic image recognition in the shopper's browser. See AI image search.
Review TranslationAdds a Translate button to each review on the product page. It translates the review into the language the shopper is browsing in. See Review translation.
Personalized Checkout MessageShows a thank-you message written for each order on the order confirmation page, based on the products ordered, the customer's name and the store's name. If the model can't be reached, the page shows its standard thank-you text instead. See Personalized checkout message.
  1. Go to Configure >> Magic AI >> Storefront Features.
  2. If your store has more than one channel, choose the channel at the top of the screen.
  3. In the section of each feature you want, switch Enabled on.
  4. Choose the Model the feature uses.
  5. Click Save Configuration.
Storefront Features screen with AI Image Search, Review Translation and Personalized Checkout Message switched on and a model chosen

Choose a model from a provider whose key you have saved. Until a Model is saved, the feature uses a default OpenAI model, which needs an OpenAI key.

AI Image Search and Personalized Checkout Message work only while Enabled is also on under General. To stop review translation, switch Review Translation off: switching off Enabled under General doesn't hide the Translate button.

Released under the MIT License.