Give an agent a routine
Changed onAn agent has an owner, a name, a brief that says how it works, and rules for which tools it can use. Every change to the brief or tool policy makes a new version. An agent does its work through routines. A routine is a Cloud Automation that belongs to the agent, so it also appears in the Automation capabilities; each run starts from the agent's brief and can use only what the agent's tool policy allows. The owner can share the agent with teammates. Managers can change who can collaborate. The owner must approve changes a manager proposes to the brief, tool policy or routines. Collaborators can use the agent and ask for changes. Runs started by a teammate are private. Scheduled runs use the owner’s accounts and share their results with the team. A manager’s request waits for the owner’s approval. Once created, the routine is active and runs in OpenWork Cloud on its schedule. Its instructions say what this routine does; do not repeat the brief in them. Change or pause it with the agent routine update.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
Request body
What this routine does each time it runs. The agent's brief is added in front of it.
Omit to run on the organization's cloud default model.
A routine always runs in OpenWork Cloud; this may be omitted.
Response
Routine created as an active Cloud Automation that carries the agent's id.
Changes
- breaking
added
subschema #6to therevision/scheduleresponse propertyoneOflist for the response status - info
added
subschema #6to theschedulerequest propertyoneOflist
- breaking
- warning
added the new
awaiting_ownerenum value to therequest/statusresponse property for the response status
2 more changes in this revision
- warning