> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/detect-investigate-and-respond-to-threats/cortex-advanced-email-security/automate-remediation-for-the-cortex-advanced-email-security-module.md).

# Automate remediation for the Cortex Advanced Email Security module

The lightweight, real-time response engine inside the Advanced Email Security module executes automatic policy-driven actions to quickly respond to email threats before they manifest. Build your policy from the rules you configure by customizing the out-of-the-box templates.

Define the rules for your email security policy in Email Remediation Response Rules, located in **Modules** → **Email Security** → **Remediation** → **Rules**.

Review all the remediation actions initiated by your policy in the Email Remediation Action Center, located in **Modules** → **Email Security** → **Remediation** → **Action Center**.

### The automated email response engine provides the following advantages:

* Accelerated response: Execution of time-sensitive email response actions directly within the application interface, significantly reducing response latency.
* Unified audit and visibility: A single source of truth for all response activities. Every email action, whether through the engine or through playbooks, is seamlessly logged and fully auditable.
* Optimized analyst workflow: SOC analyst efficiency through intuitive controls and a zero-switch environment, ensuring investigations move quickly and without interruption.

### The email response engine supports the following actions:

* Soft delete email
* Undelete Email
* Report as phishing
* Send warning email
* Move Email to Folder
* Mark as Safe
* Mark as Malicious

{% hint style="info" %}

### Note

For extra automated actions, use the playbooks, scripts, and commands in the Cortex XSIAM automation engine. For more information, see [Automation in Cortex XSIAM](/cortex-xsiam/configure-cortex-xsiam/automations/automation-in-cortex-xsiam.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsiam/detect-investigate-and-respond-to-threats/cortex-advanced-email-security/automate-remediation-for-the-cortex-advanced-email-security-module.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
