Skip to main content
Rules are natural language instructions that define how your agent handles specific scenarios. Each rule teaches your agent a capability using prompts that reference Ravenna resources like and .

The Rules tab

An agent’s Rules tab lists every rule attached to it.Each rule shows its status, Enabled or Disabled. Rules that use tools are covered on Tools.

Rule structure

Each rule contains:
  • Title: Descriptive name for the rule (for example, “Password reset handler”)
  • Instruction: Natural language prompt telling the agent what to do and when
  • Enabled/disabled toggle: Control whether the rule is active

When to use rules

Create rules when you want your agent to:
  • Handle specific kinds of request consistently
  • Route requests to the correct form
  • Reference specific knowledge sources for answers
  • Follow defined processes for common scenarios
  • Provide specialized responses for particular topics

Writing effective rules

Best practices

Be specific about triggersClearly define when the rule should activate.

When a user asks about password resets, account lockouts, or login issues...

Reference resources with @ mentionsUse @ to link to specific Ravenna resources.

Check @IT Knowledge Base for relevant articles before responding. Create a ticket with @Form - Password Reset if action is needed.

Define expected outcomesTell the agent what success looks like.

Inform the user that their request has been logged and provide the ticket number.

Keep instructions focusedEach rule should handle one scenario. Create multiple rules for different use cases rather than one complex rule.
Knowledge-first response

When a user asks a question, first check @IT Knowledge Base for relevant articles. If you find an article that answers the question, provide a summary and link to the article. If no articles are found, create a support ticket with @Form - General Inquiry and inform the user that their request has been logged.

Password reset handling

When a user requests a password reset or reports being locked out of their account, create a ticket with @Form - Password Reset. Confirm to the user that their request has been submitted and that IT will process it shortly.

Software access requests

When a user requests access to software or applications, ask them to specify which application they need and their business justification. Then create a ticket with @Form - Software Access Request including the details they provided.

Learn about software access requests for enabling policy-aware access management on agents
Hand off to a workflow via a form

When a user requests software access, ask which application they need and their business justification. Then create a ticket with @Form - Software Access Request including the details they provided. A workflow triggered by the form submission will handle provisioning and approvals automatically.

Hardware issues

When a user reports hardware problems (laptop, monitor, keyboard, mouse), first ask clarifying questions about the issue. Then create a ticket with @Form - Hardware Support and let them know an IT technician will follow up.

Multi-step process

When a new employee starts, create a ticket with @Form - Employee Onboarding capturing the new hire's details. A workflow triggered by the form submission will provision their accounts, assign equipment, and schedule orientation. Confirm with the manager that the onboarding process has begun.

  • Use clear, conversational language as if explaining to a colleague
  • Break complex logic into numbered steps for multi-part processes
  • Include fallback behavior telling the agent what to do if the primary action isn’t possible
  • Specify tone when needed, adding guidance like “respond empathetically” for sensitive topics
You can write rules that instruct the agent to send responses privately. When a rule involves sharing credentials, API keys, or other sensitive information, the agent automatically sends that content as a private DM to the requester. You can also explicitly instruct the agent to respond privately in a rule.

When a user asks for their database credentials, look up the credentials in @IT Credentials KB and respond privately with the connection details. Never share credentials in the public channel.

Form accessYou must reference forms within rules for the agent to create tickets of that type. Your agent does not have access to all forms by default.The agent only uses forms that are Published. If a referenced form is in Draft or Archived status, the agent skips it and falls back to other matching rules or escalates. Publish a form before referencing it in a rule to ensure the agent can present it to users.Rule selectionThe agent applies one rule per request. When one rule clearly fits better than the others, the agent uses it, preferring the most specific match.When several rules fit a message equally well, the agent asks the user which one they meant, the same way DM routing asks which team to contact. The agent matches the user’s reply against your rules on the next turn:
  • If the reply points to one rule, the agent continues with that rule.
  • If the reply doesn’t pick one, the agent asks once more from a different angle.
  • After a second reply that doesn’t pick one, the agent proceeds as if no rule matched. If the agent has knowledge connected, it searches it for the original request and escalates if nothing answers it. Otherwise it escalates.
While waiting for the user’s answer, the agent has no access to rule-scoped tools, forms, or other resources.If users often get asked which rule they meant, your rules overlap. Make their trigger conditions more distinct.

Rule triggers

The picker in a rule’s Trigger card decides what starts the rule:Schedule, Webhook, and Event run as an agent, so they are only available once the rule is attached to one. Their tickets land in the workspace’s Agent Runs channel.
  • Schedule. Build the schedule as a sentence: every N minutes or hours, or every day, week, or month at a time you pick, with the days of the week or month where they apply. Pick a timezone, which defaults to UTC. A schedule that does not fit the sentence, such as one with step values, is edited as a raw cron expression instead.
  • Webhook. Save the rule to get its URL, then copy it from the editor. Anyone with the URL can run the rule, so treat it like a secret. If your sender supports custom headers, send the token as Authorization: Bearer <token> instead of keeping it in the URL.
  • Event. Tick one or more events. The rule saves only once at least one is selected.
    • New session fires when the agent replies to a requester for the first time on a ticket.
    • Escalated to a human fires when the agent hands the conversation to your team, following its escalation instructions.

