> ## 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.

# Ravenna Agents

> Deploy custom AI agents to Slack channels and triage flows to answer questions, classify tickets, and resolve common requests automatically.

![Overview](https://d1kzozfjh72w00.cloudfront.net/documentation/screenshots/platform/agents/hero.webp)

Deploy custom AI agents into your channels (Organized workspaces for managing tickets by team or topic) to automate support requests, answer questions, and route tickets. Configure agents using natural language prompts to define behavior, integrate with external tools, and access your knowledge base. Agents handle instant responses, intelligent ticket routing, and workflow automation across Slack, email, and integrated systems.

## System overview

An agent is a conversational AI assistant deployed to one or more channels. It processes user messages in real time and responds using four capability layers:

1. **Rules** define behavior for specific scenarios using natural language instructions. Each rule tells the agent when to activate and what to do, referencing Ravenna resources with `@` mentions.
2. **Knowledge** provides the agent with searchable documentation. The agent retrieves relevant articles to answer questions with sourced responses.
3. **Escalation instructions** define fallback behavior when the agent cannot resolve a request. Without custom instructions, the agent follows default escalation logic.
4. **Tools** extend the agent with actions from built-in Ravenna capabilities and third-party integrations (Fleet, HubSpot, Jamf, etc.).

These layers compose together: a single conversation may involve checking knowledge, executing a tool action, filling a form via a rule, and escalating if the result is insufficient.

Processing order: when a user sends a message, the agent evaluates rules to find the best match, checks connected knowledge for relevant content, and executes tool calls as needed. If it cannot resolve the request, it falls back to escalation instructions.

***

## Agents vs workflows

| | Agents | Workflows |
| - | - | - |
| **Execution** | Conversational, real-time, synchronous | Background, asynchronous |
| **State** | Stateless single-turn responses within a conversation thread | Multi-step with wait states, approvals, delays |
| **Triggers** | User messages in connected channels | Events and schedules |
| **Branching** | Linear rule matching based on user intent | Conditional paths, parallel execution, converging branches |
| **External systems** | Tool calls within conversation | Native integration actions, HTTP requests |

**Use agents when you need:** conversational information gathering, interactive dialogue, real-time question answering, simple ticket creation, single-action tool calls.

**Use workflows when you need:** approval gates, parallel execution across systems, scheduled automation, wait states (for messages, approvals, inactivity), multi-step orchestration with error handling.

***

## Agent-workflow integration

Agents cannot trigger workflows directly. To hand off from a conversation to a workflow, use ticket state as the bridge:

* **Submit a form.** The agent collects details with `@Form Name` and submits it on the ticket. Configure a Form Submitted workflow to run the backend processing.
* **Set a category.** The agent classifies the request with `@Set Category`. Configure a Category Assigned workflow to route or automate from there.
* **Apply a tag or change status.** The agent uses `@Set Tags` or `@Set Status`. Configure a Tags Changed or Status Changed workflow to react.
* **Publish a ticket.** The agent creates a ticket in the appropriate queue. Configure a Ticket Created workflow (filtered by queue, category, or form) to take it from there.

The agent handles the conversation; a workflow triggered by the resulting ticket event handles the execution.

***

## Common patterns

**IT support agent:**
Rules for password resets, software access requests, and hardware issues. Each rule references a specific form via `@Form Name`. Knowledge folders provide self-service answers. Tools like Fleet or Jamf enable device lookups during conversation. Escalation instructions route unresolvable issues to human agents.

**HR support agent:**
Rules for benefits questions, time-off requests, and onboarding. Knowledge folders cover policy documents. Forms collect structured request data. Workflows handle multi-step processes like onboarding provisioning.

**Multi-tool lookup:**
A single rule can chain multiple tool calls. For example: use `@Look up device with Fleet` to get device info, then `@Run query with Fleet` to check diagnostics, then analyze results and provide troubleshooting steps. The agent executes tools sequentially within the conversation.

**Agent-to-workflow handoff:**
The agent collects information conversationally (application name, business justification, manager name) and submits `@Form - Software Access Request` on the ticket. A Form Submitted workflow then handles approval routing, provisioning, and notification steps that require background execution.

***

## Constraints and gotchas

* **One agent per channel.** Each channel can have at most one agent assigned. The same agent can be deployed to multiple channels.
* **Explicit resource access.** Agents do not automatically have access to all forms, workflows, or tools. Resources must be granted via `@` mentions in rules or through the knowledge configuration.
* **Single rule selection.** The agent applies only one rule per request, preferring the most specific match over broader ones. When several rules fit equally well, the agent asks the user which one they meant. If the user doesn't pick one after two questions, the agent searches its connected knowledge for the original request, if it has any, and escalates when nothing answers it. Keep rules distinct to avoid clarification questions.
* **Knowledge scope.** The agent only searches knowledge folders explicitly connected to it. It cannot access knowledge from other agents or unconnected folders.
* **Tool availability.** Integration tools require the corresponding integration to be installed and connected. If an integration is disconnected, its tools become unavailable.
* **Channel behavior modes.** Slack response behavior (all messages, mentions only, requests only) is configured per agent and applies to all channels that agent is deployed to.

***

## Upgrade an agent

Agents are versioned. When a newer agent version is available, the **Upgrade** action appears on each agent that's still on an older version, both in the agents list (row actions) and in the header of the agent's settings page.

Upgrading creates a **new, upgraded copy** of the agent. The new copy is not connected to any channels, so it doesn't respond anywhere until you connect it. Legacy (v2) agents no longer reply in Slack, Teams, email, or integration tickets, so connecting the upgraded copy is what brings replies back.

### When to upgrade

* Your agent is a legacy (v2) agent. It stopped replying when legacy agents were retired, and upgrading is how you get it answering again.
* A newer agent version unlocks behavior or capabilities the older version doesn't support.
* You want to consolidate on the current runtime so future improvements apply to your agent.

### Run the upgrade

**1. Open the upgrade modal**

From the **Agents** list, open the row actions menu on an eligible agent and select **Upgrade**. You can also open the agent's settings page and click **Upgrade** in the header.

**2. Name the upgraded copy**

The modal prefills a suggested name (the original name with an "Upgraded" suffix). Edit it if you'd like a different name for the new copy.

**3. Review rule changes**

The **Rules** section lists every rule attached to the agent and how it will be carried over:

* **Unchanged**: the same rule is re-attached to the upgraded agent. Edits to the rule continue to affect both agents.
* **Migrated**: a new copy of the rule is created on the upgraded agent because it needs changes to work on the new version. The original rule stays as-is on the original agent.

**4. Review automatic tool changes**

The **Tool changes** section lists tools that don't exist in the new version but have a known equivalent (or are safe to remove). These are handled for you. Rules affected by an automatic change are flagged for review on the upgraded agent.

**5. Choose replacements for unavailable tools**

The **Choose replacements** section appears when one or more tools used by the agent aren't available in the new version and don't have a known equivalent. For each one, pick a replacement tool from the list or select **Remove (no replacement)** to drop it.

You can't complete the upgrade until every unavailable tool has a decision.

**6. Confirm the upgrade**

Click **Upgrade**. Ravenna creates the upgraded copy and opens it so you can review the configuration.

**7. Connect and cut over**

Add the upgraded agent to the channels the original agent handled. The original no longer replies, so there's nothing to switch off first.

> [!NOTE]
>
> Only one upgraded copy of a given agent can exist at a time. If an upgraded copy already exists, finish reviewing or delete it before starting another upgrade.


## Related topics

- [Ravenna Documentation](https://docs.ravenna.ai/index.md)
- [Slack direct messages](https://docs.ravenna.ai/integrations/slack/direct-messages.md)
- [Configure your workspace](https://docs.ravenna.ai/documentation/ravenna-assistant/configure-workspace.md)
- [Private notes](https://docs.ravenna.ai/documentation/service-desk/private-notes.md)
- [Setup](https://docs.ravenna.ai/integrations/freshservice/setup.md)


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