Save the final edit of a draft
save_editSave the user's FINAL edited version of a generated draft. Call this when the user has finished editing a draft (in conversation or elsewhere) and is happy with it — the diff against the original feeds ScriptGrain's closed-loop voice learning, so future drafts in that profile improve. Needs a generation with status 'drafted' (an 'outline' id has no draft to diff against); afterwards its status is 'edited'. Optional voice_rating (1-5): how well the ORIGINAL draft matched their voice. Saving again for the same generation replaces the previous edit. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| final_text | Yes | The user's final version of the text. | |
| voice_rating | No | User's 1-5 rating of how well the original draft matched their voice. | |
| generation_id | Yes | The generation the user edited. |