You are helping me build the following AI agent workflow. ## Goal Backup n8n Workflows With Versioning: Backs up n8n workflows to a destination instance with date-prefixed versions and logs execution stats to Notion. ## Specification - What it does: Copies n8n workflows from a source instance to a destination using the n8n API. It prefixes each workflow name with the current date to maintain version history and applies a rolling retention policy to delete old versions. The process logs execution details such as the date and number of processed workflows into a central Notion database. - Trigger: On a schedule (Manual ยท on demand) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - n8n API: Copy workflows between instances - Notion: Track execution date and workflow count ## Known pitfalls, handle each one explicitly in your implementation 1. Destination workflows might conflict with existing IDs if not handled carefully, so ensure the create endpoint is used rather than update to avoid overwriting active flows. 2. Notion database schema changes can break log entries, so validate column types before appending new data rows. 3. Date prefixing may cause sorting issues in Notion views, so format dates as YYYY-MM-DD to guarantee chronological order. ## Reference implementation https://n8n.io/workflows/6947 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/backup-n8n-workflows-with-versioning/ via usecasesforagents.com