# Create Automation

For example when you will display lead automation to set the label, set owner, and set lead status, then you must configure the ***trigger, filter*** and ***action*** as follows :

![Configure Automation](/files/-MU7jfFB_rSsAjEvvcwq)

In the example case above, when *Sales* from *Any Group* is submitting lead form and the source of the lead is *'Import'*, the lead will have a label ‘*Hot Lead*’ with lead status *'Active'*, as shown images below.

![Automation Running](/files/-MU7joJtPveHlYA2mAqf)

If you want to create automation for archived lead, for example you can configure the ***trigger, filter*** and ***action*** as follows :

![Automation for Archived Lead](/files/-MU7lTqGQsJUpf29j3tt)

So when *Sales* from *Any Group* is archiving the lead with label *'Hot Lead'*, the label of the lead will become *'Cold Lead'* with the owner is *'Zulfa Fahimah'* and the lead status is *'Archived'* as shown as image below.

![Automation for Archived Lead Running](/files/-MUq2cpqehIgpYF70g9_)


---

# 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.3dolphins.ai/5.1.x/sales-activity/lead/lead-automation/create-automation.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.
