Revise an agent draft from a conversation with the agent builder. Returns the draft only; nothing is created.
POST
/v1/agents/draft
const url = 'https://app.everruns.com/api/v1/agents/draft';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.everruns.com/api/v1/agents/draftResponses
Section titled “ Responses ”Success
Media typeapplication/json
object
draft
required
The agent the builder is shaping. Nothing is created from it until the user confirms.
object
capabilities
Capability ids to attach.
Array<string>
channels
Channel kinds to create as drafts: public_chat, ag_ui, webhook, slack.
Array<string>
description
string
display_name
string
name
Addressable name (lowercase slug).
string
schedule
system_prompt
string
reply
required
The builder’s answer to the last message.
string
suggestions
required
Short follow-ups the user can send next.
Array<string>
Examplegenerated
{ "draft": { "capabilities": [ "example" ], "channels": [ "example" ], "description": "example", "display_name": "example", "name": "example", "schedule": { "cron": "example", "message": "example", "timezone": "example" }, "system_prompt": "example" }, "reply": "example", "suggestions": [ "example" ]}