1. AI Assistant
  2. Script tool
  3. Runbook
  4. AI agent

Start a conversation

Ask me about your organization's tickets, departments, and more — or pick a starting point.

When someone leaves, end their Okta sessions, suspend their Google Workspace account and move their files to their manager. Make it a runbook.

Tool approvalAwaiting Approval

Risotto wants to run this action. Approve to continue, or deny to skip it.

Tool
Create Script Tool

I wrote the Offboarding script tool and tested it on test.user@example.com. All 3 steps passed.

The Offboarding runbook is live. When someone asks IT to offboard a person, the agent runs the script tool after IT approves.

Offboarding
Draft
Flow

Find their manager

From their IdP profile; stop if there isn't one

!manager

Fail

No manager on file for ${email}.

Lock their accounts

End Okta sessions, then suspend Google Workspace

Move their files

Drive files and calendar events go to the manager

Return

return

true
false

Find their manager

From their IdP profile; stop if there isn't one

!manager

Fail

No manager on file for ${email}.

Lock their accounts

End Okta sessions, then suspend Google Workspace

Move their files

Drive files and calendar events go to the manager

Return

return

true
false
Startingemail: jordan.lee@example.com

Find their manager

running

From their IdP profile; stop if there isn't one

!manager

Fail

No manager on file for ${email}.

Lock their accounts

End Okta sessions, then suspend Google Workspace

Move their files

Drive files and calendar events go to the manager

Return

return

true
false
Runningemail: jordan.lee@example.com

Find their manager

412 ms

From their IdP profile; stop if there isn't one

!manager

Fail

No manager on file for ${email}.

Lock their accounts

running

End Okta sessions, then suspend Google Workspace

Move their files

Drive files and calendar events go to the manager

Return

return

true
false
Runningemail: jordan.lee@example.com

Find their manager

412 ms

From their IdP profile; stop if there isn't one

!manager

Fail

No manager on file for ${email}.

Lock their accounts

1.9 s

End Okta sessions, then suspend Google Workspace

Move their files

running

Drive files and calendar events go to the manager

Return

return

true
false
Runningemail: jordan.lee@example.com

Find their manager

412 ms

From their IdP profile; stop if there isn't one

!manager

Fail

No manager on file for ${email}.

Lock their accounts

1.9 s

End Okta sessions, then suspend Google Workspace

Move their files

2.6 s

Drive files and calendar events go to the manager

Return

return

true
false
Succeeded5.1 semail: jordan.lee@example.com
index.ts
1export const input = z.object({
2 email: z.string().email().describe("Who is leaving"),
3});
4type Input = z.infer<typeof input>;
5
6export default async function run({ email }: Input) {
7 // **Find their manager**
8 // From their IdP profile; stop if there isn't one
9 const manager = await risotto.get_manager({ email });
10 if (!manager) {
11 fail(`No manager on file for ${email}.`);
12 }
13
14 // **Lock their accounts**
15 // End Okta sessions, then suspend Google Workspace
16 await tools.okta.revoke_okta_user_sessions({
17 email_address: email,
18 });
19 await tools.google.set_google_workspace_user_suspension({
20 email_address: email,
21 action: "suspend",
22 });
23 await tools.google.sign_out_google_workspace_user({
24 email_address: email,
25 });
Runbook
Offboarding
  1. Confirm who is leaving and their work email.

  2. Run Offboarding with their email.

  3. Tell IT ops with Send Slack Message.

  4. Reply to the requester with what changed, and resolve the ticket.

Tools

Set by authorSet by agent
  • Offboarding
    Ready
    email
  • Tell IT opsSend Slack Message
    Ready
    channelmessage
# it-help
  1. Morgan Blake4:52 PM

    Jordan Lee's last day was today. Can you offboard them?
    ✅ 1
  2. RisottoApp4:52 PM

    Responded and created ticket IT-2291
    1. Creating ticket IT-2291: Offboard Jordan Lee
    2. Waiting for an admin approval
    3. Using tool Offboarding
  3. RisottoApp4:55 PM

    Done. Jordan's Okta sessions are ended, their Google Workspace account is suspended, and their files are with their manager, Priya Shah.
# it-agents
  1. RisottoApp4:52 PM

    🔒 IT-2291: Risotto is requesting approval to use the Offboarding tool.

    {
      "email": "jordan.lee@example.com"
    }

    ApproveDecline

    ✓ Approved by Sam Lee

IT describes the offboarding in plain English, and the Assistant builds it with IT's approval.
The script tool does the exact work in TypeScript: find the manager, lock accounts, move files.
The runbook is the program, in plain English. The AI agent follows it and runs the script tool.
A manager asks in Slack. The AI agent shows each step, waits for IT's approval, and runs the offboarding.