# Conditional Actions

In the following example, we want to create course certificates based on the course type. Each course type has a different template.

<figure><img src="/files/hFxBPrGtgGppQcawaPU3" alt=""><figcaption></figcaption></figure>

### **Setting up the recipes**

1. Generate an [Item-level](/getting-started/create-templates/item-level-template.md) document and go to 'Actions/Automations' to define an action.
2. When defining the actions for your automation, click on 'Advanced settings' and select the status column for the condition.\
   In our example, the status column is called 'Course', and the label is 'Course A'\
   Note: Currently, only the 'Status' column is supported.
3. We only want to execute the automations/integrations for this action when this condition is met
4. Repeat the steps for the other conditions (e.g. Course B, Course C,...) as well

<figure><img src="/files/dRB2CsgnUzQ4aB381VZJ" alt=""><figcaption></figcaption></figure>

### **One action per condition**

The end result is one template and one action/automation per condition.

**List of templates:**

<figure><img src="/files/jrOgercMZYnxqBJtFcuN" alt=""><figcaption></figcaption></figure>

### **Set up the automations/integrations**

The last step is to set up the [automations](https://help.docexport.com/features/automations) to trigger the actions.

In our example, we want to trigger the automation as soon as the status changes to 'Done'.

We need one automation per recipe:

<figure><img src="/files/HcrmslPxoMGCyRGEWdLi" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.docexport.com/features/conditional-actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
