> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerodrift.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run an Audit

> Check the recent messages of a Slack channel or DM with the /zerodrift command, or start an audit from Command.

**Install first.** These guides need ZeroDrift for Slack. Connect Slack once from **Connections** in ZeroDrift Command. See [ZeroDrift for Slack](https://docs.zerodrift.com/slack-app.md) for the steps.

An audit checks the messages already posted in one conversation, once. Type `/zerodrift` in a channel or DM, and ZeroDrift sends you the result as a direct message with a link to the audit.

## Before you start

* Slack is connected, and you are a linked owner or admin. See [Connect Slack](https://docs.zerodrift.com/slack-app.md#connect-slack) and [Link other admins](https://docs.zerodrift.com/slack-app.md#link-other-admins).
* A billing account set up in ZeroDrift Command, with a credit card added, under [Settings > Billing](https://app.zerodrift.ai/settings/billing). Audits are charged for each message checked, and an audit does not run without one. See [Pricing](https://docs.zerodrift.com/pricing.md).
* You can see the conversation in Slack. An audit reads with your own Slack account, so it covers public channels, private channels you are in, and your DMs and group DMs. The app does not need an invite.

## The command

Type the command in the channel or DM you want to check.

| Command | What it does |
| - | - |
| `/zerodrift` | Checks the last 24 hours of the channel or DM you type it in. |
| `/zerodrift 7d` | Checks a longer window. Use days (`7d`) or hours (`12h`), up to 30 days (`30d`). |
| `/zerodrift help` | Shows how to use the command. |

The command is not posted to the channel. Only you see the app's reply.

## Run an audit

**1. Type the command**

In the channel you want to check, type the command with the window you want:

```text theme={null}
/zerodrift 7d
```

**2. Read the reply**

The app replies with the conversation and the window it is checking, and tells you it will send a direct message when the run is done. The reply repeats the window you typed, so check it is the one you meant.

**3. Follow the run**

The run appears on the app's Home tab under **Your recent runs**, and under **Audits** in Command. The audit page shows four stages: messages collected, messages checked, results compiled and report built.

**4. Open the result**

When the run finishes, ZeroDrift sends you a direct message with the result and a link to the audit. The Home tab shows the same run with its count, for example "7 of 13 flagged", and an **Open audit** link.

To read the audit page and its downloads, see [Read the Results](https://docs.zerodrift.com/guides/slack-app/read-results.md).

## Start an audit from Command

You can also start an audit in Command without typing a command in Slack.

1. In Command, open **Audits** and start a new audit.
2. For the source, choose **Slack**.
3. Choose the channels and the time range. Command offers public channels and private channels you are in. It does not offer DMs.
4. Name the audit and start it.

## What an audit checks

* **Posts and thread replies.** Each thread reply is checked as its own message. Files, attachments and bot posts are not checked.
* **Regulations only.** An audit checks against every active regulation. Custom policies cannot run in an audit yet.
* **Once.** An audit covers the window you chose at the time you ran it. To repeat it, see [Schedule Validations](https://docs.zerodrift.com/guides/slack-app/schedule-validations.md).

## Cost and time

* An audit is charged for each message checked, when it ends. It needs a billing account with a credit card added.
* A running audit can be canceled from its page in Command.
* A long window or a busy channel takes longer, because Slack limits how fast the app can read message history. Start with a short window to see how long your channels take.

## Limits

* **Up to 30 days.** The longest window is 30 days.
* **Owners and admins only.** Anyone else sees "Only ZeroDrift workspace admins can run validations from Slack."
* **Detection only.** An audit reports what was posted. It does not change anything in Slack.
* **Audit runs are not in Activity.** They are listed under **Audits** in Command. Activity shows [live monitoring](https://docs.zerodrift.com/guides/slack-app/live-monitoring.md) results.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.