/workflows/:id/prompt
Replace an agent’s base (global) prompt — what it says, who it qualifies, and the goal it works toward. This is the editable prompt surfaced in the dashboard’s agent editor.
For a per-channel override on top of this base prompt, see Set Channel Prompts.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | Agent ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
global_prompt | string | Yes | The new base prompt. Max 50,000 characters |
Responses
200 — Prompt updated
400 — Validation error
global_prompt exceeds 50,000 characters.