Agent setup guide
Okta Offboarding with Approval
When BambooHR marks someone Inactive, their Okta account is found and a brief is written; a person must approve before the account is deactivated.
What it does
When BambooHR marks someone Inactive, their Okta account is found and a brief is written; a person must approve before the account is deactivated.
- Starts when an employee changes in BambooHR and goes on only when BambooHR shows them as Inactive (in code).
- Finds their Okta account by work email and reads its groups.
- AI writes a brief for the reviewer and lists the rest of your offboarding checklist; it decides nothing.
- Always waits for a person's approval; code then checks the Okta email, the BambooHR status and the names before Okta deactivates the account.
- Emails you a confirmation with the steps still to do.
What it needs
- A paid plan (agents run live on paid plans).
- An AI provider key (Settings → AI Providers).
- BambooHR and Okta (an API token from an admin who can deactivate users), connected in Settings → Integrations.
What it doesn't do
- It never deactivates without a person's approval, and never deletes an Okta user.
- It acts when BambooHR shows the person as Inactive, not on a future termination date.
- It only finds Okta accounts whose login is the BambooHR work email.
- It doesn't do the rest of the checklist (equipment, files, payroll).
Availability and plans
Available
Its workflow is built and tested, and every app it needs is live. You can get it and set it up now.
Included free on the Enterprise plan; on other paid plans it's a one-time purchase per workspace (the price is on the Agents page). The Agents page in the app always shows its current status.
Before you start
- A paid plan: agents run live, and the Free plan only runs Dry Runs.
- An AI provider key (OpenAI, Anthropic, Google and more) in Settings → AI Providers. AI usage is billed by your provider.
- These apps, connected in Settings → Integrations: BambooHR and Okta.
- The app it watches, connected in Settings → Integrations (the agent starts from an app event).
- About 10 minutes.
Set it up step by step
Get the agent first (buy it, or it's already yours when your plan includes it), then in Agents → My agents press “Set up this agent”. That creates the agent's workflow in your workspace (it counts towards your plan's workflow limit) and opens the canvas with a setup checklist above it. Each item links to the exact place to go and ticks itself off when it's done.
1. Connect your AI provider
The AI steps run on your own key (OpenAI, Anthropic, Google and more). Add one in Settings → AI Providers.
2. Connect BambooHR
Connect BambooHR with your company domain and an API key (Settings → Integrations → BambooHR). The key acts as the BambooHR user who created it.
3. Connect Okta
Connect Okta with your Okta domain and an API token from an admin who can manage users (Settings → Integrations → Okta).
4. Pick the BambooHR account
Open the trigger and “Read the employee” and pick your BambooHR connection.
| Setting | What to enter | In step |
|---|---|---|
| BambooHR account | Your BambooHR connection. Pick your connected BambooHR account. | “Employee changed in BambooHR” |
| BambooHR account (same one) | The same BambooHR connection. Pick your connected BambooHR account. | “Read the employee” |
5. Pick the Okta account
Open “Find the Okta user”, “Read their Okta groups” and “Deactivate the Okta user” and pick your Okta connection.
| Setting | What to enter | In step |
|---|---|---|
| Okta org | Your Okta connection (an API token from an admin who can manage users). Pick your connected Okta account. | “Find the Okta user” |
| Okta org (same one) | The same Okta connection. Pick your connected Okta account. | “Read their Okta groups” |
| Okta org (deactivation) | The same Okta connection. Pick your connected Okta account. | “Deactivate the Okta user” |
6. Write your checklist
Open “Write the offboarding brief” and replace the placeholder.
| Setting | What to enter | In step |
|---|---|---|
| Your offboarding checklist | Replace the placeholder with your company, offboarding steps and their owners. It starts as “[YOUR COMPANY, YOUR OFFBOARDING CHECKLIST (EQUIPMENT RETURN, SHARED ACCOUNTS, FILE HANDOVER, FINAL PAY) AND WHO OWNS EACH STEP]” until you replace it. | “Write the offboarding brief” |
7. Where the confirmation goes
Open “Email the confirmation” and enter your email address.
| Setting | What to enter | In step |
|---|---|---|
| Send the confirmation to | Replace the example address with yours (or IT's). It starts as “you@your-company.example” until you replace it. | “Email the confirmation” |
8. Test it with Dry Run
Press Dry Run: the agent runs on sample data with no messages sent and nothing written to your apps.
9. Switch the trigger on
Open the trigger and click “Activate app trigger”: changed employees are checked every few minutes.
How it works
The agent is a normal workflow with 14 steps (1 AI step, with a person approving in Reviews). You can open, edit and monitor it like any other workflow.
- Employee changed in BambooHR — Starts on “New or changed employee” in BambooHR (an app event). Starts a run for each employee changed in BambooHR (checked every few minutes).
- Read the employee — BambooHR: Get an employee. Reads the employee's status, work email and termination date from BambooHR.
- Marked Inactive? — Decision: picks the branch to follow. In code, from BambooHR's status: only employees marked Inactive, with a work email, go on.
- Still active: nothing to do — Kept in the run history. Branch: Still active. The change wasn't a departure (or there's no work email to find the Okta account).
- Find the Okta user — Okta: Get a user. Branch: Inactive. Looks the person up in Okta by their BambooHR work email (Okta logins are usually the email).
- Read their Okta groups — Okta: List a user's groups. Lists the Okta groups the person is in, for the reviewer.
- Write the offboarding brief — AI step (runs on your AI provider key). AI writes what the reviewer needs: who, the Okta account found, its groups and your offboarding checklist. It doesn't decide anything.
- Approve deactivating the Okta account — A person approves or rejects it in Reviews (the run waits). ALWAYS waits for a person: approving deactivates the Okta account (all app access removed; can't be undone). Reject to leave it untouched.
- Check before deactivating — Step. Branch: Approved. In code: the Okta account's email is the BambooHR work email, BambooHR still says Inactive, and the names match.
- Passed the checks? — Decision: picks the branch to follow. Passed: the account is deactivated. Otherwise nothing changes in Okta.
- Held: nothing changed in Okta — Kept in the run history. Branch: Held. The Okta account didn't match the BambooHR record; check it by hand.
- Deactivate the Okta user — Okta: Deactivate a user (DESTRUCTIVE: removes all app access). Branch: Deactivate. DESTRUCTIVE, only after your approval and the code checks: Okta deactivates the user and removes all their app access.
- Email the confirmation — Sends an email from your workspace's sender. Emails you that the account was deactivated, with the rest of the offboarding checklist.
- Offboarding done in Okta — Kept in the run history. The run history keeps the brief, the approval and the result.
Test it with Dry Run
Press Dry Run in the canvas. The agent runs on the sample data stored on its trigger (the “Sample data for Dry Run” box), so you can check every step's output before anything is live. The sample has the same shape as a real event from the app.
Sample data fields
id, action, last_changed.
- Nothing is sent or written: app actions, emails and Slack posts are simulated, and AI steps don't call your AI provider.
- Approval steps use the Dry Run decision you pick in the step's settings (approved, rejected or timeout), so you can try each branch.
Go live
- Open the trigger and click “Activate app trigger”: changed employees are checked every few minutes.
- Activating the app trigger needs the trigger's connected account. The first check only remembers what's already there, so older items don't start runs; the same item never starts two runs.
- The setup checklist adds a “paid plan” item before activation: live runs need a paid plan (the Free plan only runs Dry Runs).
- When every checklist item is done and the trigger is on, the checklist says “Live — this agent is running”. Follow its runs in the workflow's History tab and in Analytics → Agents.
Questions
Can it deactivate someone without asking?
No. Every deactivation waits for a person to approve it in Reviews, and code checks the Okta account matches the BambooHR record before anything happens.
What does deactivating do?
Okta signs the person out and removes them from every assigned app, which can remove their data in those apps. Okta says it can't be undone. The agent never deletes the user.
What if their Okta login isn't their work email?
The lookup fails and the run stops with Okta's not-found message; nothing changes. Deactivate that account by hand.
Troubleshooting
- “No AI provider connected” or a rejected key: connect or fix the key in Settings → AI Providers, then press Test there.
- A checklist item stays unticked: the setting is still empty or still contains its placeholder text. Open the step from the checklist and fill it in.
- An app step fails with “Needs reconnect”: the account's access was revoked or expired. Reconnect it in Settings → Integrations.
- No runs start: activate the app trigger with a connected account. Only items created after activation start runs.
- A run shows as paused: it's waiting for someone in Reviews to approve or reject it.
- A step failed: open the run in History and check that step in the Trace tab for the error and what it received.
Generated from the agent's own workflow, so it always matches what the agent does. Last updated .