# SAC 360º Automation – Tag Leads When Closing a Case

## Setting up the automation

The purpose of this automation is to automatically apply a tag to the lead as soon as it reaches the status *"Resolved"*, that is, when the support is completed — either by automation or manually. This allows, in the future, to easily identify which leads have already gone through support.

**Important:** this automation **does not** is retroactive, that is, it will not be applied to tickets already archived.

In addition, the automation does not have a specific trigger. It runs automatically as soon as the ticket reaches the status defined in *"Limit to status"*, in this case, *"Finished"*.

<figure><img src="/files/36f2263990306e17160b9d847f6a54d095e1febb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/bd2ed4219082f260f041c6ff203a9de650401633" 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://docs.sprinthub.com/en/topics/general/sac-360/sac-360o-automations/sac-360o-automation-tag-leads-when-closing-a-ticket.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.
