# &#x20;Auto Messages (Trigger-Based Automations)

### Setting Up an Trigger (Step-by-Step)

#### 1. Name Your Trigger

Give your trigger a clear, meaningful name so you can easily identify its purpose later.

#### 2. Add Triggers

Define what should start this workflow:

Whenever a customer interacts with a field (e.g., "Messaging", "Lead State", "Course Interest"), and that field matches the specified condition, a trigger is activated automatically.

Choose a customer field (e.g., “WhatsApp Template”, “Lead State”).

Define the condition logic (e.g., “is”, “contains”).

Set the expected value (e.g., “MBA Leads”).

You can also combine multiple conditions using OR/AND logic to build advanced trigger scenarios.

### &#x20;3: Add Action — Send Message

* Click **"Add Action"**
* Choose **"Send Message"**
* Select the **WhatsApp template** you want to send
* Personalize it using variables (e.g., `{{name}}`, `{{course}}`, `{{date}}`)
* Choose the **phone number field** the message should go to (e.g., Mobile)

### 4: Save and Activate

* Review your trigger name and conditions
* Click **"Save"** and toggle the status to **Active**

<figure><img src="/files/GcvMFXFViIyp0k8TmnRn" 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://squarebox-ai.gitbook.io/squarebox/automations-and-triggers/auto-messages-trigger-based-automations.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.
