Skip to main content
POST
Give an agent a routine

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Path Parameters

id
string
required
Required string length: 1 - 160

Body

application/json
name
string
required
Required string length: 1 - 120
instructions
string
required

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

Required string length: 1 - 60000
schedule
object
required
model
object

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

executionTarget
string

A routine always runs in OpenWork Cloud; this may be omitted.

Allowed value: "cloud"

Response

Routine created as an active Cloud Automation that carries the agent's id.

automation
object
required
revision
object
required
latestRun
object | null
required