The Slack Post Message action is used to send a message to a specific channel in Slack. It enables direct Slack communication through your application. It is particularly preferred for internal team notifications, automated messaging scenarios, or process-based notifications.
Technical Specifications
Message Sending: The Slack Post Message action sends a message to a Slack channel with the specified channel_id and text parameters.
Parameter Compatibility:
settings (Object – required): Configuration information required for Slack integration.
channel_id (String – required): The ID of the Slack channel to which the message will be sent.
text (String – required): The content of the message to be sent.
Value Binding: Fixed values can be assigned to parameters, or dynamic values (Action Result, Current, Form Component, Screen Input, etc.) can be bound via the Symbol Picker tool.
Web & Mobile Support: This action can be used in both web and mobile applications.
Slack Post Message Action Application Steps
1. Defining the Action in UI Design
Open your project on the Kuika platform.
In the UI Design module, select the screen where the message sending process will take place.
Add a button (e.g., “Send Message”).
Select the button and add the OnClick → Slack → Post Message action from the + ADD ACTION menu.
2. Configuring Parameters
settings (required): Select the defined settings for Slack integration.
channel_id (required): The channel ID where the message will be sent (in C12345 format).
text (required): The text of the message to be sent. It can be taken from a form input field or given as a fixed value.
Use Case: Sending Notifications to a Slack Channel
In a task management application, an automatic notification can be sent to a Slack channel when a user completes a task.
Steps:
Add a button in UI Design: “Complete Task”.
Add the OnClick → Slack→ Slack Post Message action.
Link the channel_id value to the relevant channel ID.
Set the text parameter dynamically to “{User} completed the task”.
The message will automatically appear in the Slack channel.
Slack Post Message Advanced Customizations
Dynamic Messages: User name, date, or transaction information can be embedded in the message.
Conditional Delivery: Can be automatically triggered when a specific transaction is completed.
Chaining with Other Actions: When a form submission is completed, it can be saved to the database and a message can be sent to Slack.
Technical Risks and Controls
settings must not be empty.
channel_id must be the correct Slack channel ID (not the channel name, but the ID).
The text parameter cannot be empty; otherwise, the message will not be sent.
Users' Slack API permissions must be set correctly.