Workflow mention element
This is a rich text element, compatible only with the rich_text block. It must be used within the rich_text_list, rich_text_quote, or rich_text_section block element within the rich_text block's elements array.
Fields
| Field | Type | Description | Required? |
|---|---|---|---|
type | String | The type of object; in this case, "workflow_mention". | Required |
workflow_id | String | The ID of the workflow to link to. | Required |
function_trigger_id | String | The ID of the function trigger for the workflow. | Required |
text | String | The display text for the workflow link. | Required |
url | String | URL of the workflow. | Optional |
channel_id | String | The encoded channel ID where this workflow mention lives. | Optional |
ts | String | The encoded message timestamp where this workflow mention lives. | Optional |
style | Object | An object of optional boolean properties that dictate style: bold, italic, strike, highlight, client_highlight, unlink, and underline. | Optional |
Example
- JSON
{
"blocks": [
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "workflow_mention",
"workflow_id": "Wf123ABC456",
"function_trigger_id": "Ft123ABC456",
"text": "Run workflow"
}
]
}
]
}
]
}