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

# Send Message To Channel

> Sends messages to specific Slack channels for team communication

Sends messages to specific Slack channels for team communication

|                       |                                 |
| --------------------- | ------------------------------- |
| **App**               | Slack                           |
| **Operation ID**      | `slack_send_message_to_channel` |
| **Type**              | Action                          |
| **Connection**        | `slack` (required)              |
| **Credits per run**   | 1                               |
| **Agent / MCP tool**  | Yes                             |
| **Requires approval** | Yes (write operation)           |

## Inputs

| Field                | Type                       | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                            |
| -------------------- | -------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `channel`            | string or SelectItem       | Yes      | -       | The Slack channel where the message will be sent. This field dynamically loads available channels from your connected Slack workspace. You can select any public channel where the bot has been added, or private channels where the bot is a member. The channel value should be the channel ID, not the channel name. Example: \{'label': 'Channel Name', 'value': 'C1234567890'} or '#channel-name' |
| `message`            | string                     | Yes      | -       | The message content to post in the Slack channel. Supports multi-line text and Markdown formatting, including images (e.g. !\[alt text]\(image\_url)). Don't worry about conversion to Slack's format                                                                                                                                                                                                  |
| `thread_id`          | string                     | No       | -       | Optional thread ID to reply to an existing message thread. Use this to continue a conversation in a thread rather than posting a new message.                                                                                                                                                                                                                                                          |
| `include_attachment` | boolean                    | No       | `False` | Whether to include data from previous workflow steps as a file attachment. When enabled, you can attach data in various formats (CSV, PDF, TXT, JSON) to provide additional context or detailed reports alongside your message.                                                                                                                                                                        |
| `attachment_format`  | string or SelectableOption | No       | -       | Format for the attachment file. Available options: 'csv' - Good for tabular data, easy to open in Excel/Sheets 'pdf' - Professional format for reports and documents   'txt' - Simple text format for logs or plain data 'json' - Structured data format for technical teams  Required when include\_attachment is true.                                                                               |
| `attachment_data`    | any                        | No       | -       | The data to include in the attachment. This is mainly the output from upstream workflow nodes. The data will be automatically converted to the selected attachment format. Don't worry about conversion details. Required when include\_attachment is true.                                                                                                                                            |
| `attachment_name`    | string                     | No       | -       | Name for the attachment file (without extension). The extension will be added automatically based on the selected attachment format.  Use descriptive names that help recipients understand the content. No spaces allowed - use hyphens or underscores instead.  Example: 'daily-sales-report' or 'google\_ads\_performance'  Required when include\_attachment is true.                              |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `str`

Returns success confirmation message.
