{"product_id":"test-apify-recency-actor-rag-batches-in-n8n-manual-trigger","title":"Test Apify Recency Actor RAG Batches in n8n (Manual Trigger)","description":"\u003ch3\u003eTest Apify “Dataset Recency \u0026amp; Evidence Gate” Batches in n8n (Manual Trigger)\u003c\/h3\u003e\n\u003cp\u003eNeed to quickly verify whether a saved crawl batch passes your recency policy before ingestion? This n8n workflow manually generates (or accepts) a batch envelope, sends only the required record metadata to Apify’s \u003cstrong\u003eDataset Recency \u0026amp; Evidence Gate\u003c\/strong\u003e Actor, and then either releases the original documents for downstream processing or blocks the batch with diagnostics.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eManual trigger in n8n:\u003c\/strong\u003e Runs when you start it manually, making it ideal for on-demand QA and incident checks.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates\/uses a saved crawl batch:\u003c\/strong\u003e Builds a synthetic “saved crawl batch” (or uses your provided batch envelope) including document items plus capture metadata such as \u003ccode\u003ecrawl.loadedTime\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates schema \u0026amp; prepares Apify input:\u003c\/strong\u003e Checks the batch format and constructs an Apify Actor input containing only record IDs, observed timestamps, and source references.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalls the Apify Actor via API:\u003c\/strong\u003e Sends the request to Apify’s “Dataset Recency \u0026amp; Evidence Gate” Actor and retrieves the evaluation report.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates the result:\u003c\/strong\u003e Confirms the HTTP response and verifies policy settings, record alignment, and the aggregate pass\/fail decision.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePass vs. fail behavior:\u003c\/strong\u003e\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eIf the batch passes:\u003c\/strong\u003e Outputs each original document item for ingestion along with the gate record ID.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eIf it fails:\u003c\/strong\u003e Blocks ingestion and outputs the report summary and per-record results for troubleshooting.\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\u003ePre-flight testing a crawl batch’s recency window (based on \u003ccode\u003eas_of\u003c\/code\u003e, \u003ccode\u003emax_age_seconds\u003c\/code\u003e, and item \u003ccode\u003ecrawl.loadedTime\u003c\/code\u003e).\u003c\/li\u003e\n  \u003cli\u003eDebugging why a batch was rejected by Apify’s recency\/evidence policy—without running the full pipeline.\u003c\/li\u003e\n  \u003cli\u003eOperational QA for SaaS ingestion workflows where stale content must never enter downstream indexes.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes:\u003c\/strong\u003e Manual Trigger, HTTP Request, Code, If, Sticky Note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eApify integration:\u003c\/strong\u003e HTTP Header Auth credential using \u003ccode\u003eAuthorization: Bearer \u0026lt;APIFY_TOKEN\u0026gt;\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInputs you replace:\u003c\/strong\u003e \u003ccode\u003eas_of\u003c\/code\u003e, \u003ccode\u003emax_age_seconds\u003c\/code\u003e, \u003ccode\u003edataset_id\u003c\/code\u003e, \u003ccode\u003eoffset\u003c\/code\u003e, and batch \u003ccode\u003eitems\u003c\/code\u003e with \u003ccode\u003ecrawl.loadedTime\u003c\/code\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46157915291827,"sku":"N8N-20375","price":29.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/hYiDz1nTg_4yfWgwHHMJ_G6zjFj7N.png?v=1791018119","url":"https:\/\/buyflowscripts.com\/products\/test-apify-recency-actor-rag-batches-in-n8n-manual-trigger","provider":"N8N Commerce","version":"1.0","type":"link"}