Supported editions for this feature: Frontline Standard and Frontline Plus; Enterprise Standard and Enterprise Plus; Education Fundamentals, Education Standard, and Education Plus; Enterprise Essentials Plus. Compare your edition
With data loss prevention (DLP) for agent workflows, you can control what AI agents can access in Google Workspace. Using data protection rules, you can restrict agents from accessing sensitive content in your organization. This reduces the security risks of autonomous and assisted AI workflows.
How does DLP for agent workflows work?
DLP for agent workflows checks the Google Workspace sources that AI agents access when they find information or complete tasks for users.
DLP for agent workflows in practice
- You define data protection rules. These rules specify which content is sensitive and which types of agents are restricted from accessing it.
- When an agent tries to access data in a supported Google Workspace service, DLP scans the content for rule violations.
- If the content violates a rule, DLP triggers the rule's actions.
- DLP logs every rule evaluation. You can turn on alerts to notify administrators when a rule is triggered.
Supported services and agent types
DLP for agent workflows lets you control agent access to data in the following Google Workspace services:
- Google Calendar
- Google Chat
- Google Drive
- Gmail
A single data protection rule can cover AI agent access or user activity in other Google Workspace app options, but not both. To protect both user activity and agent access, create separate rules.
You can apply data protection rules to the following types of AI agents:
- Personal agents: Act on behalf of an individual user in your organization.
- Coworker agents: Managed by your organization with their own agent account.
- External agents: Owned outside your organization or by a third-party provider.
For content limits, go to View DLP content and rule size limits.
Understand DLP actions
If your rule finds sensitive content, it can enforce one of the actions included in the following table.
If you have similar rules with different response actions, the stricter action prevails. For example, if one rule requires user approval when a Social Security Number (SSN) is found and another rule blocks agent access to SSNs, the agent is blocked from accessing that data.
| Action | Description |
|---|---|
| Block agent access | Stops the agent from accessing the Google Workspace resource and notifies the user. The event is logged. |
| Audit only | Lets the agent access the data without interruption and logs the event. Note: This action is not available for Google Drive. |
Understand DLP conditions
When you create a data protection rule for agent access, you define which agents trigger the rule and what content DLP scans for.
Agent actor conditions
Select which AI agent actors trigger the rule. You can select personal agents, coworker agents, and external agents.
Content conditions
You can create a data protection rule with no conditions. In this case, the rule applies to everything in the flow.
Or, you can specify conditions in the data protection rule that define what content or activity to scan for. You can use predefined data types or create your own custom content detectors. You can also combine multiple conditions using AND, OR, or NOT operators.
For details, go to the following articles:
- About predefined content detectors
- About custom content detectors
- Data protection rules with nested condition operators
| Content type | What to scan for | Details & use |
|---|---|---|
| All content |
Matches predefined data type Contains text string Matches regular expression Matches words from list |
Scans content and metadata in the selected Google Workspace services when a selected agent tries to access the data. |
Create a rule
After you decide what you want your rule to do, you create the rule. For details, go to Create data protection rules.
Common use cases
The following table provides examples of how to combine apps, agent actor conditions, content conditions, and an action to define your DLP policy for agent workflows. To use this table, you must:
- For Agent access, select the apps.
- Select an action.
- Select the agent actor conditions and map the content condition values to the corresponding options.
| Use case | Action | Apps & conditions |
|---|---|---|
| Block personal, coworker, and external agents from accessing content that contains Social Security numbers in Google Chat, Gmail, and Google Drive | Block agent access |
Apps: Agent access Agent actor conditions: Personal agents, Coworker agents, External agents Content type: All content What to scan for: Matches predefined data type Data type: United States - Social Security Number |
| Block external agents from accessing any data in Google Calendar, Google Chat, Google Drive, and Gmail | Block agent access |
Apps: Agent access Agent actor conditions: External agents Content conditions: None |