create_marketing_email_draft
Create a marketing email as a draft in HubSpot without sending or scheduling. Specify the email name, subject, and template path to generate a review-ready draft.
Instructions
Create a marketing email in DRAFT state. Nothing is scheduled or sent.
Args: name: internal email name shown in the HubSpot listing. subject: subject line. template_path: path of the email template to render into, e.g. '@marketplace/theme/templates/email/base.html'. Required by HubSpot — widgets have nothing to render into without one. html_body: HTML for the template's main rich-text module. Convenience shortcut for widgets={"main_content": {"body": {"html": ...}}}. widgets: explicit widget tree when the template uses several modules. Keys are the module names defined in the template. Takes precedence over html_body for any overlapping key. from_name: sender display name. Portal default is used if omitted. reply_to: reply-to address. preview_text: preheader shown in the inbox next to the subject. language: ISO 639-1 code. Default 'en'. email_type: BATCH_EMAIL | AB_EMAIL | AUTOMATED_EMAIL. Default BATCH_EMAIL. subscription_type_id: HubSpot subscription type. Marketing emails cannot be sent without one, so set it if you know it. business_unit_id: only for portals using Business Units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| subject | Yes | ||
| widgets | No | ||
| language | No | en | |
| reply_to | No | ||
| from_name | No | ||
| html_body | No | ||
| email_type | No | BATCH_EMAIL | |
| preview_text | No | ||
| template_path | Yes | ||
| business_unit_id | No | ||
| subscription_type_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||