See llms.txt for all machine-readable content.

Back to Templates

Monitor EU EUDAMED recalls and MDR certificates with Apify, OpenAI and Slack

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

  1. Runs on a daily schedule (or manually in sample mode) and ensures the n8n Data Table used to store EUDAMED regulatory state exists.
  2. 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).
  3. 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.
  4. Appends the detected changes to a Google Sheets tab as an audit ledger.
  5. 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.
  6. Emails urgent items to a QA/RA address via Gmail and posts a grouped, consolidated regulatory brief to a Slack channel.
  7. 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

  1. 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.
  2. Add credentials for OpenAI, Google Sheets, Gmail, and Slack, and set the Slack channel where the brief and failure alerts should be posted.
  3. Set your Google Sheets document ID and ensure a sheet/tab named EUDAMED_Audit exists for appending the audit log.
  4. 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.
  5. 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.