> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Smartlead Save Campaign Sequences: Inputs, Cost & CLI

> Creating and updating campaign sequences. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=smartlead_save_campaign_sequences:{"campaign_id":"{{campaign_id}}","sequences":"{{sequences}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                  | Type                | Required | Default | Description                                                        |
| --------------------- | ------------------- | -------- | ------- | ------------------------------------------------------------------ |
| `payload.campaign_id` | `string \| integer` | Yes      |         | Smartlead campaign identifier (number or positive numeric string). |
| `payload.sequences`   | `array`             | Yes      |         | List of campaign sequences payload blocks.                         |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Smartlead campaign sequence save input.",
    "properties": {
      "campaign_id": {
        "description": "Smartlead campaign identifier (number or positive numeric string).",
        "anyOf": [
          {
            "type": "string",
            "description": "Smartlead campaign identifier (number or positive numeric string).",
            "minLength": 1,
            "pattern": "^\\d+$"
          },
          {
            "type": "integer",
            "description": "Smartlead campaign identifier (number or positive numeric string).",
            "minimum": 1
          }
        ]
      },
      "sequences": {
        "type": "array",
        "description": "List of campaign sequences payload blocks.",
        "minItems": 1,
        "items": {
          "type": "object",
          "description": "Smartlead campaign sequence input block.",
          "properties": {
            "id": {
              "type": "integer"
            },
            "seq_number": {
              "type": "integer",
              "description": "Sequence order position.",
              "minimum": 1
            },
            "seq_delay_details": {
              "type": "object",
              "properties": {
                "delay_in_days": {
                  "type": "integer",
                  "description": "Days to delay before this sequence message.",
                  "minimum": 0
                }
              },
              "required": [
                "delay_in_days"
              ],
              "additionalProperties": false
            },
            "seq_variants": {
              "type": "array",
              "items": {
                "type": "object",
                "description": "Smartlead campaign sequence variant input.",
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "subject": {
                    "type": "string",
                    "allowsTemplatePlaceholders": true
                  },
                  "email_body": {
                    "type": "string",
                    "minLength": 1,
                    "allowsTemplatePlaceholders": true
                  },
                  "variant_label": {
                    "type": "string",
                    "description": "variant_label is required.",
                    "minLength": 1
                  }
                },
                "required": [
                  "email_body",
                  "variant_label"
                ],
                "additionalProperties": false
              }
            },
            "subject": {
              "type": "string",
              "allowsTemplatePlaceholders": true
            },
            "email_body": {
              "type": "string",
              "allowsTemplatePlaceholders": true
            }
          },
          "required": [
            "seq_number",
            "seq_delay_details"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "campaign_id",
      "sequences"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

Output schema is not available yet.

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "description": "Raw Smartlead campaign sequence save payload."
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute smartlead_save_campaign_sequences --payload '{
  "campaign_id": "string",
  "sequences": "array"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
