> ## 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.

# Slack Post Message: Inputs, Cost & CLI Example

> Send a Slack message to a channel, DM, or App Home. 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=slack_post_message:{"channel":"{{channel}}","text":"{{text}}"}' --json
```

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

## Input Schema

| Name                   | Type      | Required | Default | Description                                                                          |
| ---------------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------ |
| `payload.channel`      | `string`  | Yes      |         | Slack channel ID (for example C0123456789).                                          |
| `payload.text`         | `string`  | Yes      |         | Message text. When blocks are provided, used as notification/accessibility fallback. |
| `payload.blocks`       | `array`   | No       |         |                                                                                      |
| `payload.unfurl_links` | `boolean` | No       |         |                                                                                      |
| `payload.unfurl_media` | `boolean` | No       |         |                                                                                      |
| `payload.mrkdwn`       | `boolean` | No       |         |                                                                                      |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "channel": {
        "type": "string",
        "description": "Slack channel ID (for example C0123456789)."
      },
      "text": {
        "type": "string",
        "description": "Message text. When blocks are provided, used as notification/accessibility fallback."
      },
      "blocks": {
        "type": "array",
        "maxItems": 50,
        "items": {
          "anyOf": [
            {
              "type": "object",
              "description": "Interactive elements group.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "actions"
                },
                "elements": {
                  "type": "array",
                  "maxItems": 25,
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": true
                  }
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "elements"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Contextual info with text and images.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "context"
                },
                "elements": {
                  "type": "array",
                  "maxItems": 10,
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "plain_text"
                          },
                          "text": {
                            "type": "string",
                            "description": "Plain text content.",
                            "maxLength": 3000
                          },
                          "emoji": {
                            "type": "boolean",
                            "description": "Escape emoji into colon format."
                          }
                        },
                        "required": [
                          "type",
                          "text"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "mrkdwn"
                          },
                          "text": {
                            "type": "string",
                            "description": "Markdown-formatted text content.",
                            "maxLength": 3000
                          },
                          "verbatim": {
                            "type": "boolean",
                            "description": "When true, URLs and channel references are not auto-linked."
                          }
                        },
                        "required": [
                          "type",
                          "text"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "image"
                          },
                          "image_url": {
                            "type": "string",
                            "description": "Publicly hosted image URL."
                          },
                          "alt_text": {
                            "type": "string",
                            "description": "Alt text for accessibility."
                          }
                        },
                        "required": [
                          "type",
                          "image_url",
                          "alt_text"
                        ],
                        "additionalProperties": true
                      }
                    ]
                  }
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "elements"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Feedback buttons and icon buttons.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "context_actions"
                },
                "elements": {
                  "type": "array",
                  "maxItems": 5,
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": true
                  }
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "elements"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Visual separator between blocks.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "divider"
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Displays a remote file.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "file"
                },
                "source": {
                  "type": "string",
                  "description": "Currently always \"remote\"."
                },
                "external_id": {
                  "type": "string",
                  "description": "External unique ID for the file."
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "source",
                "external_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Large bold heading text.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "header"
                },
                "text": {
                  "type": "object"
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Displays an image.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "image"
                },
                "alt_text": {
                  "type": "string",
                  "description": "Plain text summary of the image.",
                  "maxLength": 2000
                },
                "image_url": {
                  "type": "string",
                  "description": "Public image URL.",
                  "maxLength": 3000
                },
                "slack_file": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "title": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "plain_text"
                    },
                    "text": {
                      "type": "string",
                      "description": "Plain text content.",
                      "maxLength": 3000
                    },
                    "emoji": {
                      "type": "boolean",
                      "description": "Escape emoji into colon format."
                    }
                  },
                  "required": [
                    "type",
                    "text"
                  ],
                  "additionalProperties": false
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "alt_text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Collects user input in modals.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "input"
                },
                "label": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "plain_text"
                    },
                    "text": {
                      "type": "string",
                      "description": "Plain text content.",
                      "maxLength": 3000
                    },
                    "emoji": {
                      "type": "boolean",
                      "description": "Escape emoji into colon format."
                    }
                  },
                  "required": [
                    "type",
                    "text"
                  ],
                  "additionalProperties": false
                },
                "element": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": true
                },
                "hint": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "plain_text"
                    },
                    "text": {
                      "type": "string",
                      "description": "Plain text content.",
                      "maxLength": 3000
                    },
                    "emoji": {
                      "type": "boolean",
                      "description": "Escape emoji into colon format."
                    }
                  },
                  "required": [
                    "type",
                    "text"
                  ],
                  "additionalProperties": false
                },
                "optional": {
                  "type": "boolean"
                },
                "dispatch_action": {
                  "type": "boolean"
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "label",
                "element"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Markdown text block for LLM responses.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "markdown"
                },
                "text": {
                  "type": "string",
                  "description": "Markdown-formatted text content.",
                  "maxLength": 12000
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Structured rich text with sections, lists, quotes.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "rich_text"
                },
                "elements": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "rich_text_section"
                          },
                          "elements": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": true
                            }
                          }
                        },
                        "required": [
                          "type",
                          "elements"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "rich_text_list"
                          },
                          "style": {
                            "type": "string",
                            "enum": [
                              "bullet",
                              "ordered"
                            ]
                          },
                          "elements": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "const": "rich_text_section"
                                },
                                "elements": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": true
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "elements"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "indent": {
                            "type": "integer"
                          },
                          "offset": {
                            "type": "integer"
                          },
                          "border": {
                            "anyOf": [
                              {
                                "type": "number",
                                "const": 0
                              },
                              {
                                "type": "number",
                                "const": 1
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "style",
                          "elements"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "rich_text_quote"
                          },
                          "elements": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": true
                            }
                          },
                          "border": {
                            "anyOf": [
                              {
                                "type": "number",
                                "const": 0
                              },
                              {
                                "type": "number",
                                "const": 1
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "elements"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "rich_text_preformatted"
                          },
                          "elements": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": true
                            }
                          },
                          "border": {
                            "anyOf": [
                              {
                                "type": "number",
                                "const": 0
                              },
                              {
                                "type": "number",
                                "const": 1
                              }
                            ]
                          },
                          "language": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "elements"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "elements"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Text block with optional fields and accessory.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "section"
                },
                "text": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "plain_text"
                        },
                        "text": {
                          "type": "string",
                          "description": "Plain text content.",
                          "maxLength": 3000
                        },
                        "emoji": {
                          "type": "boolean",
                          "description": "Escape emoji into colon format."
                        }
                      },
                      "required": [
                        "type",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "mrkdwn"
                        },
                        "text": {
                          "type": "string",
                          "description": "Markdown-formatted text content.",
                          "maxLength": 3000
                        },
                        "verbatim": {
                          "type": "boolean",
                          "description": "When true, URLs and channel references are not auto-linked."
                        }
                      },
                      "required": [
                        "type",
                        "text"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "fields": {
                  "type": "array",
                  "maxItems": 10,
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "plain_text"
                          },
                          "text": {
                            "type": "string",
                            "description": "Plain text content.",
                            "maxLength": 3000
                          },
                          "emoji": {
                            "type": "boolean",
                            "description": "Escape emoji into colon format."
                          }
                        },
                        "required": [
                          "type",
                          "text"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "mrkdwn"
                          },
                          "text": {
                            "type": "string",
                            "description": "Markdown-formatted text content.",
                            "maxLength": 3000
                          },
                          "verbatim": {
                            "type": "boolean",
                            "description": "When true, URLs and channel references are not auto-linked."
                          }
                        },
                        "required": [
                          "type",
                          "text"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "accessory": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": true
                },
                "expand": {
                  "type": "boolean"
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Tabular data display.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "table"
                },
                "rows": {
                  "type": "array",
                  "maxItems": 100,
                  "items": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "additionalProperties": true
                    }
                  }
                },
                "column_settings": {
                  "type": "array",
                  "maxItems": 20,
                  "items": {
                    "type": "object",
                    "properties": {
                      "align": {
                        "type": "string",
                        "enum": [
                          "left",
                          "center",
                          "right"
                        ]
                      },
                      "is_wrapped": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "rows"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Task card with status tracking.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "task_card"
                },
                "task_id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "in_progress",
                    "complete",
                    "error"
                  ]
                },
                "details": {
                  "type": "object",
                  "additionalProperties": {}
                },
                "output": {
                  "type": "object",
                  "additionalProperties": {}
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": true
                  }
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "task_id",
                "title",
                "status"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Collection of related tasks.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "plan"
                },
                "title": {
                  "type": "string"
                },
                "tasks": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": {}
                  }
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "title"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "description": "Embedded video player.",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "video"
                },
                "video_url": {
                  "type": "string",
                  "description": "HTTPS embeddable video URL."
                },
                "thumbnail_url": {
                  "type": "string",
                  "description": "Video thumbnail image URL."
                },
                "alt_text": {
                  "type": "string",
                  "description": "Accessibility description."
                },
                "title": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "plain_text"
                    },
                    "text": {
                      "type": "string",
                      "description": "Plain text content.",
                      "maxLength": 3000
                    },
                    "emoji": {
                      "type": "boolean",
                      "description": "Escape emoji into colon format."
                    }
                  },
                  "required": [
                    "type",
                    "text"
                  ],
                  "additionalProperties": false
                },
                "title_url": {
                  "type": "string"
                },
                "author_name": {
                  "type": "string",
                  "maxLength": 50
                },
                "provider_name": {
                  "type": "string"
                },
                "provider_icon_url": {
                  "type": "string"
                },
                "description": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "plain_text"
                    },
                    "text": {
                      "type": "string",
                      "description": "Plain text content.",
                      "maxLength": 3000
                    },
                    "emoji": {
                      "type": "boolean",
                      "description": "Escape emoji into colon format."
                    }
                  },
                  "required": [
                    "type",
                    "text"
                  ],
                  "additionalProperties": false
                },
                "block_id": {
                  "type": "string",
                  "description": "Unique identifier for this block within the message.",
                  "maxLength": 255
                }
              },
              "required": [
                "type",
                "video_url",
                "thumbnail_url",
                "alt_text",
                "title"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": true
            }
          ]
        }
      },
      "unfurl_links": {
        "type": "boolean"
      },
      "unfurl_media": {
        "type": "boolean"
      },
      "mrkdwn": {
        "type": "boolean"
      }
    },
    "required": [
      "channel",
      "text"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                   |
| ------------- | -------- | -------- | ------- | ----------------------------- |
| `result.data` | `record` | Yes      |         | Provider response payload.    |
| `result.meta` | `record` | No       |         | Additional response metadata. |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "additionalProperties": {}
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata.",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute slack_post_message --payload '{
  "channel": "string",
  "text": "string"
}' --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`.
