{"product_id":"prey-screenshot-idle-detection-with-claude-vision-n8n-workflow","title":"Prey Screenshot Idle Detection with Claude Vision (n8n Workflow)","description":"\u003ch3\u003eDetect Prey idle state automatically using Claude Vision in n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow analyzes recent \u003cstrong\u003ePrey screenshots\u003c\/strong\u003e and uses \u003cstrong\u003eClaude Vision\u003c\/strong\u003e to determine whether a device is currently \u003cstrong\u003eidle\u003c\/strong\u003e—returning a clean JSON verdict (idle true\/false, plus a summary) with safeguards like a cooldown and minimum screenshot window.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTrigger execution\u003c\/strong\u003e via a POST request webhook (or run manually for testing) to start an idle-check.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnforce a configurable cooldown\u003c\/strong\u003e at the workflow level, stopping early if analysis ran too recently.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetch recent device reports from Prey\u003c\/strong\u003e and keep only those with screenshots inside the configured time window.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidate data sufficiency\u003c\/strong\u003e: if there aren’t enough screenshots or they don’t span the minimum required time, the workflow returns \u003cstrong\u003eidle: null\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEvenly sample and download screenshots\u003c\/strong\u003e (up to a maximum number), assembling them in chronological order.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRun Claude Vision\u003c\/strong\u003e using the Anthropic Messages API to assess whether meaningful on-screen changes indicate activity.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParse results\u003c\/strong\u003e from the model’s JSON response and output a final JSON verdict including idle status, a short summary, and analyzed report metadata.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRemote fleet management\u003c\/strong\u003e: flag potentially idle endpoints and reduce wasted compute or licensing usage.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOperations automation\u003c\/strong\u003e: drive ticketing or alerts when users appear inactive based on on-screen change detection.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS monitoring\u003c\/strong\u003e: integrate a reliable device activity check into your internal dashboards and workflows.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrey integration\u003c\/strong\u003e: fetch device reports and download screenshot images by device ID.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnthropic Claude Vision\u003c\/strong\u003e: screenshot set sent to the Anthropic Messages API for visual change\/activity assessment.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/tools referenced\u003c\/strong\u003e: \u003ccode\u003ewebhook\u003c\/code\u003e, \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003eno op\u003c\/code\u003e, and \u003ccode\u003esticky note\u003c\/code\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eSet your \u003cstrong\u003ePrey API credential\u003c\/strong\u003e, choose the target device ID, add your \u003cstrong\u003eAnthropic API credential\u003c\/strong\u003e, then configure your webhook route (e.g., \u003ccode\u003e\/prey-idle-check\u003c\/code\u003e) to begin receiving idle-check executions.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46058949673139,"sku":"N8N-19686","price":57.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/fc5nyW3NwtwcAFdAKyTzA_Ul3NVyAw.png?v=1789722611","url":"https:\/\/buyflowscripts.com\/products\/prey-screenshot-idle-detection-with-claude-vision-n8n-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}