# Nightfall Policies for Gmail

DLP policies are a set of rules that include specific conditions, actions, and exceptions that monitor and filter data. DLP policies also enable you to remediate any leakage of sensitive information from within your organization.

* You can set up policies to scan data that is sent through some or all applications within your organization.&#x20;
* You can configure policies and choose to not apply them all the time.

Before you define a policy or a set of policies, we recommend that you define the objectives of each policy, which can then be fulfilled when you configure the policy.

Here are a few important questions to ask before configuring your policies:

* What data do you plan to monitor?
* Where within the organization do you want to monitor?
* What should be the scope of each policy?
* What conditions must apply for the policy to match?
* What exceptions/exclusions can be allowed?
* What remediation actions should the policy take?

You can now configure policies on the Gmail integration to determine which repositories are monitored, and which ones are excluded from monitoring. You can also automate the remediation actions that you want Nightfall to perform on a policy violation.

## Creating Policies in Nightfall for Gmail

The process of creating policies in Nightfall consists of six stages enlisted as follows. &#x20;

[Integration](https://help.nightfall.ai/nightfall-ai/gmail-dlp/gmail-policies/integration)

[Detection Rules](/gmail/policies/detection_rules.md)

[Advanced Settings](/gmail/policies/advanced_settings.md)

[Creating Policy](/gmail/policies/risk_score.md)

[Managing Violations](/gmail/policies/events.md)


---

# 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://help.nightfall.ai/gmail/policies.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.
