> For the complete documentation index, see [llms.txt](https://usermanual.ergonode.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://usermanual.ergonode.com/automations/about-automations/setting-up-automations.md). Agents can also search and read this documentation through its [MCP server](https://usermanual.ergonode.com/~gitbook/mcp).

# Setting Up Automations

Create an automation step by step: name it, define conditions and actions, then save and enable it.

{% hint style="warning" %}
The system does not trigger further automations from within an automation, so infinite technical loops are prevented. However, when using AI actions (such as content generation), the generated output may differ each time, potentially causing repeated overwrites if not properly conditioned. To avoid overwriting existing content repeatedly, add a condition to prevent continuous loops. Ex. runs when the description attribute "is empty".
{% endhint %}

{% hint style="info" %}
The execution order of automation follows the sequence in which the automation tasks are created within the system. However, users can modify this order by adjusting the "Order" field for each task.
{% endhint %}

{% hint style="info" %}
For using attribute values, variables must be used. Example prompt: “Use the values of the attribute #color and #size to create a description.”
{% endhint %}

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FgOIMk0BvGxajrcoGb1us%2F98b47179c10c.png?alt=media&#x26;token=fcfe54c6-7607-44d9-9c20-1f63b9e357e7" alt=""><figcaption></figcaption></figure>

* Any automation errors can be viewed via the *"Error log"* button located at the top-right corner of the screen.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FVLaGZwRbJucXRrrnJd7Z%2F479d58f4f624.png?alt=media&#x26;token=d3457108-ed71-4e9d-bc87-89ae826763c7" alt=""><figcaption></figcaption></figure>

* To enable or disable automation, use the slider next to the *"Order"* field. The default state for automation created with ***Create*** is *"Disabled"*.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FQ1kk6QeVWX81LbKvS5ec%2Faa1a75d02b94.png?alt=media&#x26;token=60763769-f93b-47ba-aa42-c411f10d86b5" alt=""><figcaption></figcaption></figure>

* To edit, run (*"Run now"*), duplicate, or delete automation, click on the ***three dots*** menu located next to the activity slider, and select the desired option.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FdDkd6YtLur7OZZf0fg2C%2F57d47f787b36.png?alt=media&#x26;token=4c14f477-81ee-4a11-b2e6-66435ba9d959" alt=""><figcaption></figcaption></figure>

* ***Run now*** runs the actions once, as a batch action, on all products that currently meet the conditions. A window shows how many products will be processed; confirm it to start the batch action. If no product meets the conditions, the window says ***No products to process***. Only an enabled automation can be run: for a disabled one, a message asks you to activate it first.
* A single automation can have a maximum of fifteen (15) Conditions and fifteen (15) Actions.

## **Key Components of Automations**

To set up an automation, you need the following elements:

1. **Trigger (When)**: The event that starts the automation.
2. **Conditions (And if)**: Criteria that define when the automation should run.
3. **Actions (Then)**: Tasks performed when conditions are met.

## **Step 1: Create a new automation**

Automations can be accessed from the left-hand side panel in the Ergonode interface:

1. Click on the "**Automations"**.
2. If it’s your first time, you’ll see a blank screen. Click on **New automation** to get started. The ***Create automation*** panel opens, where you set up the automation in the following steps.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2Feeydxfpgcu4hosOpm2n2%2Fe5e561f10f82.png?alt=media&#x26;token=2f2be408-e205-4019-894d-e5de0950c965" alt=""><figcaption></figcaption></figure>

## **Step 2: Set name**

Use the field labeled "Name" to specify a clear, concise title for your automation. This name will help you and your team easily identify its purpose or function in the list of automations. Consider choosing a descriptive name that reflects the automation’s triggers, conditions, and actions, making it straightforward to locate and manage later. For instance, names like “Assign to 'Creams' category when 'Product type' is 'Cream'” ensure clarity and ease of use. Take your time to make it as informative as possible!

Below the name, the ***Code*** field is required and comes prefilled.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FvQhdivncB4ilWUS3WnxO%2Fc5e8f56d3e37.png?alt=media&#x26;token=a8b7b123-7018-4551-8ed5-a9007f24fe92" alt=""><figcaption></figcaption></figure>

## **Step 3: Define Conditions**

Conditions specify when an automation should run. These can be based on:

* **Attribute Value**: Characteristics like the container type (e.g., "Tube") or skin type (e.g., "Dry Skin").
* **Category**: Product categories such as "Creams" or "Shampoos."
* **Template**: Specific templates for product pages (e.g., "Perfumes").
* **Status**: Workflow statuses, such as "Ready to sell."

To add a condition, click ***Add condition*** in the ***And if...*** section. A new condition card shows up: pick the condition in its ***Condition*** list, then fill in the fields it shows (for ***Attribute value***: ***Attribute*** first). Click ***Add condition*** again for each further condition.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2Fx3EnmefW4PZTHUXLcIOK%2Fd6314473fb20.png?alt=media&#x26;token=32154f01-8940-400c-8a56-4227f803c04b" alt=""><figcaption></figcaption></figure>

Use the icons on the right of a condition or an action to duplicate (***Duplicate***), clear (***Clear***) or remove (***Remove***) it.

## **Step 4: Choose Actions**

Actions define what happens when conditions are met. Examples include:

* **Edit attribute value**: Modify one or more product attributes. For image, gallery and file attributes, the value is a media file: click the add button under ***Attribute value*** (***Add image*** for an image attribute) and pick the file in the ***Add resources*** window.
* **Edit category**: Change a product’s category.
* **Edit template:** Change a product’s template.
* **Edit status:** Change a product’s status.
* **Generate description/name**: Use AI to create product descriptions or names based on a custom prompt.
* **Translate**: Automatically translate attribute values into another language.

To add an action, click ***Add action*** in the ***Then...*** section. A new action card shows up: pick the action in its ***Action*** list, then fill in the fields it shows (for ***Edit category***: ***Operator*** and ***Category***). Click ***Add action*** again for each further action.

The first line of an action card sums up the action as you fill it in. For ***Generate description*** it reads "Generate description from ..." until you choose the ***Attribute***, then names that attribute, the one the description is written to: for example, "Generate description from Description". For ***Generate name*** it reads "Generate name for ..." until you choose the ***Attribute***, then names the attribute the name is written to: for example, "Generate name for Product title".

Some actions have settings of their own, such as the ***Require values for attribute variables*** switch of ***Generate description*** and ***Generate name***, the ***Language of variables*** list, the ***Add custom prompt*** switch of ***Translate*** and the ***AI Model*** list; read more in [List of available Triggers, Conditions, and Actions](https://usermanual.ergonode.com/automations/about-automations/list-of-available-triggers-conditions-and-actions#automation-actions).

{% hint style="info" %}
AI-Powered Actions allow you to select a specific model. Keep in mind that different models consume credits at different rates.
{% endhint %}

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FBkKUoOu6gsTYqTfW9gWD%2F0f654b2ae23f.png?alt=media&#x26;token=1bb73e6f-0456-4314-9a8a-de0dc99d7875" alt=""><figcaption></figcaption></figure>

## **Step 5: Save the automation by clicking "Create"**

In the ***Run settings*** section, select ***Also apply to existing products*** to run the actions once as a batch action on all products that already meet the conditions.

Click ***Create*** to save the automation as disabled, or ***Create & Enable*** to save and enable it at once.

When you edit an existing automation in the ***Edit automation*** panel, the ***Run settings*** section shows ***Apply to existing products*** with a ***Run now*** button instead, which starts the same batch action as ***Run now*** in the ***three dots*** menu. If the form has unsaved changes, the hint ***Save changes to run*** reminds you to save them first.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FFnpeO0UW6uzPg3PDB9Fz%2Fea343b03ae1a.png?alt=media&#x26;token=ea7b2d48-d0ad-4cf2-849d-a09829674cc0" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://usermanual.ergonode.com/automations/about-automations/setting-up-automations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
