Skip to content

generateEngagementCopy

Write copy for an engagement template with AI. Returns the named slots the editor fills, or a block with the reason.

marketing {
templates {
generateEngagementCopy(
medium: EngagementMedium
request: AiGenerateRequest!
templateId: Guid
): AiGenerateResult
}
}

The medium, when there is no saved template. A saved template uses its own.

What to write: the copy variant and the event it is for.

The template. Omitted before the template’s first save, when medium is given instead.

The copy that AI wrote, as named slots, or a block with its reason.