Agents

Give an agent a routine

Changed on

An 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.

post/v1/personal-agents/{id}/routines

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

id, string required

Request body

CreatePersonalAgentRoutine required
name, string required
instructions, string required

What this routine does each time it runs. The agent's brief is added in front of it.

schedule, union required
model, object

Omit to run on the organization's cloud default model.

executionTarget, 'cloud'

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.

AutomationDetail required
automation, Automation required
revision, AutomationRevision required
latestRun, AutomationRun nullable required

Changes

    • breaking

      added subschema #6 to the revision/schedule response property oneOf list for the response status

    • info

      added subschema #6 to the schedule request property oneOf list

    • warning

      added the new awaiting_owner enum value to the request/status response property for the response status

    2 more changes in this revision