Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Label AI-generated content for EU AI Act compliance with Slack and Postgres
When a form is submitted, it automates developer work with OpenAI / ChatGPT and DeepSeek using n8n API, Postgres, Slack.
What it does
## Label AI-generated content under the EU AI Act with a Slack approval gate and Postgres ledger ### Who's it for Teams that publish AI-generated images, audio, video or text in the EU: agencies, newsrooms, in-house marketing and public bodies. Article 50 of the AI Act applies from 2 August 2026, and the deep-fake definition it leans on is Article 3(60). This template is the mechanism, not the policy document: it decides, labels, stops for a person, and leaves a record that can be checked. ### How it works This workflow receives an AI-generated asset either from a form submission or from another workflow, classifies it for EU AI Act Article 50 disclosure needs, and applies the appropriate text or media labeling path. It stores a manifest and asset record in Postgres, notifies a reviewer in Slack, waits for approval, then records the final disclosure decision. After approval, it refreshes an AI-systems registry snapshot from n8n workflow metadata and returns a per-asset response to the caller. ### Setup steps - Configure the form trigger fields or the calling workflow payload to provide the generated asset, prompt metadata, media type, and any required file/binary data. - Set up Postgres credentials and ensure the required ledger tables exist for assets, approval decisions, and registry snapshots. - Configure Slack credentials, reviewer channel/user, and the approval link or wait-webhook behavior used by the review gate. - Ensure the media labeling HTTP service is reachable at the configured URL, for example http://kit-media-label:8881/label, and supports the expected label parameters. - Set up filesystem access for the file read/write nodes so incoming and labelled media can be stored at the configured paths. - Configure n8n API credentials or permissions for the node that reads all workflows when building the registry snapshot. ### Customization Adjust the Article 50 classification rules, disclosure text, media label styling, Slack reviewer target, Postgres schema, and registry path-analysis logic to match the organization’s compliance policy and deployment environment. ### Source Full source, the database schema with its append-only triggers, a docker compose install and a written case study: https://github.com/karusrus/transparency-kit — https://karusrus.github.io/transparency-kit/
The steps
- When Asset Produced
- Trigger by External Workflow
- Generate Prompt Hash
- Classify Under Article 50
- Check If Asset Is Text
- Prepare Text Disclosure
- Save Incoming File
- Check If Asset Is Image
- Edit and Label Image
- Label Media via API
- Write Labelled File
- Set Burn-In Metadata
- Set No Burn-In Metadata
- Build Asset Manifest
24 steps in total.
Similar automations