π Assess information system risks via webhook with Claude and Google Sheets
β‘ 0 views Β· π SecOps & Security Automation
Description
Quick overview
This workflow receives a webhook request describing an information system scenario, uses Anthropic Claude to generate a five-part risk assessment with a fixed JSON schema, returns the report to the caller, and logs the results (including a Markdown report) to a Google Sheets Assessments tab.
How it works
- Receives a POST webhook request containing
system_name,industry, and ascenariodescription. - Validates an optional shared secret via the
x-api-keyheader and rejects scenarios shorter than the configured minimum length. - Sends the scenario to Anthropic Claude to assess confidentiality, integrity, availability, compliance, and operational risk and produce an overall rating, executive summary, and assumptions.
- Enforces a structured JSON output so each risk dimension is limited to Critical/High/Medium/Low and includes a description, mitigation, and framework/regulation reference.
- Builds a combined JSON response and a formatted Markdown report from the structured assessment.
- Responds to the webhook with the report JSON and appends the assessment details to Google Sheets.
Setup
- Create a Google Sheet with an
Assessmentstab and columns matching the workflowβs mapped fields (e.g., Timestamp, System Name, Overall Rating, dimension ratings, Executive Summary, Scenario, Report). - Add an Anthropic (Claude) credential and a Google Sheets OAuth credential, then select the target spreadsheet in the Google Sheets node.
- (Optional) Set a
shared_secretvalue in the workflow settings and send it as anx-api-keyheader in your webhook requests.
Requirements
- Anthropic API key and a Google account.
Customization
- Change the frameworks, default industry, length limits and shared secret in Settings. Add a dimension to the prompt and the parser schema.
π Nodes Used
Google Sheets, Webhook, Basic LLM Chain, Anthropic Chat Model, Structured Output Parser
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File