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

# Platform rules

> Run workspace-wide work on a schedule, from a webhook, or when a conversation starts or is escalated. The Ravenna Agent runs each rule with admin permissions.

Platform rules is in beta and available to selected organizations. To request access, contact your Ravenna representative, or reach out to the Ravenna team on Slack or through the in-app chat. Testing it? See the [Platform rules tester guide](https://docs.ravenna.ai/documentation/ravenna-agent/platform-rules-beta).

Platform rules are recurring work that belongs to your workspace: a weekly ticket digest, a daily approval backlog check, or a heads-up in Slack whenever a conversation is escalated. You describe the work in plain language, and the [Ravenna Agent](https://docs.ravenna.ai/documentation/ravenna-agent/overview.md) runs it with workspace admin permissions. Each run leaves a ticket with what it did.

## Platform rules reference

* A platform rule is a rule on the Ravenna Agent: the workspace's `AgentKind.SYSTEM` agent named Ravenna (one per workspace, created with the first platform rule). It never appears in agent lists or the `*_agent` tools; only its platform rules change, never its settings, personality, skills or version.
* Only workspace admins can create, edit, publish, delete, attach or start a platform rule. Other callers get `PLATFORM_RULE_ADMIN_ONLY`. Non-admins never receive the rule's webhook token or URL.
* Triggers: schedule (cron plus timezone), webhook, or events `session_started` and `escalated` with optional agent and channel filters (empty means all). Event rules made in the editor fire for organization members.
* Runs are judged as a workspace admin for tool policy. Write and delete tools default to approval by workspace admins; a confirm-first policy also waits for approval. `respond`, `add_private_note` and ticket filing are ungated. 50 tool calls per run. Form and routing tools are withheld.
* Filing: `v3_create_ticket` is available to platform runs without attaching it. The ticket is a sub-ticket of the run's host ticket and needs a person as requester. A bot requester returns `SUB_TICKET_REQUESTER_REQUIRED`; resolve the person with `user_lookup`, or file nothing when nobody is waiting.
* Ravenna Agent tools: `create_agent_rule` with `agent_id: "platform"` and `activation.cron` plus `activation.timezone`, or `activation.events` with an audience. `run_agent_rule` (workspace admins) lists runnable rules, runs one (waits up to 45 s; `status` to wait again) and reads a run's steps and approvals. A draft returns `RULE_NOT_PUBLISHED`; event rules return `RULE_RUNS_ON_AGENT_EVENTS` when run by hand. Neither tool reaches platform rules over MCP.


## Related topics

- [Create a platform rule](https://docs.ravenna.ai/api/platform-rules/create-a-platform-rule.md)
- [Betas](https://docs.ravenna.ai/documentation/get-started/betas.md)
- [Rules](https://docs.ravenna.ai/documentation/agents/rules.md)
- [Agent tools](https://docs.ravenna.ai/integrations/omnissa/agent-tools.md)
- [Tools](https://docs.ravenna.ai/documentation/agents/tools.md)


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