# SAC 360° Automation - Condition "The author of the last message is"

<figure><img src="/files/84dd889d1a29220827b9d63e8953d3871ea617f7" alt="" width="313"><figcaption></figcaption></figure>

To create your automation follow the step-by-step below:

When you open your Sac 360°, click on the Automations icon;

<figure><img src="/files/999790e165fb1cec4ed150f3e75d255055e15a06" alt=""><figcaption></figcaption></figure>

Then click on '**New automation**';

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

Configure your automation; Define a **title,** and the **condition** which in the example will be "The author of the last message is..."

<figure><img src="/files/52d4dcbbd68f22e13a80e9d33579a8fd5b89b214" alt=""><figcaption></figcaption></figure>

Next, it is necessary to define whether the author of the last message, which will be the **condition** for the automation, will be the **lead** or a **agent (including automations).**

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

Specify the **action** to be executed when the established condition is met.\
\&#xNAN;*You can choose more than one action at a time.*&#x20;

* We will use as *example* the condition of **Start a chatbot**. This means you can develop a satisfaction feedback chatbot and configure the automation so that when the *last message is sent by the lead*.

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

Select the desired Chatbot;

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

Configure your automation; \
\
**Set the recurrence**: If this automation should run multiple times while the conversation meets the conditions, set the desired frequency below.

"**Limit to channels**'": The automation will be started only when the conversation is from one of the selected channels. Leave empty for any channel.

**"Limit to accounts"** : The automation will be started only when the conversation is in one of the selected accounts. Leave empty for any account.

"**Limit to status**": The automation only when the conversation has one of the selected statuses. Leave empty for any status.

<figure><img src="/files/46a922a0e55c298b4fd7e87a2129b864168cc050" alt=""><figcaption></figcaption></figure>

Then click on '**Save automation**';


---

# 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.sprinthub.com/en/topics/general/sac-360/sac-360o-automations/sac-360-automation-condition-the-author-of-the-last-message-is.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.
