Update Agent
update_agentAn agent's recurring runs are steered by each trigger's prompt and code; the goal is shared context, not the run script. A goal edit that adds, removes, or changes a recurring step therefore doesn't reach the runs on its own: after updating the goal, read the agent's triggers and bring each affected trigger's prompt or code in line via update_trigger — or confirm the existing triggers already cover the change. Narrowing a live outreach campaign's ICP is the same shape with more surfaces: segment-bound triggers, per-segment templates, and queued-unsent sends stay wired to the dropped segment; follow your channel's outreach skill to reconcile them.
Set priority=True to push this whole campaign's queued sends — email and LinkedIn alike — ahead of your other campaigns'. It starves the others until it drains — that's intended. priority=False clears it.
Dict with success status and updated agent details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | New goal/instructions. Name any outside resource a run reads (a Google Sheet, doc, file, URL) by the identifier its tool takes (the spreadsheet ID and tab, the URL), not only by its title — a later run doesn't see this chat. | |
| title | No | New title | |
| status | No | Set to 'active' or 'paused'. Pausing stops the whole agent — every trigger on it. | |
| agent_id | Yes | ID of the agent to update | |
| priority | No | True to prioritize this campaign's queued sends (email and LinkedIn) over other campaigns; False to clear. |