smartlead_save_campaign_sequence
Save email sequences for campaigns by defining email variants, timing delays, and distribution methods to optimize outreach performance.
Instructions
Save a sequence of emails for a campaign.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
campaign_id | Yes | ID of the campaign | |
sequence | Yes | Sequence of emails to send |
Input Schema (JSON Schema)
{
"properties": {
"campaign_id": {
"description": "ID of the campaign",
"type": "number"
},
"sequence": {
"description": "Sequence of emails to send",
"items": {
"properties": {
"lead_distribution_percentage": {
"description": "What sample % size of the lead pool to use to find the winner (for AI_EQUAL)",
"type": "number"
},
"seq_delay_details": {
"description": "Delay details for this sequence",
"properties": {
"delay_in_days": {
"description": "Days to wait before sending this email",
"type": "number"
}
},
"type": "object"
},
"seq_number": {
"description": "The sequence number (order) of this email",
"type": "number"
},
"seq_variants": {
"description": "Variants of the email in this sequence",
"items": {
"properties": {
"email_body": {
"description": "Email body content in HTML",
"type": "string"
},
"subject": {
"description": "Email subject line",
"type": "string"
},
"variant_distribution_percentage": {
"description": "Percentage of leads to receive this variant (for MANUAL_PERCENTAGE)",
"type": "number"
},
"variant_label": {
"description": "Label for this variant (A, B, C, etc.)",
"type": "string"
}
},
"required": [
"subject",
"email_body",
"variant_label"
],
"type": "object"
},
"type": "array"
},
"variant_distribution_type": {
"description": "How to distribute variants",
"enum": [
"MANUAL_EQUAL",
"MANUAL_PERCENTAGE",
"AI_EQUAL"
],
"type": "string"
},
"winning_metric_property": {
"description": "Metric to use for determining the winning variant (for AI_EQUAL)",
"enum": [
"OPEN_RATE",
"CLICK_RATE",
"REPLY_RATE",
"POSITIVE_REPLY_RATE"
],
"type": "string"
}
},
"required": [
"seq_number",
"seq_delay_details",
"variant_distribution_type",
"seq_variants"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"campaign_id",
"sequence"
],
"type": "object"
}