MindStudio Docs
  • Get Started
    • Overview
    • MindStudio Chrome Extension
    • Quickstart Guide
    • What is an AI Agent?
    • AI Agent Use Cases
  • Free vs. Paid AI Agents
  • Building AI Agents
    • Editor Overview
    • Workflow Generator
    • Writing Prompts
      • Templating
    • AI Models
    • Variables
      • Working with JSON
      • Using Handlebars Templating
    • Dynamic Variables
    • Data Sources
    • Automations
      • Start Block
      • Generate Text Block
      • Generate Image Block
      • Generate Chart Block
      • Generate Asset Block
      • Display Content Block
      • Text to Speech Block
      • Analyze Image Block
      • User Input Block
      • User Context Block
      • Query Data Block
      • Run Function Block
      • Scrape URL Block
      • Extract Text from File Block
      • Post to Slack Block
      • Menu Block
      • Logic Block
      • Checkpoint Block
      • Jump Block
      • Run Workflow Block
      • Terminator Block
    • Integrations
      • Search Bluesky Posts
      • Scrape Facebook Page
      • Scrape Meta Threads Profile
      • Scrape Instagram Comments
      • Scrape Instagram Mentions
      • Scrape Instagram Posts
      • Scrape Instagram Profile
      • Scrape Instagram Reels
      • Create LinkedIn Post
      • Create X Post
      • Search X Posts
      • Search Google
      • Search Google Images
      • Search Google Trends
      • Search Google News
      • Create Google Doc
      • Fetch Google Doc
      • Update Google Doc
      • Create Google Sheet
      • Fetch Google Sheet
      • Update Google Sheet
      • Enrich Company via Domain
      • Find Contact Email for Website
      • Find Email
      • Verify Email
      • Enrich Person via Email
      • Fetch YouTube Captions
      • Fetch YouTube Channel
      • Fetch YouTube Comments
      • Fetch YouTube Video
      • Search YouTube
      • Search YouTube Trends
      • Create Notion Page
      • Update Notion Page
      • Apify
      • Run Scenario
      • Post to Slack
      • HTTP Request
      • Run Node
      • Create Contact
      • Add Note
      • Send Email
      • Send SMS
    • Publishing & Versioning
  • Embedding AI Agents
  • Using Webhooks
  • Workspace Management
    • Workspace Overview
    • Workspace Settings
    • Usage Explorer
    • Billing Settings
    • Account Settings
    • Team Settings & Access Controls
  • Test & Evaluate
    • Testing Suite Overview
    • Evaluations
    • Profiler
    • Debugger
  • Integration Guides
    • Zapier + MindStudio
    • Make.com + MindStudio
    • n8n + MindStudio
  • Developers
    • API Reference
    • NPM Package
    • Custom Workflow Functions
  • Additional Resources
    • Glossary
    • Allowing Access to Mindstudio From Your Network
  • Solutions
    • MindStudio Solutions Partners
    • MindStudio For Developers
    • MindStudio for Enterprises
Powered by GitBook
On this page
  • Configurations
  • Message Type
  • Channel
  • How to Write Slack Blocks
  • Block Basics
  • Types of Blocks
  • Block Elements
  • Composition Objects
  • Design Slack Blocks Using Slack's Block Kit Builder
  • Slack Block Kit Reference Examples
Export as PDF
  1. Building AI Agents
  2. Automations

Post to Slack Block

Send messages from your AI Agent directly to a Slack channel

Last updated 5 months ago

The Post to Slack Block allows you to send messages directly to a Slack channel as part of your workflow. This block is perfect for automating updates, team notifications, or alerts with customizable formatting.

Configurations

Message Type

Choose how the message will be formatted before sending to Slack:

  • Markdown Text: Use Slack-compatible Markdown to create formatted text messages (e.g., *bold*, _italic_, > for blockquotes).

  • Slack Block Kit Blocks: Design a highly customized message layout using Slack's Block Kit. Block Kit enables advanced formatting, such as interactive elements, sections, dividers, and more. Learn more at .

