Quick overview
This workflow runs daily to monitor tracked EU EUDAMED UDI-DIs and manufacturer SRNs via Apify, keeps a stateful audit log in an n8n Data Table and Google Sheets, uses OpenAI to triage urgent compliance changes into CAPA guidance, and posts a consolidated alert brief to Slack.
How it works
- Runs on a daily schedule (or manually in sample mode) and ensures the n8n Data Table used to store EUDAMED regulatory state exists.
- Pulls device and expiring MDR certificate data from the Apify “EU EUDAMED Intelligence” actor based on your UDI-DI and SRN watchlists (or generates built-in sample records for testing).
- Compares the latest Apify results with the stored state to detect new entities, recalls/FSCAs, conformity or risk changes, and certificate expiry countdown updates, then upserts the current state to the n8n Data Table.
- Appends the detected changes to a Google Sheets tab as an audit ledger.
- Selects only items that are new, changed, or due for an expiry reminder and sends up to five of the highest-priority items to OpenAI (gpt-4o-mini) to generate structured MDR/IVDR urgency, article references, impact summaries, and recommended QA actions.
- Emails urgent items to a QA/RA address via Gmail and posts a grouped, consolidated regulatory brief to a Slack channel.
- After Slack accepts the message, stamps the corresponding entities in the Data Table as notified/reminded, and if Apify or Slack fails it triggers an error workflow to post a failure alert to Slack.
Setup
- Create an Apify token in Apify and add an n8n HTTP Header Auth credential that sets
Authorization: Bearer <YOUR_APIFY_TOKEN>, then select it in both Apify HTTP Request steps.
- Add credentials for OpenAI, Google Sheets, Gmail, and Slack, and set the Slack channel where the brief and failure alerts should be posted.
- Set your Google Sheets document ID and ensure a sheet/tab named
EUDAMED_Audit exists for appending the audit log.
- Update the watchlist and policy values (UDI-DIs, SRNs, expiry window, reminder days, QA email, and max items) in the configuration step, and optionally test using sampleDay 1 then sampleDay 2 before enabling live Apify calls.
- In n8n workflow settings, set this workflow (or a dedicated one) as the error workflow so failures generate the Slack failure alert.
Requirements
- n8n 2.48+ with Data Tables enabled (Cloud or self-hosted, core nodes only)
- Apify account + API token (francescopacifico1905/eudamed-intelligence Pay-Per-Event)
- OpenAI API key, Google Sheets, Gmail, and Slack workspace access
Customization
- Adjust remindDaysBefore (90,30,7) or expiringWithinDays in Set UDI-DI Watchlist, SRNs & Alert Policy.
- Customize CAPA scoring criteria in AI MDR/IVDR CAPA Triage or raise maxTotalChargeUsd on the Apify nodes for large hospital SKU catalogs.
Additional info
Uses synchronous Pay-Per-Event Apify calls capped at $0.25 per HTTP step; retry-on-fail is intentionally disabled to prevent double billing. Diagnostic NOT_FOUND / INVALID_IDENTIFIER items are never billed by the Actor.