SlackBlockBuilder
Slack Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 6.2.0 and later.
SlackBlockBuilder will format a given Slack block into a format readable by the SlackV3 integration. The script will also send the block to the given destination.
The Slack Block Kit Builder can be found here.
#
Script DataName | Description |
---|---|
Script Type | python3 |
Tags | slack |
Cortex XSOAR Version | 6.2.0 |
#
DependenciesThis script uses the following commands and scripts.
- send-notification
#
InputsArgument Name | Description |
---|---|
blocks_url | The URL copied from Slack's Block Builder. |
list_name | The name of the Cortex XSOAR list to use as the block's input. |
user | The Slack user to which to send the message. Can be either an email address or a Slack user name. |
channel | The Slack channel to send the message to. |
channel_id | The Slack channel ID to send the message to. |
task | The task to close with the reply. If empty, then no playbook tasks will be closed. |
replyEntriesTag | Tag to add to email reply entries. |
persistent | Indicates whether to use one-time entitlement or persistent entitlement. |
reply | The reply to send to the user. Use the templates {user} and {response} to incorporate these in the reply. (i.e., "Thank you {user}. You have answered {response}.") |
lifetime | Time until the question expires. For example - 1 day. When it expires, a default response is sent. |
defaultResponse | Default response in case the question expires. |
slackInstance | The instance of SlackV3 this script should use. |
#
OutputsPath | Description | Type |
---|---|---|
SlackBlockState | The State of the response from the user will be stored under this context path. | unknown |