Channel

Connect to a Slack channel where the message will be posted.

  • Click Add to Slack to authenticate and link your Slack account.

  • Once connected, select the desired channel from your Slack workspace.

Message Content

Compose your message in markdown or build your custom Slack block.


How to Write Slack Blocks

Block Basics

Blocks are the building units for creating structured, visually appealing Slack messages. They are stackable components designed to display text, images, buttons, and other elements in a flexible, layout-friendly way.

Types of Blocks

Blocks are the core components used to structure and organize the content of your Slack messages.

Block Type
Description

Actions

Contains interactive elements like buttons and menus.

Context

Displays small contextual information with images or text.

Divider

Adds a horizontal line to separate content.

File

Displays information about remote files.

Header

Displays large, bold text for headings.

Image

Displays standalone images.

Input

Collects user input via various input types.

Rich Text

Allows formatted and structured text.

Section

Displays text alongside optional block elements like buttons or images.

Video

Embeds a video player.

Block Elements

Block elements are the interactive or visual components embedded inside blocks to enrich the functionality of your message.

Element Type
Description

Button

Provides users with a direct path to performing actions like confirming tasks.

Checkboxes

Allows users to select multiple options from a list.

Date/Time Pickers

Enables users to select a date, time, or both.

Dropdown Menus

Lets users choose from a list of options.

Plain Text Input

Allows users to enter freeform text.

Radio Buttons

Limits users to selecting one option.

Image

Displays an image as part of a larger block of content.

Overflow Menu

Provides a button that shows a list of additional options.

Multi-Select Menu

Lets users select multiple options from a dropdown list.

Composition Objects

Composition objects allow you to enhance the structure of blocks and elements, enabling even more customization and interactivity.

Composition Object
Description

Confirmation Dialog Object

Adds a confirmation step to interactive elements like buttons.

Conversations Filter Object

Filters the list of options in conversation selector menus.

Option Object

Represents a single item in a list of options for selection elements.

Option Group Object

Groups options in select menus for better organization.

Text Object

Defines text formatting for different blocks and elements.

Workflow Object

Contains workflow trigger information for running specific workflows.

Slack File Object

Represents a file for use in Image or File blocks.


Design Slack Blocks Using Slack's Block Kit Builder

  • Drag-and-drop elements to stack and organize blocks.

  • Previews to refine your design.

  • Click Copy Payload button to copy and paste JSON into your app.

Slack Block Kit Reference Examples

Example 1: Simple Task Update

{
  "blocks": [
    {
      "type": "header",
      "text": {
        "type": "plain_text",
        "text": "Task Update"
      }
    },
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "*Task Completed:* The task `{{taskName}}` is finished!"
      }
    },
    {
      "type": "divider"
    },
    {
      "type": "actions",
      "elements": [
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text": "View Task"
          },
          "url": "{{taskLink}}"
        }
      ]
    }
  ]
}

Example 2: Collecting User Feedback

{
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "We’d love your feedback! How would you rate your experience?"
      }
    },
    {
      "type": "actions",
      "elements": [
        {
          "type": "radio_buttons",
          "options": [
            {
              "text": {
                "type": "plain_text",
                "text": "Excellent"
              },
              "value": "excellent"
            },
            {
              "text": {
                "type": "plain_text",
                "text": "Good"
              },
              "value": "good"
            },
            {
              "text": {
                "type": "plain_text",
                "text": "Needs Improvement"
              },
              "value": "needs_improvement"
            }
          ]
        }
      ]
    }
  ]
}

Slack blocks are modular and interactive components used to create rich, visually engaging messages in Slack. With the , you can stack and arrange blocks to design powerful message layouts that deliver information or enable user interactions.

Slack’s lets you visually design your blocks, test layouts, and prototype quickly. It provides:

Slack Block Kit Documentation
Slack Block Kit
Block Kit Builder