Skip to content

Instantly share code, notes, and snippets.

@tsuharesu
Last active November 3, 2020 20:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsuharesu/7b2ec7325e8c78ba150c65e08d066d95 to your computer and use it in GitHub Desktop.
Save tsuharesu/7b2ec7325e8c78ba150c65e08d066d95 to your computer and use it in GitHub Desktop.
A simple workflow to send some kind anonymous words for your colleagues.
{
"source_id": "302598399050397860",
"version": "1",
"workflow": {
"name": "Words from the Heart",
"blueprint": {
"version": "1",
"trigger": {
"type": "channel_action",
"id": "4bde8971-a75a-4310-b5ec-efceeea0a91a",
"config": {
"name": "Send a Kind Message",
"channels": [
""
],
"callback_id": "c6a9dc43-d901-421b-a693-66730aa83cf5",
"description": "Send a Kind Message"
}
},
"steps": [
{
"type": "dialog",
"id": "eb891260-f0c8-497d-b2b9-6649fab00f1e",
"config": {
"dialog_title": "Make someone's day",
"dialog_elements": [
{
"name": "f04f563f-b44b-4177-861a-d883bbe660c2",
"type": "select",
"label": "Who's going to receive?",
"optional": false,
"data_source": "users"
},
{
"name": "c00dc524-6176-4fdb-932e-114bbc5826bc",
"type": "textarea",
"label": "What's your kind message?",
"optional": false
}
],
"dialog_submit_label": "",
"delivery_button_label": "Open form",
"delivery_message_text": "Hello! To get started, please fill in this form."
}
},
{
"type": "message",
"id": "e85d476f-cf25-4aa8-ac31-641c1c3178c7",
"config": {
"user": {
"ref": "eb891260-f0c8-497d-b2b9-6649fab00f1e==f04f563f-b44b-4177-861a-d883bbe660c2==user"
},
"has_button": false,
"message_text": "{{eb891260-f0c8-497d-b2b9-6649fab00f1e==c00dc524-6176-4fdb-932e-114bbc5826bc==text}}"
}
},
{
"type": "message",
"id": "3e872eef-3939-4e65-8cdd-bcd323cdca84",
"config": {
"user": {
"ref": "4bde8971-a75a-4310-b5ec-efceeea0a91a==user"
},
"has_button": false,
"message_text": ":sparkles: Thank you so much for spreading joy! :sparkles:\n\n_“Thousands of candles can be lit from a single candle, and the life of the candle will not be shortened. Happiness never decreases by being shared.“_"
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment