Created
July 24, 2022 12:42
-
-
Save srz-zumix/a7b739529debd8f173d8e71a102ae8ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Slack Free looper", | |
| "flow": [ | |
| { | |
| "id": 12, | |
| "module": "util:SetVariables", | |
| "version": 1, | |
| "parameters": {}, | |
| "mapper": { | |
| "variables": [ | |
| { | |
| "name": "searchDate", | |
| "value": "{{formatDate(addDays(now; -8); \"YYYY-MM-DD\")}}" | |
| }, | |
| { | |
| "name": "searchChannel", | |
| "value": "random" | |
| } | |
| ], | |
| "scope": "roundtrip" | |
| }, | |
| "metadata": { | |
| "designer": { | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "restore": { | |
| "expect": { | |
| "variables": { | |
| "items": [ | |
| null, | |
| null | |
| ] | |
| }, | |
| "scope": { | |
| "label": "One cycle" | |
| } | |
| } | |
| }, | |
| "expect": [ | |
| { | |
| "name": "variables", | |
| "type": "array", | |
| "label": "Variables", | |
| "spec": [ | |
| { | |
| "name": "name", | |
| "label": "Variable name", | |
| "type": "text", | |
| "required": true | |
| }, | |
| { | |
| "name": "value", | |
| "label": "Variable value", | |
| "type": "any" | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "scope", | |
| "type": "select", | |
| "label": "Variable lifetime", | |
| "required": true, | |
| "validate": { | |
| "enum": [ | |
| "roundtrip", | |
| "execution" | |
| ] | |
| } | |
| } | |
| ], | |
| "interface": [ | |
| { | |
| "name": "searchDate", | |
| "label": "searchDate", | |
| "type": "any" | |
| }, | |
| { | |
| "name": "searchChannel", | |
| "label": "searchChannel", | |
| "type": "any" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "id": 1, | |
| "module": "slack:SearchMessages", | |
| "version": 4, | |
| "parameters": { | |
| "__IMTCONN__": 276911 | |
| }, | |
| "mapper": { | |
| "sort": "timestamp", | |
| "limit": "30", | |
| "query": "on:{{12.searchDate}}", | |
| "sort_dir": "asc" | |
| }, | |
| "metadata": { | |
| "designer": { | |
| "x": 300, | |
| "y": 0 | |
| }, | |
| "restore": { | |
| "expect": { | |
| "sort": { | |
| "mode": "chose", | |
| "label": "Timestamp" | |
| }, | |
| "sort_dir": { | |
| "mode": "chose", | |
| "label": "Ascending" | |
| } | |
| }, | |
| "parameters": { | |
| "__IMTCONN__": { | |
| "data": { | |
| "scoped": "true", | |
| "connection": "slack2" | |
| }, | |
| "label": "zumix-home-on-make" | |
| } | |
| } | |
| }, | |
| "parameters": [ | |
| { | |
| "name": "__IMTCONN__", | |
| "type": "account:slack2", | |
| "label": "Connection", | |
| "required": true | |
| } | |
| ], | |
| "expect": [ | |
| { | |
| "name": "query", | |
| "type": "text", | |
| "label": "Query", | |
| "required": true | |
| }, | |
| { | |
| "name": "limit", | |
| "type": "uinteger", | |
| "label": "Limit", | |
| "required": true | |
| }, | |
| { | |
| "name": "sort", | |
| "type": "select", | |
| "label": "Sort by", | |
| "validate": { | |
| "enum": [ | |
| "score", | |
| "timestamp" | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "sort_dir", | |
| "type": "select", | |
| "label": "Direction", | |
| "validate": { | |
| "enum": [ | |
| "asc", | |
| "desc" | |
| ] | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "id": 9, | |
| "module": "builtin:BasicAggregator", | |
| "version": 1, | |
| "parameters": { | |
| "feeder": 1 | |
| }, | |
| "mapper": { | |
| "iid": "{{1.iid}}", | |
| "team": "{{1.team}}", | |
| "channel": "{{1.channel}}", | |
| "type": "{{1.type}}", | |
| "user": "{{1.user}}", | |
| "username": "{{1.username}}", | |
| "ts": "{{1.ts}}", | |
| "text": "{{1.text}}", | |
| "permalink": "{{1.permalink}}", | |
| "blocks": "{{1.blocks}}" | |
| }, | |
| "metadata": { | |
| "designer": { | |
| "x": 600, | |
| "y": 0 | |
| }, | |
| "restore": { | |
| "extra": { | |
| "feeder": { | |
| "label": "Slack - Search for Message [1]" | |
| }, | |
| "target": { | |
| "label": "Custom" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "id": 6, | |
| "module": "slack:CreateMessage", | |
| "version": 4, | |
| "parameters": { | |
| "__IMTCONN__": 276911 | |
| }, | |
| "filter": { | |
| "name": "has message", | |
| "conditions": [ | |
| [ | |
| { | |
| "a": "{{9.array}}", | |
| "b": "0", | |
| "o": "array:notequal" | |
| } | |
| ] | |
| ] | |
| }, | |
| "mapper": { | |
| "channelWType": "manualy", | |
| "text": "{{12.searchDate}} のメッセージ", | |
| "mrkdwn": true, | |
| "channel": "{{12.searchChannel}}" | |
| }, | |
| "metadata": { | |
| "designer": { | |
| "x": 900, | |
| "y": 0 | |
| }, | |
| "restore": { | |
| "parameters": { | |
| "__IMTCONN__": { | |
| "label": "zumix-home-on-make", | |
| "data": { | |
| "scoped": "true", | |
| "connection": "slack2" | |
| } | |
| } | |
| }, | |
| "expect": { | |
| "channelWType": { | |
| "label": "Enter manually" | |
| }, | |
| "reply_broadcast": { | |
| "mode": "chose" | |
| }, | |
| "link_names": { | |
| "mode": "chose" | |
| }, | |
| "parse": { | |
| "mode": "chose" | |
| }, | |
| "mrkdwn": { | |
| "mode": "chose" | |
| }, | |
| "unfurl_links": { | |
| "mode": "chose" | |
| }, | |
| "unfurl_media": { | |
| "mode": "chose" | |
| } | |
| } | |
| }, | |
| "parameters": [ | |
| { | |
| "name": "__IMTCONN__", | |
| "type": "account:slack2,slack3", | |
| "label": "Connection", | |
| "required": true | |
| } | |
| ], | |
| "expect": [ | |
| { | |
| "name": "channelWType", | |
| "type": "select", | |
| "label": "Enter a channel ID or name", | |
| "required": true, | |
| "validate": { | |
| "enum": [ | |
| "manualy", | |
| "list" | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "text", | |
| "type": "text", | |
| "label": "Text" | |
| }, | |
| { | |
| "name": "blocks", | |
| "type": "text", | |
| "label": "Blocks" | |
| }, | |
| { | |
| "name": "thread_ts", | |
| "type": "text", | |
| "label": "Thread message ID (time stamp)" | |
| }, | |
| { | |
| "name": "reply_broadcast", | |
| "type": "boolean", | |
| "label": "Reply broadcast" | |
| }, | |
| { | |
| "name": "link_names", | |
| "type": "boolean", | |
| "label": "Link names" | |
| }, | |
| { | |
| "name": "parse", | |
| "type": "boolean", | |
| "label": "Parse message text" | |
| }, | |
| { | |
| "name": "mrkdwn", | |
| "type": "boolean", | |
| "label": "Use markdown" | |
| }, | |
| { | |
| "name": "unfurl_links", | |
| "type": "boolean", | |
| "label": "Unfurl primarily text-based content" | |
| }, | |
| { | |
| "name": "unfurl_media", | |
| "type": "boolean", | |
| "label": "Unfurl media content" | |
| }, | |
| { | |
| "name": "icon_emoji", | |
| "type": "text", | |
| "label": "Icon emoji" | |
| }, | |
| { | |
| "name": "icon_url", | |
| "type": "url", | |
| "label": "Icon url" | |
| }, | |
| { | |
| "name": "username", | |
| "type": "text", | |
| "label": "User name" | |
| }, | |
| { | |
| "name": "channel", | |
| "type": "text", | |
| "label": "Channel ID or name", | |
| "required": true | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "id": 7, | |
| "module": "builtin:BasicFeeder", | |
| "version": 1, | |
| "parameters": {}, | |
| "mapper": { | |
| "array": "{{9.array}}" | |
| }, | |
| "metadata": { | |
| "designer": { | |
| "x": 1200, | |
| "y": 0 | |
| }, | |
| "restore": { | |
| "expect": { | |
| "array": { | |
| "mode": "edit" | |
| } | |
| } | |
| }, | |
| "expect": [ | |
| { | |
| "mode": "edit", | |
| "name": "array", | |
| "spec": [], | |
| "type": "array", | |
| "label": "Array" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "id": 4, | |
| "module": "slack:GetUser", | |
| "version": 4, | |
| "parameters": { | |
| "__IMTCONN__": 276911 | |
| }, | |
| "filter": { | |
| "name": "is user", | |
| "conditions": [ | |
| [ | |
| { | |
| "a": "{{7.user}}", | |
| "o": "exist" | |
| } | |
| ] | |
| ] | |
| }, | |
| "mapper": { | |
| "user": "{{7.user}}" | |
| }, | |
| "metadata": { | |
| "designer": { | |
| "x": 1500, | |
| "y": 0 | |
| }, | |
| "restore": { | |
| "parameters": { | |
| "__IMTCONN__": { | |
| "data": { | |
| "scoped": "true", | |
| "connection": "slack2" | |
| }, | |
| "label": "zumix-home-on-make" | |
| } | |
| } | |
| }, | |
| "parameters": [ | |
| { | |
| "name": "__IMTCONN__", | |
| "type": "account:slack2", | |
| "label": "Connection", | |
| "required": true | |
| } | |
| ], | |
| "expect": [ | |
| { | |
| "name": "user", | |
| "type": "text", | |
| "label": "User ID", | |
| "required": true | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "id": 3, | |
| "module": "slack:CreateMessage", | |
| "version": 4, | |
| "parameters": { | |
| "__IMTCONN__": 276911 | |
| }, | |
| "mapper": { | |
| "channelWType": "manualy", | |
| "blocks": "{\n\t\"blocks\": [\n\t\t{\n\t\t\t\"type\": \"section\",\n\t\t\t\"text\": {\n\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\"text\": \"{{7.permalink}}\\n{{7.username}} ({{parseDate(7.ts; \"X\"; 4.tz)}}) \"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"divider\"\n\t\t},\n\t\t{\n\t\t\t\"type\": \"section\",\n\t\t\t\"text\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"{{7.text}}\",\n\t\t\t\t\"emoji\": true\n\t\t\t},\n\t\t\t\"accessory\": {\n\t\t\t\t\"type\": \"image\",\n\t\t\t\t\"image_url\": \"{{if(4.profile.image_original != null; 4.profile.image_original; 4.profile.image_512)}}\",\n\t\t\t\t\"alt_text\": \"{{7.username}}\"\n\t\t\t}\n\t\t}\n\t]\n}", | |
| "thread_ts": "{{6.ts}}", | |
| "mrkdwn": true, | |
| "channel": "{{7.channel.id}}" | |
| }, | |
| "metadata": { | |
| "designer": { | |
| "x": 1800, | |
| "y": 0 | |
| }, | |
| "restore": { | |
| "parameters": { | |
| "__IMTCONN__": { | |
| "label": "zumix-home-on-make", | |
| "data": { | |
| "scoped": "true", | |
| "connection": "slack2" | |
| } | |
| } | |
| }, | |
| "expect": { | |
| "channelWType": { | |
| "label": "Enter manually" | |
| }, | |
| "reply_broadcast": { | |
| "mode": "chose" | |
| }, | |
| "link_names": { | |
| "mode": "chose" | |
| }, | |
| "parse": { | |
| "mode": "chose" | |
| }, | |
| "mrkdwn": { | |
| "mode": "chose" | |
| }, | |
| "unfurl_links": { | |
| "mode": "chose" | |
| }, | |
| "unfurl_media": { | |
| "mode": "chose" | |
| } | |
| } | |
| }, | |
| "parameters": [ | |
| { | |
| "name": "__IMTCONN__", | |
| "type": "account:slack2,slack3", | |
| "label": "Connection", | |
| "required": true | |
| } | |
| ], | |
| "expect": [ | |
| { | |
| "name": "channelWType", | |
| "type": "select", | |
| "label": "Enter a channel ID or name", | |
| "required": true, | |
| "validate": { | |
| "enum": [ | |
| "manualy", | |
| "list" | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "text", | |
| "type": "text", | |
| "label": "Text" | |
| }, | |
| { | |
| "name": "blocks", | |
| "type": "text", | |
| "label": "Blocks" | |
| }, | |
| { | |
| "name": "thread_ts", | |
| "type": "text", | |
| "label": "Thread message ID (time stamp)" | |
| }, | |
| { | |
| "name": "reply_broadcast", | |
| "type": "boolean", | |
| "label": "Reply broadcast" | |
| }, | |
| { | |
| "name": "link_names", | |
| "type": "boolean", | |
| "label": "Link names" | |
| }, | |
| { | |
| "name": "parse", | |
| "type": "boolean", | |
| "label": "Parse message text" | |
| }, | |
| { | |
| "name": "mrkdwn", | |
| "type": "boolean", | |
| "label": "Use markdown" | |
| }, | |
| { | |
| "name": "unfurl_links", | |
| "type": "boolean", | |
| "label": "Unfurl primarily text-based content" | |
| }, | |
| { | |
| "name": "unfurl_media", | |
| "type": "boolean", | |
| "label": "Unfurl media content" | |
| }, | |
| { | |
| "name": "icon_emoji", | |
| "type": "text", | |
| "label": "Icon emoji" | |
| }, | |
| { | |
| "name": "icon_url", | |
| "type": "url", | |
| "label": "Icon url" | |
| }, | |
| { | |
| "name": "username", | |
| "type": "text", | |
| "label": "User name" | |
| }, | |
| { | |
| "name": "channel", | |
| "type": "text", | |
| "label": "Channel ID or name", | |
| "required": true | |
| } | |
| ], | |
| "advanced": true | |
| } | |
| } | |
| ], | |
| "metadata": { | |
| "instant": false, | |
| "version": 1, | |
| "scenario": { | |
| "roundtrips": 1, | |
| "maxErrors": 3, | |
| "autoCommit": true, | |
| "autoCommitTriggerLast": true, | |
| "sequential": false, | |
| "confidential": false, | |
| "dataloss": false, | |
| "dlq": false | |
| }, | |
| "designer": { | |
| "orphans": [] | |
| }, | |
| "zone": "us1.make.com" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment