Skip to main content

How to send a message in a Slack channel

Updated this week

Summary

This guide explains how to configure the Slack — Send message to channel action in Astra. This action allows your agent to automatically send messages to a selected Slack channel on your behalf.

The message content is generated dynamically based on the agent’s context and instructions. Once configured, the agent can send notifications, updates, or alerts to Slack whenever the defined conditions are met.

Instructions

Follow these steps to configure the Slack — Send message to channel action in Astra.

Before starting, make sure your Slack workspace is connected.

  • If you have not connected Slack yet, follow this guide: Learn how to connect your Slack workspace to Astra.

Open the Slack action template

  • Log into your Astra account.

  • Go to the Action Library.

  • Select Slack — Send message to channel.

  • Open the Configuration screen to set up the action.

You will configure the following sections on this page.

Step 1: Configure the action intent

In the Action intent section:

  • Enter a clear Action name.

  • Write the Intent that explains when the agent should send the Slack message.

Why this matters

  • The intent helps the agent understand when to trigger the action.

  • Clear instructions improve how accurately the agent decides to send a message.

For example, you might instruct the agent to send a Slack message when a new lead is captured or when a workflow completes.

Step 2: Select the Slack workspace

In the Slack workspace section:

  • Choose the connected Slack workspace from the dropdown list.

What happens next

  • The action will send messages using the selected workspace.

  • Messages will appear in Slack as if they were sent on your behalf.

If your workspace is not listed, you need to connect Slack first.

Step 3: Select the Slack channel

In the Channel section:

  • Choose the Slack channel where messages should be sent.

How this works

  • The agent will always send messages to the selected channel.

  • The channel must belong to the workspace you selected.

  • You must have access to the channel in Slack for it to appear in the list.

What happens when the action runs

When the configured conditions are met:

  • The agent generates a message using its current context and instructions.

  • The message is posted automatically to the selected Slack channel.

  • The message appears as sent from your connected Slack account.

This allows your workflows to automatically notify teams, share updates, or trigger discussions inside Slack.

Did this answer your question?