# &#x20;Performing Internal Actions

**Setting Up an Perform action (Step-by-Step)**

### Add Actions

Select the actions to perform when the trigger fires. There are two types of actions available:

***

#### Send Message

This action sends a WhatsApp message to the customer using a pre-approved template.

You can configure the following:

* **Add Variables**: Insert dynamic values such as name, course, etc.
* **Set Delay Options**:
  * Immediately
  * After 1 hour
  * After a day
* **Choose Frequency**:
  * Send once
  * Send every time the trigger fires
* **Personalize Message Content**: Adjust the content using lead-specific data.

***

#### Perform Action

This action executes internal operations within the platform.

Examples include:

* Updating lead state
* Assigning leads to agents
* Adding tags
* Updating customer fields
* Adding to segments

<figure><img src="/files/AWImecxaA0eoSaOD54YP" 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/performing-internal-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.
