{ "name": "Slack Status RSS", "flow": [ { "id": 1, "module": "rss:TriggerNewArticle", "version": 4, "parameters": { "url": "https://status.slack.com/feed/rss", "gzip": true, "include": [], "password": "", "username": "", "maxResults": 2 }, "mapper": {}, "metadata": { "designer": { "x": 0, "y": 0 }, "parameters": [ { "name": "url", "type": "url", "label": "URL", "required": true }, { "name": "maxResults", "type": "number", "label": "Maximum number of returned items", "required": true }, { "name": "username", "type": "text", "label": "User name" }, { "name": "password", "type": "text", "label": "Password" }, { "name": "include", "type": "select", "label": "Process RSS fields", "multiple": true, "validate": { "enum": [ "google-merchant-center" ] } }, { "name": "gzip", "type": "boolean", "label": "Request compressed content", "required": true } ], "interface": [ { "name": "title", "type": "text", "label": "Title" }, { "name": "description", "type": "text", "label": "Description" }, { "name": "summary", "type": "text", "label": "Summary" }, { "name": "author", "type": "text", "label": "Author" }, { "name": "url", "type": "url", "label": "URL" }, { "name": "dateUpdated", "type": "date", "label": "Date updated" }, { "name": "dateCreated", "type": "date", "label": "Date created" }, { "name": "comments", "type": "url", "label": "Comments" }, { "name": "image", "spec": [ { "name": "title", "type": "text", "label": "Name" }, { "name": "url", "type": "url", "label": "URL" } ], "type": "collection", "label": "Image" }, { "name": "categories", "spec": { "type": "text" }, "type": "array", "label": "Categories" }, { "name": "source", "spec": [ { "name": "title", "type": "text", "label": "Name" }, { "name": "url", "type": "url", "label": "URL" } ], "type": "collection", "label": "Source" }, { "name": "enclosures", "spec": [ { "name": "url", "type": "url", "label": "URL" }, { "name": "type", "type": "text", "label": "Type" }, { "name": "length", "type": "number", "label": "Length" } ], "type": "array", "label": "Enclosures" }, { "help": "Other RSS fields. All values are in text format.", "name": "rssFields", "spec": [ { "name": "title", "type": "text", "label": "title" }, { "name": "description", "type": "text", "label": "description" }, { "name": "pubdate", "type": "text", "label": "pubdate" }, { "name": "link", "type": "text", "label": "link" }, { "name": "guid", "type": "text", "label": "guid" } ], "type": "collection", "label": "RSS fields" } ] } }, { "id": 3, "module": "regexp:Parser", "version": 1, "parameters": { "global": false, "pattern": "(?<status>.*):.*", "multiline": false, "sensitive": true, "continueWhenNoRes": false }, "mapper": { "text": "{{1.title}}" }, "metadata": { "designer": { "x": 300, "y": 0 }, "parameters": [ { "name": "pattern", "type": "text", "label": "Pattern", "required": true }, { "name": "global", "type": "boolean", "label": "Global match", "required": true }, { "name": "sensitive", "type": "boolean", "label": "Case sensitive", "required": true }, { "name": "multiline", "type": "boolean", "label": "Multiline", "required": true }, { "name": "continueWhenNoRes", "type": "boolean", "label": "Continue the execution of the route even if the module finds no matches", "required": true } ], "expect": [ { "name": "text", "type": "text", "label": "Text" } ], "interface": [ { "name": "status", "type": "text", "label": "status" } ] } }, { "id": 2, "module": "slack:ActionCreateMessage", "version": 2, "parameters": { "account": 0 }, "mapper": { "text": "{{1.title}}\n{{1.description}}\n{{1.url}}\n{{1.dateUpdated}}", "username": "Slack Status", "parse": false, "linkNames": true, "iconType": "url", "attachments": [], "type": "channel", "iconUrl": "https://status.slack.com/img/v2/{{3.status}}.png", "channelId": "" }, "metadata": { "designer": { "x": 600, "y": 0 }, "restore": { "account": { "label": "" }, "channelId": { "mode": "chose", "label": "slack_status" }, "parse": { "mode": "chose" }, "unfurlLinks": { "mode": "chose" }, "unfurlMedia": { "mode": "chose" }, "linkNames": { "mode": "chose" }, "iconType": { "label": "Icon URL" }, "attachments": { "mode": "chose", "items": [] }, "type": { "label": "to a selected channel" } }, "parameters": [ { "name": "account", "label": "Connection", "type": "account", "required": true } ], "expect": [ { "name": "text", "label": "Text", "type": "text", "multiline": true }, { "name": "username", "label": "User name", "type": "text" }, { "name": "parse", "label": "Parse message text", "type": "boolean", "required": true }, { "name": "unfurlLinks", "label": "Unfurl links", "type": "boolean" }, { "name": "unfurlMedia", "label": "Unfurl media", "type": "boolean" }, { "name": "linkNames", "label": "Link names", "type": "boolean", "required": true }, { "name": "iconType", "label": "Displaying the icon", "type": "select", "required": true, "validate": { "enum": [ "none", "url", "emoji" ] } }, { "name": "attachments", "label": "Message attachments", "type": "array", "labels": { "add": "Add an attachment", "edit": "Edit an attachment", "field": "Attachment" }, "spec": [ { "name": "fallback", "label": "Fallback", "type": "text", "required": true }, { "name": "color", "label": "Color", "type": "text" }, { "name": "pretext", "label": "Text above the formatted data", "type": "text" }, { "name": "authorName", "label": "Author name", "type": "text" }, { "name": "authorLink", "label": "Author link", "type": "url" }, { "name": "authorIcon", "label": "Author icon (URL)", "type": "url" }, { "name": "title", "label": "Title", "type": "text" }, { "name": "titleLink", "label": "Title link", "type": "url" }, { "name": "text", "label": "Text inside the message attachment", "type": "text" }, { "name": "imageUrl", "label": "Image (URL)", "type": "text" }, { "name": "thumbUrl", "label": "Thumbnail (URL)", "type": "text" }, { "name": "footer", "label": "Footer", "type": "text" }, { "name": "footerIcon", "label": "Footer icon (URL)", "type": "url" }, { "name": "ts", "label": "Timestamp", "type": "number" }, { "name": "fields", "label": "Fields inside the message attachment", "type": "array", "labels": { "add": "Add a field", "edit": "Edit a field", "field": "Field inside a message attachment" }, "spec": [ { "name": "title", "label": "Description", "type": "text", "required": true }, { "name": "value", "label": "Value", "type": "text", "required": true }, { "name": "short", "label": "Display side-by-side with other values", "type": "boolean", "required": true } ] } ] }, { "name": "type", "label": "Where to send the message ", "type": "select", "required": true, "validate": { "enum": [ "channel", "group", "im" ] } }, { "name": "iconUrl", "label": "A valid URL that displays the icon", "type": "url", "required": true }, { "name": "channelId", "label": "Channel", "type": "select", "required": true } ], "advanced": true } } ], "metadata": { "version": 1, "scenario": { "roundtrips": 1, "maxErrors": 3, "autoCommit": false, "sequential": false, "confidential": false, "dataloss": false, "dlq": false }, "designer": { "orphans": [] }, "zone": "eu1.integromat.com" } }