Propose a bounded AI edit to the agent's workflow draft

Given a free-text instruction, asks the AI generation provider to propose a replacement draft, then returns that proposal plus its validation -- it never writes to the draft. The caller (frontend) shows a diff and, only on explicit accept, PATCHes the existing update-draft route with the proposal, so an accepted AI edit is undoable through the same history as any manual edit. Rejects a proposal that changes more than 10 steps.

post/v1/agents/{agent_id}/workflow/ai-edit

Request

  • Base URL: https://api.skysay.ai
  • URL: https://api.skysay.ai/v1/agents/{agent_id}/workflow/ai-edit
  • Auth: none declared

Path parameters

agent_idstring required

Request body

instructionstring required

Response

Proposed draft, its validation, and the changed-step count

Changes

No recorded changes to this operation across all 1 revision of this API.