Event rules

Use an event rule for work that should happen beside a conversation rather than inside it. For example, give a team a heads-up whenever the agent escalates a request from a VIP group, or log every new session from contractors.
  • Fires for its audience. On an event rule, the audience section is labeled Fires For. The rule fires only when the source ticket’s requester is in the rule’s , such as everyone or selected user groups. Choose the audience deliberately, because the rule fires for every requester it admits.
  • Once per ticket and event. Each rule fires at most once per ticket for each event. A second escalation on the same ticket does not start a second run.
  • No Run now. An event rule needs a source ticket, so it has no Run now button.
  • Not matched against messages. Event rules never compete with message rules for a user’s message. They only start from their events.

When a conversation from an executive is escalated, post a short summary of the request and a link to the source ticket in #it-leads so a lead can pick it up quickly.

Each Schedule, Webhook, or Event run creates a ticket and records an outcome, such as Completed or Failed. See Runs.

Manage rules at workspace level

Create reusable rules at the workspace level from the Rules tab on the Agents page. Workspace-level rules can be shared across multiple agents for consistent behavior.
1

Access rules tab

Navigate to Agents in your workspace and click the Rules tab.
2

Create new rule

Click New Rule and enter a descriptive title.
3

Write instruction

Write the instruction using natural language and @ mentions to reference forms, knowledge folders, and tools.

Drafts and publishing

Rule edits, including the title, autosave to a draft one second after you stop typing and again when you leave the page. The agent keeps running the published rule until you publish. While a draft is open, the header shows Unpublished changes, or Unpublished changes by and a name when someone else saved the draft.
  • Click Publish to make the draft live. Each publish saves the rule as a new version.
  • Open the Unpublished changes menu and click Discard changes to drop the draft and return to the published rule.
  • Run now always runs the published rule, not the draft.
Publishing is blocked while a tool the rule has on has a setting that can’t be used, such as one on an input the tool no longer has, or a Foundry function secret with no Vault credential. The publish dialog lists each one; fix them in the tool’s settings and publish again. Restoring an earlier version isn’t blocked by these, so you can always go back, but its confirmation lists them.Publishing also checks the people and groups a setting names, so someone deactivated or a group deleted after the setting was saved blocks it until you update the setting. Between publishes, an allow list drops anyone deactivated and any group deleted when the agent runs, and holds the tool back if nothing on it is left. A fixed person or group stays fixed, so update the rule when they leave.When publishing does more than change the rule’s text, Ravenna asks you to confirm and lists what will happen. For example:
  • Someone published the rule after you started editing, and publishing replaces their change.
  • The rule is attached to other agents, and they get the change too.
  • The rule mentions forms, workflows, tools, or other items that were deleted, so the agent can’t use them.
  • The rule names tools as plain @Title text, so the agent won’t have them.
  • Groups in the rule’s audience were deleted and will be dropped.
  • Publishing creates a new webhook URL, or the current webhook URL stops working.

Version history

Click the version button in the header, which shows the current version number such as v3, to open the Versions panel. Each version lists its title, who published it, and when. Select a version to view it read-only under a Previous version banner. Click a tool in its tool list to see that version’s tool settings.To go back to a version, click Restore in the banner. On a rule opened from an agent, the button reads Enable and also enables the rule on that agent. Restoring replaces the current rule with that version and discards any unpublished changes. The confirmation lists the same warnings as publishing.Scheduled, webhook, and event runs keep the version that was published when the run started. A tool call that needed approval runs under the version the approver saw.

Executions

