This blog post is from Bryan Barrows, AI Forward Deployed Engineer at Okta, and is based on a template by Rajesh Kumar, Principal Forward Deployed Engineer at Okta.
Adding AI agents to Okta one at a time in the Admin Console is slow when you have more than a few. If you have a list of agents to onboard, you can automate it with Workflows.
Rajesh published a template that reads AI agents from a Google Sheet and registers and activates them in Okta Universal Directory. Each run registers the agent, adds its public key, assigns an owner to it, and activates it.
Register AI agents
How the template works
The 01 Initiate AI Agents Registration flow runs on schedule and reads new rows from a Google Sheet. The helper flows then perform the following tasks:
- Register the agent
- Get its ID
- Add the public key
- Assign the owner
- Activate it
The 02 Register AI Agents flow also adds each processed agent to the registered agents sheet, with its registration status and time. A final flow, 03 Remove Registered Agents, clears the processed rows from the new agents sheet.

Set up the template
Note: The template is provided as is, so try it in a non-production org first.
- Create an Okta connection in Workflows with the
okta.aiAgents.manageandokta.aiAgents.readscopes. If you change the scopes on an existing connection, you may need to reauthorize it. - Create a Google Sheets connection.
- Prepare a spreadsheet with two sheets.
- The first (new agents) has these columns:
Agent_NameAgent_DescriptionAgent_Pub_KeyOrg_IDAgent_Owner_Group
- The second (registered agents) has the same columns plus:
Reg_StatusReg_Date_Time
- The first (new agents) has these columns:
- Import the
.folderfile from Rajeshβs post into a new Workflows folder. - Open the 01 Initiate AI Agents Registration flow and select your spreadsheet and worksheet in the Google Sheets-Read All Rows card.
- Do the same for the Google Sheets-Create Row card in the 02 Register AI Agents flow, and the Google Sheets-Clear Row card in the 03 Remove Registered Agents flow.
- Turn on the flows. To test, run the 01 Initiate AI Agents Registration flow.

Check the result
In the Admin Console, go to Directory > AI Agents. The agents from your sheet should appear as Active, and the rows should have moved to the second sheet, with registration status and time.
Reusing the pattern
The sheet is only the data source. Use a new agents sheet as the queue and a registered agents sheet as the audit log, with one helper flow per step. You can swap the sheet for any platform with an API and keep the rest of the flows.
Onboarding Okta AI Agents guide
Read the guide (PDF).
Okta Workflows resources
- π New to Okta Workflows? The Getting Started with Okta Workflows page has all the resources to help you get started.
- πΊ Like learning from videos? Watch Okta Workflows videos.
- βHave a question? Ask during community office hours or post on the community forum.
- π¬ Want to learn from the community? Join the #okta-workflows channel on the Mac Admins Slack.
- π Want to learn more about identity automation? Take the Okta Workflows training on Okta Learning.
Leave a Reply