- Update AI Context In Email Editor
Tool name: update-email-editor-ai-context
Sets the AI context of an automation email (Smart Mail): the instruction and the data fields and tags every AI block is generated with, and the defaults a new AI block starts from. Replaces the whole context; the previous one is not kept. Foreign field or tag ids and other emails are refused. It applies with the next generation, without a publication. Revision-bound, atomic edit: put every change to one email into one call, never parallel calls; drafts only; publishing is publish-newsletter-email-content.
The contentRevision of the read this change is based on
The instruction for the whole email, for example tone and audience; empty to clear
Data field ids (search-custom-fields) every AI block may use; [] for none
Tag ids (search-tags) every AI block may use; [] for none
{ "editorUrl": "stringstring", "contentRevision": "strings", "prompt": "string", "fieldIds": [ "string" ], "tagIds": [ 1 ], "accountId": null }
"replaced": the stored document is a new one; "unchanged": nothing was persisted.
What this write created, with uuids: after "addRow" the row and its columns, after "addModule" the block, plus the contentRevision the next write needs. Empty when nothing was created.
{ "operation": "replaced", "previousContentStatus": "draft", "contentStatus": "draft", "emailId": 0, "contentRevision": "string", "warnings": [ "string" ], "editorUrl": "string", "created": [ { "operation": 0, "type": "row", "uuid": "string", "kind": "string", "columns": [ "string" ] } ], "nextAction": "review_and_publish_content" }