Inventory AI workflows and risk paths using the n8n API and CSV reports
Quick overview
Description
Quick overview This workflow runs on demand or weekly to scan all workflows on your n8n instance via the n8n API, detect nodes that call AI models, and generate an inventory with exposure status plus a one-line summary and a downloadable CSV report. How it works Runs manually, or every Monday at 09:00 on the schedule trigger. Retrieves all workflows (including nodes and connections) from your n8n instance using the n8n API. Analyzes each workflow to identify AI/model-calling nodes and traces downstream paths to nodes that may publish to people (for example email, messaging, or social destinations). Classifies each AI system’s paths for disclosure and human-gate coverage, producing a per-system status and an evidence trail of nodes traversed. Outputs a one-line inventory summary with counts by exposure status. Converts the full inventory into a CSV file named ai-systems-inventory.csv. Setup Create an n8n API key (Settings → n8n API) and add it to the n8n node that reads all workflows. Review and, if needed, standardize node naming conventions in your workflows (for example tagging nodes with [exit], [ai disclosure], [ai disclosed]/[persons informed], or [human gate]) to improve classification accuracy. Enable the schedule trigger or run the workflow manually, and optionally connect the summary or CSV output to your preferred destination (for example Slack, email, or storage). Requirements An n8n instance with the public API enabled (self-hosted or n8n Cloud) and an n8n API key No AI credentials: the analysis is plain JavaScript in a Code node, nothing is sent to a model Customization Tag your own nodes to replace guesses with facts: [exit] on a publishing node, [ai disclosure] on a labelling step, [human gate] on an approval sub-workflow Extend the lists at the top of the Code node (AI_TYPE, AI_HOST, EXIT_TYPE) to cover the providers and channels you use Send the one-line summary to Slack or email, or store the CSV in Drive, instead of reading it in the execution Change the day and hour of the weekly run on the schedule trigger Additional info Each AI system gets one status, worst first: uncovered (reaches people with no disclosure and no gate), likeness, inform, chatbot, verify (destination unclear, tag it), editorial (human gate but no disclosure), disclosed, informed, internal (never reaches people). Unclear paths come back as verify rather than a false pass. This is the registry half of an open-source EU AI Act transparency kit: https://github.com/karusrus/transparency-kit. The labelling half is published as a separate template: https://n8n.io/workflows/19797. An n8n automation workflow template by Ruslan Karymov.
Community Metrics
Author
Ruslan Karymov
Platform
web
Pricing model
free
Categories
- Automation
Tags
- n8n
- workflow
- code
Capabilities
- 1 nodes