{"product_id":"n8n-lead-prioritization-workflow-export-csv-reports-code","title":"n8n Lead Prioritization Workflow + Export CSV Reports (Code)","description":"\u003ch3\u003ePrioritize inbound leads and instantly export decision-ready CSV reports (Code)\u003c\/h3\u003e\n\u003cp\u003e\u003cstrong\u003en8n Lead Prioritization Workflow + Export CSV Reports (Code)\u003c\/strong\u003e manually validates your lead records, assigns a \u003cstrong\u003ebudget\/deadline-based priority\u003c\/strong\u003e (high\/normal\/review), and generates both \u003cstrong\u003estructured JSON results\u003c\/strong\u003e and a \u003cstrong\u003edownloadable CSV\u003c\/strong\u003e with suggested next actions and draft email reply text.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns on-demand\u003c\/strong\u003e: execute it manually inside your n8n instance (no external triggers).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLoads context from Configuration\u003c\/strong\u003e: reads the reference date (asOf), output language (\u003cem\u003eFrench or English\u003c\/em\u003e), and \u003cstrong\u003eminimumBudgetCents\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIngests lead records\u003c\/strong\u003e (ID, name, email, service, budget, requested date) plus an optional list of previously processed keys.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates \u0026amp; deduplicates\u003c\/strong\u003e: checks each record, then deduplicates using \u003cstrong\u003eidempotency keys\u003c\/strong\u003e to avoid re-processing.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAssigns priority\u003c\/strong\u003e: determines high\/normal\/review based on the minimum budget threshold and how soon the requested date is.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOutputs results\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eA \u003cstrong\u003eJSON summary\u003c\/strong\u003e of prioritized leads\u003c\/li\u003e\n      \u003cli\u003eA \u003cstrong\u003eCSV export\u003c\/strong\u003e including next-action guidance and email subject\/body drafts\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eReview and triage leads from a CRM or form export before assigning owners.\u003c\/li\u003e\n  \u003cli\u003eGenerate consistent follow-up messaging in \u003cstrong\u003eEnglish or French\u003c\/strong\u003e for time-sensitive leads.\u003c\/li\u003e\n  \u003cli\u003eRun periodic “lead batch” prioritization and prevent duplicate outreach using processed keys.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eManual Trigger\u003c\/strong\u003e (runs only when you execute it)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSet\u003c\/strong\u003e node for configuration and input preparation\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCode\u003c\/strong\u003e node for validation, deduplication (idempotency keys), and priority logic\u003c\/li\u003e\n  \u003cli\u003eA \u003cstrong\u003esticky note\u003c\/strong\u003e to guide configuration\/setup\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eHow to get started\u003c\/strong\u003e: import the workflow into n8n, update \u003cem\u003easOf\u003c\/em\u003e, \u003cem\u003elocale fr\/en\u003c\/em\u003e, and \u003cem\u003eminimumBudgetCents\u003c\/em\u003e, then replace the sample lead records in the Input records step (date format: \u003ccode\u003eYYYY-MM-DD\u003c\/code\u003e). For cross-run deduplication, paste returned \u003ccode\u003enextProcessedKeys\u003c\/code\u003e into \u003ccode\u003eprocessedKeys\u003c\/code\u003e on the next execution.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46192841064627,"sku":"N8N-20670","price":51.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/GNRg86I4ZfR1PBx-kTKzi_AkrBShwO.png?v=1791537070","url":"https:\/\/buyflowscripts.com\/products\/n8n-lead-prioritization-workflow-export-csv-reports-code","provider":"N8N Commerce","version":"1.0","type":"link"}