Links

Slack Bot

This page provides an overview of the Slack Bot connection, which enables you to retrieve information from a connected Slack account.
This page outlines the following aspects of the Slack Bot connection:

Configuration requirements

The only configuration requirements for the Slack Bot connection are:
  • Connection name: Name of your connection. This appears as a title for your connection tile in the Connect tab.
  • Authenticate: Opens an authentication window for you to sign into your Slack account.

Available actions

The Slack Bot connection enables you to add the following actions to the connection:

listChannels

The listChannels action enables you to retrieve of a list of channels in your Slack account. Its only configurable parameter is Action Name, which determines the component's name in your component library.

joinChannel

The joinChannel action enables you to join a new Slack channel from within your app. The following table outlines its parameters:
Parameter
Type
Description
Action Name
string
Name of the custom component action. Determines the component's name in your component library.
channelId
string
ID number of the channel you want to join.

leaveChannel

The leaveChannel action enables you to leave a Slack channel from within your app. The following table outlines its parameters:
Parameter
Type
Description
Action Name
string
Name of the custom component action. Determines the component's name in your component library.
channelId
string
ID number of the channel you want to leave.

listUsers

The listUsers action retrieves a list of users in your Slack channel. Its only configurable parameter is Action Name, which determines the component's name in your component library.

messageChannel

The messageChannel action enables you to send a message to a Slack channel from Uiflow. The following table outlines its parameters:
Parameter
Type
Description
Action Name
string
Name of the custom component action. Determines the component's name in your component library.
channel
string
Name of the channel you want to message.
message
string
Message you want to send to the channel.

messageUser

The messageUser action enables you to send a message to a Slack user from Uiflow. The following table outlines its parameters:
Parameter
Type
Description
Action Name
string
Name of the custom component action. Determines the component's name in your component library.
userId
string
ID of the user you want to message.
message
string
Message you want to send to the user.

messageGroup

The messageGroup action enables you to send a message to a Slack group from Uiflow. The following table outlines its parameters:
Parameter
Type
Description
Action Name
string
Name of the custom component action. Determines the component's name in your component library.
groupId
string
ID of the group you want to message.
message
string
Message you want to send to the group.

messageMe

The messageMe action enables you to send a message to yourself in Slack from Uiflow. The following table outlines its parameters:
Parameter
Type
Description
Action Name
string
Name of the custom component action. Determines the component's name in your component library.
message
string
Message you want to send to yourself.

Component preview

The component preview shows how your connection component appears in the Logic view of your Uiflow application.
This section outlines how to:

Change the component name

To change the component name, navigate to the Edit Action section and adjust the Action Name field.

Display parameters on the component

To display parameters on your connection component, click Expose above the parameter fields. Any selected parameters appear as nodes on the left side of the connection component.