Events Webhook Trigger
Configured with Execute Workflow, HTTP Request, Respond To Webhook, Switch, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Transform
- Subworkflow
- Web / API
- Routing
- Trigger
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Parse Webhook | Transform | Edit Fields | See node parameters |
| Qualys Create Report | Subworkflow | Execute Workflow | See node parameters |
| Required Report Variables | Transform | Edit Fields | See node parameters |
| Qualys Start Vulnerability Scan | Subworkflow | Execute Workflow | See node parameters |
| Scan Report Task Modal | Web / API | HTTP Request | POST |
| Vuln Scan Modal | Web / API | HTTP Request | POST |
| Route Message | Routing | Switch | See node parameters |
| Required Scan Variables | Transform | Edit Fields | See node parameters |
| Route Submission | Routing | Switch | See node parameters |
| Close Modal Popup | Web / API | Respond To Webhook | See node parameters |
| Webhook | Trigger | Webhook | See node parameters |
| Respond to Slack Webhook - Vulnerability | Web / API | Respond To Webhook | See node parameters |
| Respond to Slack Webhook - Report | Web / API | Respond To Webhook | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
slackApi
Workflow notes
Events Webhook Trigger
Events Webhook Trigger
The 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.
The second node extracts the payload from slack into an object that n8n can understand.
Efficient Slack Interaction Handling with n8n
Efficient Slack Interaction Handling with n8n
This 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:
- 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.
- Modal Management: Differentiates actions based on modal titles and
callback_ids, ensuring that each type of submission is processed according to its context. - 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.
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.
Display Modal Popup
Display Modal Popup
This section pops open a modal window that is later used to send data into TheHive.
Modals 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.
Learn more about them by clicking here
Modal Submission Payload
Modal Submission Payload
The 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.
Two Trigger Options
- 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
- 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
Enhance Security Operations with the Qualys Slack Shortcut Bot!
Enhance Security Operations with the Qualys Slack Shortcut Bot!
Our 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.
Workflow Highlights:
- Interactive Modals: Utilizes Slack modals to gather user inputs for scan configurations and report generation, providing a user-friendly interface for complex operations.
- Dynamic Workflow Execution: Integrates seamlessly with Qualys to execute vulnerability scans and create reports based on user-specified parameters.
- Real-Time Feedback: Offers instant feedback within Slack, updating users about the status of their requests and delivering reports directly through Slack channels.
Operational Flow:
- Parse Webhook Data: Captures and parses incoming data from Slack to understand user commands accurately.
- 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.
- Respond to Slack: Ensures that every interaction is acknowledged, maintaining a smooth user experience by managing modal popups and sending appropriate responses.
Setup Instructions:
- Verify that Slack and Qualys API integrations are correctly configured for seamless interaction.
- Customize the modal interfaces to align with your organization's operational protocols and security policies.
- Test the workflow to ensure that it responds accurately to Slack commands and that the integration with Qualys is functioning as expected.
Need Assistance?
- Explore our Documentation or get help from the n8n Community for more detailed guidance on setup and customization.
Deploy 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.
🙋 Remember to update your Slack Channels
🙋 Remember to update your Slack Channels
Don't forget to update the Slack Channels in the Slack nodes in these two subworkflows.
🙋 Don't forget your slack credentials!
🙋 Don't forget your slack credentials!
Thankfully 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.
Sticky Note3
Sticky Note4
🤖 Triggering this workflow is as easy as typing a backslash in Slack
🤖 Triggering this workflow is as easy as typing a backslash in Slack
Events Webhook Trigger
Events Webhook Trigger
Purpose and structure
This folder contains the Events Webhook Trigger workflow. Its executable nodes use executeWorkflow, httpRequest, respondToWebhook, set, switch, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
Webhook
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Webhook/0619_Webhook_Respondtowebhook_Create_Webhook.json MIT; preserve source notices.