# Automations Function

This functions allows creating a workflow for **Email notification, Order notes update, Order tags update.**

**📧 1. Email Notification**

When a customer places an order that includes **Globo options**, the system automatically sends a notification email.

* 🖼️ **Preview Template** – See a preview of the email content.
* ✏️ **Edit Template** – Customize the email from the **Edit Code** tab.
* 🌐 **Send From Your Domain** – Set up **Mail SMTP & API** to send from your own domain.

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

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

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

**📝 2. Order Notes Update**

After an order is placed with Globo options, the app updates the **Order Notes** to reflect selected options.

* 🧩 **Customizable Content** – Use **Liquid variables** to personalize the note.
* 🔒 **Preserve Existing Notes** – Enable **“Keep existing order notes”** to **append** new info instead of overwriting.

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

**🏷️ 3. Order Tags Update**

Automatically apply tags to orders based on Globo option selections.

* 📌 **General Tags** – Add a tag to all orders with any Globo option.
* 🎯 **Specific Tags** – Apply tags when specific elements or options are selected by the customer.

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

📧 **Need Help?**\
If you run into any issues while setting up your option set, feel free to reach out to us at **Chat** or email **<contact@globosoftware.net>**.

We’re always here and happy to help — with sincerity and care!\
&#x20;


---

# 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://docs.globo.io/options/automation-function/automations-function.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.
