Skip to main content
POST
Create Task Agent
This is an alias. POST /api/tasks and POST /api/goal-bots are the same route and take the same body. The full field reference lives on Create Goal Bot.

Authentication

Pass your workspace API key as a Bearer token, or use a Clerk session token.

Request body

string
required
Display name. Blank returns 400 Name is required.
string
required
The instructions the model runs on. Blank returns 400 Prompt is required.
string[]
Tags that wake this agent. Defaults to [].
string[]
Tags that keep leads away from it. Defaults to [].
string
default:"autopilot"
autopilot, copilot, manual, or the legacy alias draft. An unrecognised value is stored as copilot rather than rejected.
string
default:"active"
active or paused. Pass "paused" to create it dormant, verify it, then flip it on.
string
default:"calendly"
calendly or ghl_calendar.
string
default:"always"
always or auto.
string
Free-text tone hint.
boolean
default:"true"
Whether it may ask follow-up questions.
boolean
default:"true"
Send a typing signal before replying.
number
default:"8"
Reply cap per conversation. Clamped to 1–20.
string
Tag applied when the agent finishes.
boolean
default:"false"
Push onDoneTag to the connected CRM too.
string[]
Tool ids the agent may call.
string[]
Fields the agent should try to collect.

Example

Success (200 OK)


Errors