# Runbooks, knowledge, tools and access rules (video)

A three-minute video on Risotto's four building blocks: what access rules, knowledge, runbooks and tools each do, and how to choose between them.

Risotto has four building blocks: access rules, knowledge, runbooks, and tools. Each one does a different job, and knowing which to use is most of what it takes to set Risotto up well. This video looks at each one, and then at how to choose. Each section below links to the guide that sets it up.

[Video: Runbooks, knowledge, tools and access rules](https://media.tryrisotto.com/videos/building-blocks-desktop.mp4)

## Three paths

Every request becomes a ticket, and Risotto takes one of three paths. An access request goes to your access rules. A question or a task goes to knowledge and runbooks. And when nothing fits, Risotto escalates it to your team. A request never just disappears. See [Escalations](https://www.tryrisotto.com/docs/dashboard/settings/departments#escalations).

## Access rules

1. **Who's eligible, who approves, which group**

   Priya asks for 1Password. 1Password is one of your applications, and each of
   its access rules says who's eligible, who approves, and which Okta group to
   add. Risotto checks eligibility first, so Priya is offered only the rules
   she qualifies for. See [Access
   rules](https://www.tryrisotto.com/docs/dashboard/applications/access-rules).

2. **The grant runs in code**

   The AI reads the request and fills in the details. But the approval and the
   grant run in code, the same way every time. However a request is worded, it
   gets the same rule and the same approvals. See [Approval
   policies](https://www.tryrisotto.com/docs/dashboard/settings/approval-policies).

3. **Apps with no Okta group**

   For an app with no Okta group, an access rule can run a script tool to grant
   and remove access. See [Script
   tool](https://www.tryrisotto.com/docs/dashboard/applications/access-rules#script-tool).

## Knowledge

Risotto can always search what you've connected, like Confluence, Notion, or Google Drive. Maya asks how to set up the VPN. Risotto finds the VPN guide, and answers with the steps and a link. Knowledge is how things work at your company. See [Connect knowledge](https://www.tryrisotto.com/docs/dashboard/knowledge/connect).

## Runbooks

1. **What to do**

   A runbook says: when a request like this comes in, follow these steps, with
   these tools. When it matches, Risotto gets those instructions and tools for
   that ticket. It's like building an agent for one job, without building a
   separate agent. See [Runbooks](https://www.tryrisotto.com/docs/dashboard/runbooks).

2. **Keep the what and the how apart**

   Don't paste your parental leave policy into a runbook. Keep it in your
   knowledge, where every answer can use it. Then the runbook points to it,
   with a knowledge directive: for this request, only use the Parental leave
   policy. See [Steering knowledge with
   directives](https://www.tryrisotto.com/docs/dashboard/runbooks#steering-knowledge-with-directives).

## Tools

1. **The actions**

   Core tools are always there: research an answer, leave an internal note,
   hand off to access, or escalate. Others come from your integrations, like
   Google Workspace and Okta, or you build your own from an API. See [Core
   tools](https://www.tryrisotto.com/docs/dashboard/tools#core-tools) and [Custom API
   tools](https://www.tryrisotto.com/docs/integrations/tools/custom-api-tools).

2. **Try a tool first**

   A new tool does nothing on its own. Risotto uses it only when a runbook or
   an [automation](https://www.tryrisotto.com/docs/dashboard/automations) includes it, so try it first
   with **Run tool**. See [Tools](https://www.tryrisotto.com/docs/dashboard/tools).

3. **Script tools**

   In a runbook, the AI decides when to call each tool. For a step that must
   run the same way every time, use a script tool: TypeScript you can read,
   running in a sandbox. Adding a Mac to a Jamf group takes two API calls: find
   the computer by email, then add it to the group. A script tool does both in
   one step, and the AI just runs it. See [Script
   tools](https://www.tryrisotto.com/docs/integrations/tools/script-tools).

## How to choose

Ask how sensitive it is.

| The request                                           | Use                  |
| ----------------------------------------------------- | -------------------- |
| Booking a conference room, or joining a Google Group  | A runbook with tools |
| Access to a sensitive system                          | An access rule       |
| A sensitive action, or API calls that belong together | A script tool        |

A runbook with tools is the right answer most of the time. An access rule makes sure its approvals always run.

You can also combine them. A runbook can ask Priya to read the AWS access guide first, then use **Handle Access** to request it. The access rule's approvals still run, and the runbook can't skip them. See [Using tools in runbooks](https://www.tryrisotto.com/docs/dashboard/runbooks#using-tools-in-runbooks).

Access rules grant access. Knowledge answers. Runbooks say what to do. And tools do it.

Source: https://www.tryrisotto.com/docs/guides/building-blocks-video
