Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jun 24, 2026 7:46:46 AM
Jul 7, 2026 9:16:02 AM
This article walks through Send Message To Slack Channel as an action, a Qlik Automate template that is now available in the template gallery.
This template is a good starting point if you want to:
The template is available in the template picker. Go to Add new > New automation > Search templates, search for Send Message To Slack Channel as an action, and select Use template.
You will find a version of this automation attached to this article: "Send-Message-To Slack-Channel-as-an-action.json".
Content
When this automation is called as an action, it does the following:
Before using this template, make sure you have:
# optional
This is the entry point of the automation.
How it works:
The Start block is set to manual run mode, but in practice, this automation is meant to be invoked as an action rather than run on a schedule. The Inputs block immediately following the Start block defines the two values every caller must provide:
These two fields are effectively the contract for this automation. Whatever calls the automation (Qlik Answers Assistant, a Qlik MCP tool call, or a button on a Qlik Sense Application Sheet) has to supply both.
What you need to configure:
Nothing to get started. You can edit the field labels or help text, but keep both fields required since every later block depends on them.
How it works:
This block calls Slack's API to retrieve every public and private channel visible to your connection. It's needed because Slack's Send Message endpoint expects a channel ID, not a channel name; this block is the lookup table that makes that translation possible later in the flow.
What you need to configure:
public_channel and private_channel types).
How it works:
This condition checks whether the previous block returned an API error (an error response body or status).
Yes branch (List Channels failed):
The automation shows Slack's raw error response using an Output block and updates the run title to 'List Channels block failed with an error message' using an Update Run Title block.
No branch (List Channels succeeded):
The automation continues to the filter step to look up the channel.
What you need to configure:
Nothing. This condition is pre-built error handling.
How it works:
This block filters the full channel list down to whichever entry's name exactly matches the channel name you provided, after stripping off a leading # (if you included one). The matching item (there should be at most one, since channel names are unique) is looped through, and its ID is written into a variable called slackChannelId. If nothing matches, slackChannelId stays empty, since it was initialized that way at the start of the run.
What you need to configure:
Nothing. This step runs automatically based on your "Slack channel" input.
How it works:
This condition checks whether slackChannelId ended up empty.
Yes branch (channel found):
The automation moves on to send the message.
No branch (channel not found):
The automation shows I can't find this channel... Please try again using an Output block, updates the run title with the same message using the Update Run Title block, and then ends without sending anything.
What you need to configure:
Nothing. This condition is pre-built.
How it works:
This block posts your message to the channel ID resolved in Step 4, using the text from the Slack message input. The message is sent with the display name Qlik Automate as a tool, so anyone reading it in Slack can tell at a glance it came from this automation rather than a person. A few optional Slack parameters in this block, like an icon or thread reply, are left blank by default and can be filled in for richer messages.
What you need to configure:
How it works:
This condition checks the ok flag Slack returns from the Send Message endpoint.
Yes branch:
The automation shows 'Message was sent successfully ' and updates the run title to match.
No branch:
The automation shows Slack's raw error response body using an Output block and updates the run title to Send Message block failed with an error message using Update Run Title block, so you can see exactly why Slack rejected it.
What you need to configure:
Nothing. This condition is pre-built.
Every outcome in this automation (a failed channel lookup, a channel that couldn't be found, a successful message send, or a failure) updates the automation run title to match. That means you can scan the automation's run history and immediately tell what happened in each run without opening a single run history, which is especially useful once this automation is being called repeatedly by an Assistant, MCP tool, or button rather than run by hand.
You can adapt this automation to fit your own needs:
general); the leading # is optional and is removed automatically.
The automation fails with the following error messages:
"I can't find this channel... Please try again":
"List Channels block failed with an error message":
"Send Message block failed with an error message":
This template gives you a ready-to-call building block for posting Slack messages as an action from anywhere in Qlik, the Qlik Answers Assistant, a Qlik MCP-connected agent, or a simple button on a Qlik Sense Application. By resolving channel names to IDs automatically and reporting a clear success or failure result at every step, it keeps the calling side simple: pass in a channel and a message, and get an outcome back. You can adapt it by changing the destination platform or swapping Slack out for email, Microsoft Teams, or adding richer message options.