Open a rule and click the Executions tab to see each time it ran, newest first.Click a row to open the run:
  • Overview: how the run started, where the message came from (for example Slack · #it-help), the agent, requester, ticket and time, plus the full message.
  • Rule: the rule exactly as it ran in that version.
  • Tools: the tools the agent called in that run, and the tools it had available.
Use Open ticket to jump to the ticket, or Open in Slack when the agent replied in Slack.
The tab lists runs where an agent matched this rule to a message, and runs from its schedule, webhook, event trigger or Run now. Runs where the agent chose from all of its rules on its own aren’t listed.
A rule you create from an agent’s page is attached to that agent and enabled right away. Open it from the agent to find the enable switch in the header, since enablement belongs to the agent and rule pairing rather than to the rule itself.When a rule cannot be saved yet, the editor shows an inline message explaining what to fix and prompts you to discard changes if you try to leave. Common cases:
  • The title is empty.
  • A schedule is half-filled.
  • An enabled tool has a secret input with no Vault credential.
Ravenna also checks tool input settings when the rule saves. A value it can’t use, such as a person who has been deactivated or a requester variable on a scheduled, webhook, or event rule, is rejected with an error naming it, and the change isn’t saved.Workspace-level vs agent-specific rules
Create workspace-level rules for common scenarios like password resets or software access requests that multiple agents should handle consistently. Use agent-specific rules for behavior unique to a particular agent or channel.
Reuse rules across agentsAttach workspace-level rules to multiple agents from either side:
  1. Create a rule in the Rules tab
  2. Open any agent’s Rules tab
  3. Click Attach and select from your workspace rules
  4. Attach the same rule to as many agents as needed
Changes in the Agents picker apply right away, without publishing.
  • The picker isn’t shown when you view an older version of the rule, since versions don’t record agents.
  • A webhook-activated rule runs as a single agent, so it can be attached to only one. If a change fails, Ravenna shows the error and the picker returns to the saved agents.
When you update a workspace-level rule, changes automatically propagate to all agents using that rule.
You cannot delete a rule currently attached to one or more agents. Remove it from all agents before deletion.
Duplicate rulesCreate an independent copy of a rule and attach it to any compatible agent:
  1. Open an agent’s Rules tab
  2. Click the action menu on the rule you want to copy
  3. Select Duplicate
  4. Enter a title for the new rule (defaults to the original title with “Copy” appended) and choose a target agent
  5. Click Duplicate to create the copy
The duplicate is fully independent. Editing the original rule does not affect the copy, and vice versa.
Use duplicate when you want to create an independent variation of a rule for a different agent. Use attach when you want multiple agents to share the same rule.
Delete a ruleTo delete a workspace rule, open it in the editor and click Delete. Rules that are currently attached to one or more agents must be detached first. Deletion is permanent and cannot be undone.Customize the rules table viewThe Rules tab on the Agents page displays all workspace-level rules in a sortable table. Use the View menu above the table to control which columns are visible. Hide columns you do not need to focus on the information that matters for your workflow.
1

Open the View menu

On the Rules tab, click the View button above the rules table.
2

Toggle columns

Select or clear the checkbox next to each column to show or hide it. Your selection is remembered for the next time you open the table.
Bulk delete rulesDelete multiple workspace-level rules at once from the Rules tab. Use bulk delete to clean up unused or outdated rules in one action instead of removing them individually.
1

Select rules

On the Rules tab, use the checkbox at the start of each row to select the rules you want to delete. Use the checkbox in the table header to select every rule on the current page.
2

Open bulk actions

Click the Delete button that appears in the bulk actions bar above the table.
3

Confirm

Review the list of rules in the confirmation dialog and click Delete to remove them.
You cannot bulk delete rules that are currently attached to one or more agents. Detach a rule from every agent before including it in a bulk delete. If your selection includes attached rules, the delete action skips them and reports which rules were not deleted.
Bulk delete is permanent. Deleted rules cannot be restored, and any agents that previously used them lose those instructions.

Rule audience

Every rule has an audience that controls which requesters the agent will apply it for. Audience is a first-class access control on the rule itself. It replaces informal patterns like “if the user is in group X, do Y” written into a rule’s instruction.Set the audience from the Who Can Use This Rule section of the rule editor. On an , the same section is labeled Fires For. Pick one of four options:
Ravenna creates an organization guest the first time someone outside your email domains reaches the agent, for example an email sender or a customer in a Slack Connect channel. A rule set to Everyone applies to them, along with every tool the rule uses.
When you pick User groups, a User groups picker appears below it. Add one or more groups; a requester needs membership in at least one of them to match.
Audience is enforced when the rule is being considered, not just when it is displayed. A rule whose audience does not include the requester is withheld from the match step, so the agent never sees it and cannot be talked into applying it. This is stricter than a post-hoc denial: a denial would still leave the agent having announced it would look something up.
How the check runs at each turn:
  1. Ravenna identifies the latest non-bot author on the ticket (the invoker). In a mixed thread, a member’s reply makes member-audience rules matchable again even if a guest opened the ticket.
  2. For each enabled rule, Ravenna checks whether the invoker satisfies the rule’s audience.
  3. Rules the invoker does not satisfy are dropped before the agent chooses which rule to apply.
Fails closed for unresolved and anonymous requesters. If Ravenna cannot resolve the invoker (for example, an anonymous portal or guest-chat session), only rules with the Everyone audience are considered. Organization members, Workspace members, and User groups rules are withheld.Removing all group selections matches nobody. If you switch a rule to User groups and then remove every group, the rule stops matching anyone. Publishing it warns you first.
Use audience for access control (“only IT admins can invoke the deprovisioning rule”), not for routing hints. Routing hints belong in the rule’s trigger condition, which the agent uses to pick the best match among rules the invoker is already allowed to use.
Last modified on November 26, 2026