Mirasvit AI Assistant
v1.4.9

Automation rules

Automation rules functionality allows to run the selected prompts by Cron.

Navigate to System > AI Assistant > Automation rules and add a new rule.

Automation rule configurations are split in 2 stages.

On the first stage you'll need to set the following information for the rule (General Information section):

  • Title - The name of the rule that is visible in the grid of automation rules.
  • Entity Type - type of an entity to configure the rule for. Currently the extension allows to create rules for Products and Categories.
  • Active - set to Yes if the rule should be executed.
  • Apply Only Once - set to Yes if the rule should be executed only one time.
  • Overwrite Not Empty Field - set to Yes if the rule should overwrite any existing text in the selected text field.
  • Store Views - select the applicable scope of the rule.

image

After specifying all data press the Save and Continue button to proceed to the second stage.

Note

You won't be able to change the entity type after you saved the rule.

On the second stage you'll need to set additional information:

  • Prompt - select the existing prompt that should be used with this automation rule. For example, a prompt for generating meta title.
  • Field - select one field that will be used for inserting the prompt output. For example, a Product Meta Title field.
  • Conditions - select conditions to adjust entities for which the rule should be applied. Leave blank if the rule should be applied for all entities of the type selected at the stage 1.

image

After specifying all data save the rule.

Write down its ID as it will be used for configuring Cron job. You will need to specify the rule ID in Cron command bin/magento mirasvit:assistant:apply-rule --id XXX, where XXX is the rule ID number.
For more details regarding this command check the Command Line Interface section of this manual.

Note

The GPT/ChatGPT will generate answers on the language depending on the selected Store View.