duplicated files are removed

This commit is contained in:
enescingoz
2025-07-25 22:02:34 +01:00
parent a1346dcce3
commit 683db34625
9 changed files with 0 additions and 6125 deletions

View File

@@ -1,697 +0,0 @@
{
"meta": {
"instanceId": "03e9d14e9196363fe7191ce21dc0bb17387a6e755dcc9acc4f5904752919dca8"
},
"nodes": [
{
"id": "adfda9cb-1d77-4c54-b3ea-e7bf438a48af",
"name": "Parse Webhook",
"type": "n8n-nodes-base.set",
"position": [
760,
640
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e63f9299-a19d-4ba1-93b0-59f458769fb2",
"name": "response",
"type": "object",
"value": "={{ $json.body.payload }}"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "b3e0e490-18e0-44b5-a960-0fdbf8422515",
"name": "Qualys Create Report",
"type": "n8n-nodes-base.executeWorkflow",
"position": [
1720,
1740
],
"parameters": {
"options": {},
"workflowId": "icSLX102kSS9zNdK"
},
"typeVersion": 1
},
{
"id": "80ae074b-bda5-4638-b46f-246a1b9530ae",
"name": "Required Report Variables",
"type": "n8n-nodes-base.set",
"position": [
1520,
1740
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "47cd1502-3039-4661-a6b1-e20a74056550",
"name": "report_title",
"type": "string",
"value": "={{ $json.response.view.state.values.report_title.report_title_input.value }}"
},
{
"id": "6a8a0cbf-bf3e-4702-956e-a35966d8b9c5",
"name": "base_url",
"type": "string",
"value": "https://qualysapi.qg3.apps.qualys.com"
},
{
"id": "9a15f4db-f006-4ad8-a2c0-4002dd3e2655",
"name": "output_format",
"type": "string",
"value": "={{ $json.response.view.state.values.output_format.output_format_select.selected_option.value }}"
},
{
"id": "13978e05-7e7f-42e9-8645-d28803db8cc9",
"name": "template_name",
"type": "string",
"value": "={{ $json.response.view.state.values.report_template.report_template_select.selected_option.text.text }}"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "b596da86-02c7-4d8e-a267-88933f47ae0c",
"name": "Qualys Start Vulnerability Scan",
"type": "n8n-nodes-base.executeWorkflow",
"position": [
1720,
1540
],
"parameters": {
"options": {},
"workflowId": "pYPh5FlGZgb36xZO"
},
"typeVersion": 1
},
{
"id": "61e39516-6558-46ce-a300-b4cbade7a6f6",
"name": "Scan Report Task Modal",
"type": "n8n-nodes-base.httpRequest",
"position": [
1620,
720
],
"parameters": {
"url": "https://slack.com/api/views.open",
"method": "POST",
"options": {},
"jsonBody": "= {\n \"trigger_id\": \"{{ $('Parse Webhook').item.json['response']['trigger_id'] }}\",\n \"external_id\": \"Scan Report Generator\",\n \"view\": {\n\t\"title\": {\n\t\t\"type\": \"plain_text\",\n\t\t\"text\": \"Scan Report Generator\",\n\t\t\"emoji\": true\n\t},\n\t\"submit\": {\n\t\t\"type\": \"plain_text\",\n\t\t\"text\": \"Generate Report\",\n\t\t\"emoji\": true\n\t},\n\t\"type\": \"modal\",\n\t\"close\": {\n\t\t\"type\": \"plain_text\",\n\t\t\"text\": \"Cancel\",\n\t\t\"emoji\": true\n\t},\n\t\"blocks\": [\n\t\t{\n\t\t\t\"type\": \"image\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Logo-Qualys.svg/300px-Logo-Qualys.svg.png\",\n\t\t\t\"alt_text\": \"Qualys Logo\"\n\t\t},\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\": \"Select a template and generate a detailed scan report based on the results of your previous scans.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"report_template\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"external_select\",\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Select a report template\",\n\t\t\t\t\t\"emoji\": true\n\t\t\t\t},\n\t\t\t\t\"action_id\": \"report_template_select\"\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Report Template\",\n\t\t\t\t\"emoji\": true\n\t\t\t},\n\t\t\t\"hint\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Choose a report template from your Qualys account to structure the output.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"report_title\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"plain_text_input\",\n\t\t\t\t\"action_id\": \"report_title_input\",\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Enter a custom title for the report\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Report Title\",\n\t\t\t\t\"emoji\": true\n\t\t\t},\n\t\t\t\"hint\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Provide a descriptive title for your report. This title will be used in the report header.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"output_format\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"static_select\",\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Select output format\",\n\t\t\t\t\t\"emoji\": true\n\t\t\t\t},\n\t\t\t\t\"options\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\"text\": \"PDF\",\n\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"value\": \"pdf\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\"text\": \"HTML\",\n\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"value\": \"html\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\"text\": \"CSV\",\n\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"value\": \"csv\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"action_id\": \"output_format_select\"\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Output Format\",\n\t\t\t\t\"emoji\": true\n\t\t\t},\n\t\t\t\"hint\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Choose the format in which you want the report to be generated.\"\n\t\t\t}\n\t\t}\n\t]\n}\n}",
"sendBody": true,
"jsonQuery": "{\n \"Content-type\": \"application/json\"\n}",
"sendQuery": true,
"specifyBody": "json",
"specifyQuery": "json",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "slackApi"
},
"credentials": {
"slackApi": {
"id": "DZJDes1ZtGpqClNk",
"name": "Qualys Slack App"
}
},
"typeVersion": 4.2
},
{
"id": "29cf716c-9cd6-4bd9-a0f9-c75baca86cc1",
"name": "Vuln Scan Modal",
"type": "n8n-nodes-base.httpRequest",
"position": [
1620,
560
],
"parameters": {
"url": "https://slack.com/api/views.open",
"method": "POST",
"options": {},
"jsonBody": "= {\n \"trigger_id\": \"{{ $('Parse Webhook').item.json['response']['trigger_id'] }}\",\n \"external_id\": \"Scan Report Generator\",\n \"view\": {\n\t\"title\": {\n\t\t\"type\": \"plain_text\",\n\t\t\"text\": \"Vulnerability Scan\",\n\t\t\"emoji\": true\n\t},\n\t\"submit\": {\n\t\t\"type\": \"plain_text\",\n\t\t\"text\": \"Execute Scan\",\n\t\t\"emoji\": true\n\t},\n\t\"type\": \"modal\",\n\t\"close\": {\n\t\t\"type\": \"plain_text\",\n\t\t\"text\": \"Cancel\",\n\t\t\"emoji\": true\n\t},\n\t\"blocks\": [\n\t\t{\n\t\t\t\"type\": \"image\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Logo-Qualys.svg/300px-Logo-Qualys.svg.png\",\n\t\t\t\"alt_text\": \"Qualys Logo\"\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\": \"Initiate a network-wide scan to detect and assess security vulnerabilities.\",\n\t\t\t\t\"emoji\": true\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"option_title\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"plain_text_input\",\n\t\t\t\t\"action_id\": \"text_input-action\",\n\t\t\t\t\"initial_value\": \"Initial Options\"\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Option Title\",\n\t\t\t\t\"emoji\": true\n\t\t\t},\n\t\t\t\"hint\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Specify the title of the option profile to use for the scan.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"scan_title\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"plain_text_input\",\n\t\t\t\t\"action_id\": \"text_input-action\",\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Enter your scan title\"\n\t\t\t\t},\n\t\t\t\t\"initial_value\": \"n8n Scan 1\"\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Scan Title\",\n\t\t\t\t\"emoji\": true\n\t\t\t},\n\t\t\t\"hint\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Provide a descriptive title for the scan. Up to 2000 characters.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"asset_groups\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"plain_text_input\",\n\t\t\t\t\"action_id\": \"text_input-action\",\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Enter asset groups\"\n\t\t\t\t},\n\t\t\t\t\"initial_value\": \"Group1\"\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Asset Groups\",\n\t\t\t\t\"emoji\": true\n\t\t\t},\n\t\t\t\"hint\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Specify asset group titles for targeting. Multiple titles must be comma-separated.\"\n\t\t\t}\n\t\t}\n\t]\n}\n}",
"sendBody": true,
"jsonQuery": "{\n \"Content-type\": \"application/json\"\n}",
"sendQuery": true,
"specifyBody": "json",
"specifyQuery": "json",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "slackApi"
},
"credentials": {
"slackApi": {
"id": "DZJDes1ZtGpqClNk",
"name": "Qualys Slack App"
}
},
"typeVersion": 4.2
},
{
"id": "a771704d-4191-4e80-b62f-81b41b047a87",
"name": "Route Message",
"type": "n8n-nodes-base.switch",
"position": [
940,
640
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Vuln Scan Modal",
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.response.callback_id }}",
"rightValue": "trigger-qualys-vmscan"
}
]
},
"renameOutput": true
},
{
"outputKey": "Scan Report Modal",
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "02868fd8-2577-4c6d-af5e-a1963cb2f786",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.response.callback_id }}",
"rightValue": "qualys-scan-report"
}
]
},
"renameOutput": true
},
{
"outputKey": "Process Submission",
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "c320c8b8-947b-433a-be82-d2aa96594808",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.response.type }}",
"rightValue": "view_submission"
}
]
},
"renameOutput": true
}
]
},
"options": {
"fallbackOutput": "none"
}
},
"typeVersion": 3
},
{
"id": "c8346d57-762a-4bbd-8d2b-f13097cb063d",
"name": "Required Scan Variables",
"type": "n8n-nodes-base.set",
"position": [
1520,
1540
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "096ff32e-356e-4a85-aad2-01001d69dd46",
"name": "platformurl",
"type": "string",
"value": "https://qualysapi.qg3.apps.qualys.com"
},
{
"id": "070178a6-73b0-458b-8657-20ab4ff0485c",
"name": "option_title",
"type": "string",
"value": "={{ $json.response.view.state.values.option_title['text_input-action'].value }}"
},
{
"id": "3605424b-5bfc-44f0-b6e4-e0d6b1130b8e",
"name": "scan_title",
"type": "string",
"value": "={{ $json.response.view.state.values.scan_title['text_input-action'].value }}"
},
{
"id": "2320d966-b834-46fb-b674-be97cc08682e",
"name": "asset_groups",
"type": "string",
"value": "={{ $json.response.view.state.values.asset_groups['text_input-action'].value }}"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "55589da9-50ce-4d55-a5ff-d62abdf65fa4",
"name": "Route Submission",
"type": "n8n-nodes-base.switch",
"position": [
1240,
1140
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Vuln Scan",
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.response.view.title.text }}",
"rightValue": "Vulnerability Scan"
}
]
},
"renameOutput": true
},
{
"outputKey": "Scan Report",
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "02868fd8-2577-4c6d-af5e-a1963cb2f786",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.response.view.title.text }}",
"rightValue": "Scan Report Generator"
}
]
},
"renameOutput": true
}
]
},
"options": {
"fallbackOutput": "none"
}
},
"typeVersion": 3
},
{
"id": "d0fc264d-0c48-4aa6-aeab-ed605d96f35a",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
428.3467548314237,
270.6382978723399
],
"parameters": {
"color": 7,
"width": 466.8168310000617,
"height": 567.6433222116042,
"content": "![Imgur](https://uploads.n8n.io/templates/slack.png)\n## Events Webhook Trigger\nThe first node receives all messages from Slack API via Subscription Events API. You can find more information about setting up the subscription events API by [clicking here](https://api.slack.com/apis/connections/events-api). \n\nThe second node extracts the payload from slack into an object that n8n can understand. "
},
"typeVersion": 1
},
{
"id": "acb3fbdc-1fcb-4763-8529-ea2842607569",
"name": "Sticky Note15",
"type": "n8n-nodes-base.stickyNote",
"position": [
900,
-32.762682645579616
],
"parameters": {
"color": 7,
"width": 566.0553219408072,
"height": 1390.6748140207737,
"content": "![n8n](https://uploads.n8n.io/templates/n8n.png)\n## Efficient Slack Interaction Handling with n8n\n\nThis section of the workflow is designed to efficiently manage and route messages and submissions from Slack based on specific triggers and conditions. When a Slack interaction occurs—such as a user triggering a vulnerability scan or generating a report through a modal—the workflow intelligently routes the message to the appropriate action:\n\n- **Dynamic Routing**: Uses conditions to determine the nature of the Slack interaction, whether it's a direct command to initiate a scan or a request to generate a report.\n- **Modal Management**: Differentiates actions based on modal titles and `callback_id`s, ensuring that each type of submission is processed according to its context.\n- **Streamlined Responses**: After routing, the workflow promptly handles the necessary responses or actions, including closing modal popups and responding to Slack with appropriate confirmation or data.\n\n**Purpose**: This mechanism ensures that all interactions within Slack are handled quickly and accurately, automating responses and actions in real-time to enhance user experience and workflow efficiency."
},
"typeVersion": 1
},
{
"id": "85f370e8-70d2-466e-8f44-45eaf04a0d95",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
1473.6255461332685,
56.17183602125283
],
"parameters": {
"color": 7,
"width": 396.6025898621133,
"height": 881.1659905894905,
"content": "![Imgur](https://uploads.n8n.io/templates/slack.png)\n## Display Modal Popup\nThis section pops open a modal window that is later used to send data into TheHive. \n\nModals can be customized to perform all sorts of actions. And they are natively mobile! You can see a screenshot of the Slack Modals on the right. \n\nLearn more about them by [clicking here](https://api.slack.com/surfaces/modals)"
},
"typeVersion": 1
},
{
"id": "cae79c1c-47f8-41c0-b1d0-e284359b52a8",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
960
],
"parameters": {
"color": 7,
"width": 390.82613196003143,
"height": 950.1640646001949,
"content": "![Imgur](https://i.imgur.com/abGF8EO.png)\n## Modal Submission Payload\nThe data input into the Slack Modal makes its way into these set nodes that then pass that data into the Qualys Sub workflows that handle the heavy lifting. \n\n### Two Trigger Options\n- **Trigger a Vulnerability Scan** in the Slack UI which then sends a slack message to a channel of your choice summarizing and linking to the scan in slack\n- **Trigger report creation** in the Slack UI from the previously generated Vulnerability scan and upload a PDF copy of the report directly in a slack channel of your choice"
},
"typeVersion": 1
},
{
"id": "1017df8b-ff32-47aa-a4c2-a026e6597fa9",
"name": "Close Modal Popup",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1000,
1140
],
"parameters": {
"options": {
"responseCode": 204
},
"respondWith": "noData"
},
"typeVersion": 1.1
},
{
"id": "6b058f2a-2c0c-4326-aa42-08d840e306f7",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-260,
280
],
"parameters": {
"width": 675.1724774900403,
"height": 972.8853473866498,
"content": "![n8n](https://uploads.n8n.io/templates/n8n.png)\n## Enhance Security Operations with the Qualys Slack Shortcut Bot!\n\nOur **Qualys Slack Shortcut Bot** is strategically designed to facilitate immediate security operations directly from Slack. This powerful tool allows users to initiate vulnerability scans and generate detailed reports through simple Slack interactions, streamlining the process of managing security assessments.\n\n**Workflow Highlights:**\n- **Interactive Modals**: Utilizes Slack modals to gather user inputs for scan configurations and report generation, providing a user-friendly interface for complex operations.\n- **Dynamic Workflow Execution**: Integrates seamlessly with Qualys to execute vulnerability scans and create reports based on user-specified parameters.\n- **Real-Time Feedback**: Offers instant feedback within Slack, updating users about the status of their requests and delivering reports directly through Slack channels.\n\n\n**Operational Flow:**\n- **Parse Webhook Data**: Captures and parses incoming data from Slack to understand user commands accurately.\n- **Execute Actions**: Depending on the user's selection, the workflow triggers other sub-workflows like 'Qualys Start Vulnerability Scan' or 'Qualys Create Report' for detailed processing.\n- **Respond to Slack**: Ensures that every interaction is acknowledged, maintaining a smooth user experience by managing modal popups and sending appropriate responses.\n\n\n**Setup Instructions:**\n- Verify that Slack and Qualys API integrations are correctly configured for seamless interaction.\n- Customize the modal interfaces to align with your organization's operational protocols and security policies.\n- Test the workflow to ensure that it responds accurately to Slack commands and that the integration with Qualys is functioning as expected.\n\n\n**Need Assistance?**\n- Explore our [Documentation](https://docs.qualys.com) or get help from the [n8n Community](https://community.n8n.io) for more detailed guidance on setup and customization.\n\nDeploy this bot within your Slack environment to significantly enhance the efficiency and responsiveness of your security operations, enabling proactive management of vulnerabilities and streamlined reporting."
},
"typeVersion": 1
},
{
"id": "63b537e8-50c9-479d-96a4-54e621689a23",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
520,
640
],
"webhookId": "4f86c00d-ceb4-4890-84c5-850f8e5dec05",
"parameters": {
"path": "4f86c00d-ceb4-4890-84c5-850f8e5dec05",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2
},
{
"id": "13500444-f2ff-4b77-8f41-8ac52d067ec7",
"name": "Respond to Slack Webhook - Vulnerability",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1280,
560
],
"parameters": {
"options": {},
"respondWith": "noData"
},
"typeVersion": 1.1
},
{
"id": "e64cedf0-948c-43c8-a62c-d0ec2916f3b6",
"name": "Respond to Slack Webhook - Report",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1280,
720
],
"parameters": {
"options": {
"responseCode": 200
},
"respondWith": "noData"
},
"typeVersion": 1.1
},
{
"id": "d2e53f7b-090a-4330-949d-d66ac0e5849c",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1494.8207799250774,
1400
],
"parameters": {
"color": 5,
"width": 361.46312518523973,
"height": 113.6416448104651,
"content": "### 🙋 Remember to update your Slack Channels\nDon't forget to update the Slack Channels in the Slack nodes in these two subworkflows. \n"
},
"typeVersion": 1
},
{
"id": "2731f910-288f-497a-a71d-d840a63b2930",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
400
],
"parameters": {
"color": 5,
"width": 376.26546828439086,
"height": 113.6416448104651,
"content": "### 🙋 Don't forget your slack credentials!\nThankfully n8n makes it easy, as long as you've added credentials to a normal slack node, these http nodes are a snap to change via the drop down. "
},
"typeVersion": 1
},
{
"id": "72105959-ee9b-4ce6-a7f8-0f5f112c14d2",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1880,
500
],
"parameters": {
"color": 5,
"width": 532.5097590794944,
"height": 671.013686767174,
"content": "![Imgur](https://uploads.n8n.io/templates/qualysscanreport.png)"
},
"typeVersion": 1
},
{
"id": "49b8ce63-cefd-483a-b802-03e3500d807b",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1880,
-200
],
"parameters": {
"color": 5,
"width": 535.8333316661616,
"height": 658.907292269235,
"content": "![Imgur](https://uploads.n8n.io/templates/qualysmodalscan.png)"
},
"typeVersion": 1
},
{
"id": "3ec8c799-d5a5-4134-891a-59adb3e68e23",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
-158.042446016207
],
"parameters": {
"color": 5,
"width": 596.6847639718076,
"height": 422.00743613240917,
"content": "![Imgur](https://uploads.n8n.io/templates/qualysscanshortcut.png)\n### 🤖 Triggering this workflow is as easy as typing a backslash in Slack"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Webhook": {
"main": [
[
{
"node": "Parse Webhook",
"type": "main",
"index": 0
}
]
]
},
"Parse Webhook": {
"main": [
[
{
"node": "Route Message",
"type": "main",
"index": 0
}
]
]
},
"Route Message": {
"main": [
[
{
"node": "Respond to Slack Webhook - Vulnerability",
"type": "main",
"index": 0
}
],
[
{
"node": "Respond to Slack Webhook - Report",
"type": "main",
"index": 0
}
],
[
{
"node": "Close Modal Popup",
"type": "main",
"index": 0
}
]
]
},
"Route Submission": {
"main": [
[
{
"node": "Required Scan Variables",
"type": "main",
"index": 0
}
],
[
{
"node": "Required Report Variables",
"type": "main",
"index": 0
}
]
]
},
"Close Modal Popup": {
"main": [
[
{
"node": "Route Submission",
"type": "main",
"index": 0
}
]
]
},
"Required Scan Variables": {
"main": [
[
{
"node": "Qualys Start Vulnerability Scan",
"type": "main",
"index": 0
}
]
]
},
"Required Report Variables": {
"main": [
[
{
"node": "Qualys Create Report",
"type": "main",
"index": 0
}
]
]
},
"Respond to Slack Webhook - Report": {
"main": [
[
{
"node": "Scan Report Task Modal",
"type": "main",
"index": 0
}
]
]
},
"Respond to Slack Webhook - Vulnerability": {
"main": [
[
{
"node": "Vuln Scan Modal",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -1,752 +0,0 @@
{
"nodes": [
{
"id": "82fd6023-2cc3-416e-83b7-fda24d07d77a",
"name": "Issues to List",
"type": "n8n-nodes-base.splitOut",
"position": [
40,
-100
],
"parameters": {
"options": {},
"fieldToSplitOut": "data.issues.nodes"
},
"typeVersion": 1
},
{
"id": "9cc77786-e14f-47c6-a3cf-60c2830612e6",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
360,
80
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "8gccIjcuf3gvaoEr",
"name": "OpenAi account"
}
},
"typeVersion": 1
},
{
"id": "821d4a60-81a4-4915-9c13-3d978cc0114b",
"name": "Combine Sentiment Analysis",
"type": "n8n-nodes-base.set",
"position": [
700,
-80
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "={{\n{\n ...$('Issues to List').item.json,\n ...$json.output\n}\n}}"
},
"typeVersion": 3.4
},
{
"id": "fe6560f6-2e1b-4442-a2af-bd5a1623f213",
"name": "Sentiment over Issue Comments",
"type": "@n8n/n8n-nodes-langchain.informationExtractor",
"position": [
360,
-80
],
"parameters": {
"text": "={{\n$json.comments.nodes.map(node => [\n `${node.user.displayName} commented on ${node.createdAt}:`,\n node.body\n].join('\\n')).join('---\\n')\n}}",
"options": {},
"attributes": {
"attributes": [
{
"name": "sentiment",
"required": true,
"description": "One of positive, negative or neutral"
},
{
"name": "sentimentSummary",
"description": "Describe the sentiment of the conversation"
}
]
}
},
"typeVersion": 1
},
{
"id": "4fd0345d-e5bf-426d-8403-e2217e19bbea",
"name": "Copy of Issue",
"type": "n8n-nodes-base.set",
"position": [
1200,
-60
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "={{ $json }}"
},
"typeVersion": 3.4
},
{
"id": "6d103d67-451e-4780-8f52-f4dba4b42860",
"name": "For Each Issue...",
"type": "n8n-nodes-base.splitInBatches",
"position": [
1020,
-60
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "032702d9-27d8-4735-b978-20b55bc1a74f",
"name": "Get Existing Sentiment",
"type": "n8n-nodes-base.airtable",
"position": [
1380,
-60
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appViDaeaFw4qv9La",
"cachedResultUrl": "https://airtable.com/appViDaeaFw4qv9La",
"cachedResultName": "Sentiment Analysis over Issue Comments"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tblhO0sfRhKP6ibS8",
"cachedResultUrl": "https://airtable.com/appViDaeaFw4qv9La/tblhO0sfRhKP6ibS8",
"cachedResultName": "Table 1"
},
"options": {
"fields": [
"Issue ID",
"Current Sentiment"
]
},
"operation": "search",
"filterByFormula": "={Issue ID} = '{{ $json.identifier || 'XYZ' }}'"
},
"credentials": {
"airtableTokenApi": {
"id": "Und0frCQ6SNVX3VV",
"name": "Airtable Personal Access Token account"
}
},
"typeVersion": 2.1,
"alwaysOutputData": true
},
{
"id": "f2ded6fa-8b0f-4a34-868c-13c19f725c98",
"name": "Update Row",
"type": "n8n-nodes-base.airtable",
"position": [
1560,
-60
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appViDaeaFw4qv9La",
"cachedResultUrl": "https://airtable.com/appViDaeaFw4qv9La",
"cachedResultName": "Sentiment Analysis over Issue Comments"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tblhO0sfRhKP6ibS8",
"cachedResultUrl": "https://airtable.com/appViDaeaFw4qv9La/tblhO0sfRhKP6ibS8",
"cachedResultName": "Table 1"
},
"columns": {
"value": {
"Summary": "={{ $('Copy of Issue').item.json.sentimentSummary || '' }}",
"Assigned": "={{ $('Copy of Issue').item.json.assignee.name }}",
"Issue ID": "={{ $('Copy of Issue').item.json.identifier }}",
"Issue Title": "={{ $('Copy of Issue').item.json.title }}",
"Issue Created": "={{ $('Copy of Issue').item.json.createdAt }}",
"Issue Updated": "={{ $('Copy of Issue').item.json.updatedAt }}",
"Current Sentiment": "={{ $('Copy of Issue').item.json.sentiment.toSentenceCase() }}",
"Previous Sentiment": "={{ !$json.isEmpty() ? $json['Current Sentiment'] : 'N/A' }}"
},
"schema": [
{
"id": "id",
"type": "string",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "id",
"defaultMatch": true
},
{
"id": "Issue ID",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Issue ID",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Previous Sentiment",
"type": "options",
"display": true,
"options": [
{
"name": "Positive",
"value": "Positive"
},
{
"name": "Negative",
"value": "Negative"
},
{
"name": "Neutral",
"value": "Neutral"
},
{
"name": "N/A",
"value": "N/A"
}
],
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Previous Sentiment",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Current Sentiment",
"type": "options",
"display": true,
"options": [
{
"name": "Positive",
"value": "Positive"
},
{
"name": "Negative",
"value": "Negative"
},
{
"name": "Neutral",
"value": "Neutral"
},
{
"name": "N/A",
"value": "N/A"
}
],
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Current Sentiment",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Summary",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Summary",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Issue Title",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Issue Title",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Issue Created",
"type": "dateTime",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Issue Created",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Issue Updated",
"type": "dateTime",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Issue Updated",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Assigned",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Assigned",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Created",
"type": "string",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "Created",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Last Modified",
"type": "string",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "Last Modified",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Issue ID"
]
},
"options": {},
"operation": "upsert"
},
"credentials": {
"airtableTokenApi": {
"id": "Und0frCQ6SNVX3VV",
"name": "Airtable Personal Access Token account"
}
},
"typeVersion": 2.1
},
{
"id": "e6fb0b8f-2469-4b66-b9e2-f4f3c0a613af",
"name": "Airtable Trigger",
"type": "n8n-nodes-base.airtableTrigger",
"position": [
1900,
-40
],
"parameters": {
"baseId": {
"__rl": true,
"mode": "id",
"value": "appViDaeaFw4qv9La"
},
"tableId": {
"__rl": true,
"mode": "id",
"value": "tblhO0sfRhKP6ibS8"
},
"pollTimes": {
"item": [
{
"mode": "everyHour"
}
]
},
"triggerField": "Current Sentiment",
"authentication": "airtableTokenApi",
"additionalFields": {}
},
"credentials": {
"airtableTokenApi": {
"id": "Und0frCQ6SNVX3VV",
"name": "Airtable Personal Access Token account"
}
},
"typeVersion": 1
},
{
"id": "669762c4-860b-43ad-b677-72d4564e1c29",
"name": "Sentiment Transition",
"type": "n8n-nodes-base.switch",
"position": [
2080,
-40
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "NON-NEGATIVE to NEGATIVE",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ $json.fields[\"Previous Sentiment\"] !== 'Negative' && $json.fields[\"Current Sentiment\"] === 'Negative' }}",
"rightValue": ""
}
]
},
"renameOutput": true
}
]
},
"options": {
"fallbackOutput": "none"
}
},
"typeVersion": 3.2
},
{
"id": "2fbcfbea-3989-459b-8ca7-b65c130a479b",
"name": "Fetch Active Linear Issues",
"type": "n8n-nodes-base.graphql",
"position": [
-140,
-100
],
"parameters": {
"query": "=query (\n $filter: IssueFilter\n) {\n issues(\n filter: $filter\n ) {\n nodes {\n id\n identifier\n title\n description\n url\n createdAt\n updatedAt\n assignee {\n name\n }\n comments {\n nodes {\n id\n createdAt\n user {\n displayName\n }\n body\n }\n }\n }\n }\n}",
"endpoint": "https://api.linear.app/graphql",
"variables": "={{\n{\n \"filter\": {\n updatedAt: { gte: $now.minus(30, 'minutes').toISO() }\n }\n}\n}}",
"requestFormat": "json",
"authentication": "headerAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "XME2Ubkuy9hpPEM5",
"name": "Linear.app (heightio)"
}
},
"typeVersion": 1
},
{
"id": "aaf1c25e-c398-4715-88bf-bd98daafc10f",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-340,
-100
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
"minutesInterval": 30
}
]
}
},
"typeVersion": 1.2
},
{
"id": "b3e2df39-90ce-4ebf-aa68-05499965ec30",
"name": "Deduplicate Notifications",
"type": "n8n-nodes-base.removeDuplicates",
"position": [
2280,
-40
],
"parameters": {
"options": {},
"operation": "removeItemsSeenInPreviousExecutions",
"dedupeValue": "={{ $json.fields[\"Issue ID\"] }}:{{ $json.fields['Last Modified'] }}"
},
"typeVersion": 2
},
{
"id": "2a116475-32cd-4c9d-bfc1-3bd494f79a49",
"name": "Report Issue Negative Transition",
"type": "n8n-nodes-base.slack",
"position": [
2480,
-40
],
"webhookId": "612f1001-3fcc-480b-a835-05f9e2d56a5f",
"parameters": {
"text": "={{ $('Deduplicate Notifications').all().length }} Issues have transitions to Negative Sentiment",
"select": "channel",
"blocksUi": "={{\n{\n \"blocks\": [\n {\n \"type\": \"section\",\n \"text\": {\n \"type\": \"mrkdwn\",\n \"text\": \":rotating_light: The following Issues transitioned to Negative Sentiment\"\n }\n },\n {\n \"type\": \"divider\"\n },\n ...($('Deduplicate Notifications').all().map(item => (\n {\n \"type\": \"section\",\n \"text\": {\n \"type\": \"mrkdwn\",\n \"text\": `*<https://linear.app/myOrg/issue/${$json.fields['Issue ID']}|${$json.fields['Issue ID']} ${$json.fields['Issue Title']}>*\\n${$json.fields.Summary}`\n }\n }\n )))\n ]\n}\n}}",
"channelId": {
"__rl": true,
"mode": "list",
"value": "C0749JVFERK",
"cachedResultName": "n8n-tickets"
},
"messageType": "block",
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "VfK3js0YdqBdQLGP",
"name": "Slack account"
}
},
"executeOnce": true,
"typeVersion": 2.3
},
{
"id": "1f3d30b6-de31-45a8-a872-554c339f112f",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-420,
-320
],
"parameters": {
"color": 7,
"width": 660,
"height": 440,
"content": "## 1. Continuously Monitor Active Linear Issues\n[Learn more about the GraphQL node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.graphql)\n\nTo keep up with the latest changes in our active Linear tickets, we'll need to use Linear's GraphQL endpoint because filtering is currently unavailable in the official Linear.app node.\n\nFor this demonstration, we'll check for updated tickets every 30mins."
},
"typeVersion": 1
},
{
"id": "9024512d-5cb9-4e9f-b6e1-495d1a32118a",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
260,
-320
],
"parameters": {
"color": 7,
"width": 640,
"height": 560,
"content": "## 2. Sentiment Analysis on Current Issue Activity\n[Learn more about the Information Extractor node](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.information-extractor)\n\nWith our recently updated posts, we can use our AI to perform a quick sentiment analysis on the ongoing conversation to check the overall mood of the support issue. This is a great way to check how things are generally going in the support queue; positive should be normal but negative could indicate some uncomfortableness or even frustration."
},
"typeVersion": 1
},
{
"id": "233ebd6d-38cb-4f2d-84b5-29c97d30d77b",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
920,
-320
],
"parameters": {
"color": 7,
"width": 840,
"height": 560,
"content": "## 3. Capture and Track Results in Airtable\n[Learn more about the Airtable node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.airtable)\n\nNext, we can capture this analysis in our insights database as means for human review. When the issue is new, we can create a new row but if the issue exists, we will update it's existing row instead.\n\nWhen updating an existing row, we move its previous \"current sentiment\" value into the \"previous sentiment\" column and replace with our new current sentiment. This gives us a \"sentiment transition\" which will be useful in the next step.\n\nCheck out the Airtable here: https://airtable.com/appViDaeaFw4qv9La/shrq6HgeYzpW6uwXL"
},
"typeVersion": 1
},
{
"id": "a2229225-b580-43cb-b234-4f69cb5924fd",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1800,
-320
],
"parameters": {
"color": 7,
"width": 920,
"height": 560,
"content": "## 4. Get Notified when Sentiment becomes Negative\n[Learn more about the Slack node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.slack/)\n\nA good use-case for tracking sentiment transitions could be to be alerted if ever an issue moves from a non-negative sentiment to a negative one. This could be a signal of issue handling troubles which may require attention before it escalates.\n\nIn this demonstration, we use the Airtable trigger to catch rows which have their sentiment column updated and check for the non-negative-to-negative sentiment transition using the switch node. For those matching rows, we combine add send a notification via slack. A cool trick is to use the \"remove duplication\" node to prevent repeat notifications for the same updates - here we combine the Linear issue key and the row's last modified date."
},
"typeVersion": 1
},
{
"id": "6f26769e-ec5d-46d0-ae0a-34148b24e6a2",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-940,
-720
],
"parameters": {
"width": 480,
"height": 840,
"content": "## Try It Out!\n### This n8n template performs continous monitoring on Linear Issue conversations performing sentiment analysis and alerting when the sentiment becomes negative.\nThis is helpful to quickly identify difficult customer support situations early and prioritising them before they get out of hand.\n\n## How it works\n* A scheduled trigger is used to fetch recently updated issues in Linear using the GraphQL node.\n* Each issue's comments thread is passed into a simple Information Extractor node to identify the overall sentiment.\n* The resulting sentiment analysis combined with the some issue details are uploaded to Airtable for review.\n* When the template is re-run at a later date, each issue is re-analysed for sentiment\n* Each issue's new sentiment state is saved to the airtable whilst its previous state is moved to the \"previous sentiment\" column.\n* An Airtable trigger is used to watch for recently updated rows\n* Each matching Airtable row is filtered to check if it has a previous non-negative state but now has a negative state in its current sentiment.\n* The results are sent via notification to a team slack channel for priority.\n\n**Check out the sample Airtable here**: https://airtable.com/appViDaeaFw4qv9La/shrq6HgeYzpW6uwXL\n\n## How to use\n* Modify the GraphQL filter to fetch issues to a relevant issue type, team or person.\n* Update the Slack channel to ensure messages are sent to the correct location.\n\n### Need Help?\nJoin the [Discord](https://discord.com/invite/XPKeKXeB7d) or ask in the [Forum](https://community.n8n.io/)!\n\nHappy Hacking!"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Update Row": {
"main": [
[
{
"node": "For Each Issue...",
"type": "main",
"index": 0
}
]
]
},
"Copy of Issue": {
"main": [
[
{
"node": "Get Existing Sentiment",
"type": "main",
"index": 0
}
]
]
},
"Issues to List": {
"main": [
[
{
"node": "Sentiment over Issue Comments",
"type": "main",
"index": 0
}
]
]
},
"Airtable Trigger": {
"main": [
[
{
"node": "Sentiment Transition",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Fetch Active Linear Issues",
"type": "main",
"index": 0
}
]
]
},
"For Each Issue...": {
"main": [
[],
[
{
"node": "Copy of Issue",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Sentiment over Issue Comments",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Sentiment Transition": {
"main": [
[
{
"node": "Deduplicate Notifications",
"type": "main",
"index": 0
}
]
]
},
"Get Existing Sentiment": {
"main": [
[
{
"node": "Update Row",
"type": "main",
"index": 0
}
]
]
},
"Deduplicate Notifications": {
"main": [
[
{
"node": "Report Issue Negative Transition",
"type": "main",
"index": 0
}
]
]
},
"Combine Sentiment Analysis": {
"main": [
[
{
"node": "For Each Issue...",
"type": "main",
"index": 0
}
]
]
},
"Fetch Active Linear Issues": {
"main": [
[
{
"node": "Issues to List",
"type": "main",
"index": 0
}
]
]
},
"Sentiment over Issue Comments": {
"main": [
[
{
"node": "Combine Sentiment Analysis",
"type": "main",
"index": 0
}
]
]
}
}
}