Use Slack in an Agentic Workflow
Audience: Admins, Developers, Solution Architects
Purpose: Explains how to add the Get Username, Send Slack Message, and Send Slack Block Message action steps to an Agentic Workflow and configure their inputs, outputs, and error handling
Overview
Caution: This setup reflects Kizen's default configuration. Your administrator may have customized your layout, so columns or navigation may appear differently. Trial accounts may have limited features.
Build Agentic Workflows to look up Slack® user names from email addresses and send plain-text or formatted Slack messages.
Before You Begin
To use Slack in an Agentic Workflow, you need an active Slack workspace at any membership tier and the Slack integration installed and configured.
See Set Up Slack in Kizen for details.
Add Slack to an Agentic Workflow
To add Slack to an Agentic Workflow:
Choose the function to perform
In the Action Settings section of the Add Action modal, select the Action dropdown menu, and do one of the following:
To get the user name of someone on Slack, select Get Username, and set up the action. For more information, see Set Up a Get Username Action below.
To send a plain-text message to a Slack channel, select Send Slack Message, and set up the action. For more information, see Set Up a Send Slack Message Action below.
To send a rich-text message to a Slack channel, select Get Send Slack Block Message, and set up the action. For more information, see Set Up a Send Slack Block Message Action below.
Set Up a Get Username Action
The Get Username action gives you the user name of any Slack member on your workspace from their email address. The integration returns the user name in the form of a Slack mention, like this: <@U012AB3CD>.
To set up a Get Username Action:
Configure the source for the email address
The action takes one of the following:
The
Team Memberfield of the Slack user in KizenThe email address of the Slack user as a string
Find the Email field in the Script Inputs section of the Add Action modal, select the source of the email address from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

Configure the destination for the Slack user name
The person's user name comes back as a string. Find the User Mention field in the Script Outputs section of the modal, select the destination of the user name from the Output Source dropdown menu, and then configure the destination with the additional controls that appear.

Set Up a Send Slack Message Action
The Send Slack Message action sends a plain-text Slack message to the specified Slack channel on your workspace.
To set up a Send Slack Message action, for each of the fields in the Script Inputs section of the Add Action modal, select the source of the field's value from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

The fields are as follows:
Message
String
The plain-text message to send
Yes
Channel
String
The ID or name of the destination Slack channel
Yes
Set Up a Send Slack Block Message Action
The Send Slack Block Message action sends a formatted or interactive message to the specified Slack channel on your workspace.
To set up a Send Slack Block Message action:
Build the message from Slack blocks
Blocks in Slack are JSON objects that represent message components like text, images, code listings, and videos. Build the message to send as an array of these blocks.
For more details, see Slack's Block Kit documentation.
To build the block payload visually, use Slack's Block Kit Builder.
Configure the sources for the script inputs
For each of the fields in the Script Inputs section of the Add Action modal, select the source of the field's value from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

The fields are as follows:
Channel
String
The ID or name of the destination Slack channel
Yes
Message
String
The message to send in blocks
Yes
What's Next
Continue to Troubleshoot Slack for solutions to common technical problems.
Slack is a registered trademark and service mark of Slack Technologies, Inc. Kizen's Slack integration is not created by, affiliated with, or supported by Slack Technologies, LLC.
Last updated
Was this helpful?



