approve_change
Used with chat_async when approval_mode='ask_every_time'. For each proposed change (with chunk_id and HTML diff), respond approved=true|false plus optional feedback for the AI to revise on. Approved changes apply atomically; denied changes are discarded; the AI may revise based on feedback in the next turn. Required for regulated workflows (legal, medical, compliance) where every AI edit must be reviewed before it touches the document. For single changes: set approved=true/false and optionally provide feedback. For batch decisions: provide a 'changes' array with per-change decisions. After approval, the job resumes processing and eventually reaches status=completed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job ID that is awaiting approval. | |
| changes | No | Batch decisions: array of {change_id, approved, feedback} objects. Use for 'Accept All' or 'Deny All'. | |
| approved | Yes | Whether to approve (true) or deny (false) the change. | |
| feedback | No | Optional feedback explaining why a change was denied. Helps the AI adjust future suggestions. | |
| change_id | No | Specific change to approve/deny (for individual decisions). Get change IDs from the job's pending_changes. | |
| session_id | Yes | ||
| authorization | No |