Create Flow Email
create_flow_emailCreates a new reusable Flow Email with a complete native inviomail contentJson document. Flow Emails have no sender setting. Configure the central sender with top-level definition.senderIdentityId in create_flow or update_flow_draft (null or omitted uses the tenant default); optionally set senderIdentityId on a send_flow_email node to override it for that step only. Test sends use the tenant default. Use validate_flow_email_content first and pass normalizedContent when valid. idempotencyKey is required so retries do not create duplicates. Button blocks support bold (default true) and optional fontSize (integer 10–30 px) for desktop; omit fontSize to inherit tenant body typography. Optional mobileFontSize (integer 16–24 px) controls mobile text separately, with tenant bodyMobilePx as the readability floor; omit it to retain the mobile standard. Long button labels wrap automatically. Own contact fields are supported only in heading.text and text.html, including two-column children: {{custom.key}} or {{custom.key | default: "replacement text"}}. Read list_contact_fields first and use its permanent keys; offer active fields for new insertion. Existing archived references still resolve. Missing/blank values use the fallback or empty text. Escape fallback JSON and HTML correctly; do not split a token with inline markup. Tenant validation reports invalid syntax, unsupported locations and unknown keys. Custom field placeholders are not supported in subjects, preheaders, buttons, URLs, footers, signatures or DOI emails.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"subject": "<subject>",
"contentJson": "<contentJson>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_flow_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| subject | Yes | ||
| contentJson | Yes | Initial complete Flow Email contentJson document. For type button (also in two-column children), bold defaults to true and optional fontSize is an integer 10–30 px for desktop; omit fontSize for tenant body typography. Optional mobileFontSize (integer 16–24 px) controls mobile text separately, with tenant bodyMobilePx as the readability floor; omit it to retain the mobile standard. Long button labels wrap automatically. | |
| previewText | No | ||
| idempotencyKey | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| impact | Yes | ||
| flowEmail | Yes | ||
| requestId | Yes | ||
| idempotentReplay | Yes |