Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. When Asset Produced
  2. Trigger by External Workflow
  3. Generate Prompt Hash
  4. Classify Under Article 50
  5. Check If Asset Is Text
  6. Prepare Text Disclosure
  7. Save Incoming File
  8. Check If Asset Is Image
  9. Edit and Label Image
  10. Label Media via API
  11. Write Labelled File
  12. Set Burn-In Metadata
  13. Set No Burn-In Metadata
  14. Build Asset Manifest

24 steps in total.

Similar automations