The Rules tab
An agent’s Rules tab lists every rule attached to it.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
Best practices
When a user asks about password resets, account lockouts, or login issues...
@ 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.
Inform the user that their request has been logged and provide the ticket number.
Rule examples
Rule examples
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.
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.
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.
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.
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.
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.
Formatting tips
Formatting tips
- 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
Private message rules
Private message rules
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.
Limitations
Limitations
- 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.
Rule triggers
The picker in a rule’s Trigger card decides what starts the rule:- 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.
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.Access rules tab
Create new rule
Write instruction
@ 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.
- 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
@Titletext, 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.- 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.
Why a run is missing
Why a run is missing
- The title is empty.
- A schedule is half-filled.
- An enabled tool has a secret input with no Vault credential.
- From the agent
- From the rule
- Create a rule in the Rules tab
- Open any agent’s Rules tab
- Click Attach and select from your workspace rules
- Attach the same rule to as many agents as needed
Agents picker edge cases
Agents picker edge cases
- 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.
- Open an agent’s Rules tab
- Click the action menu on the rule you want to copy
- Select Duplicate
- Enter a title for the new rule (defaults to the original title with “Copy” appended) and choose a target agent
- Click Duplicate to create the copy
Open the View menu
Toggle columns
Select rules
Open bulk actions
Confirm
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 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.
- For each enabled rule, Ravenna checks whether the invoker satisfies the rule’s audience.
- Rules the invoker does not satisfy are dropped before the agent chooses which rule to apply.