{"product_id":"n8n-ai-agent-workflow-extract-tasks-from-text-with-openrouter","title":"n8n AI Agent Workflow: Extract Tasks from Text with OpenRouter","description":"\u003ch3\u003eExtract clear tasks, assignees, and deadlines from text—automatically—with an n8n AI Agent using OpenRouter\u003c\/h3\u003e\n\u003cp\u003eHave messy notes, emails, or messages that contain actionable items? This \u003cstrong\u003en8n AI Agent Workflow\u003c\/strong\u003e reads your input text, asks the best available \u003cstrong\u003eOpenRouter\u003c\/strong\u003e chat model to extract \u003cstrong\u003etasks, assignees, and deadlines\u003c\/strong\u003e, and returns \u003cstrong\u003evalidated JSON\u003c\/strong\u003e—with built-in fallback retries if an API call fails.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eRuns when you manually execute the workflow (manual trigger).\u003c\/li\u003e\n  \u003cli\u003eCalls the \u003cstrong\u003eOpenRouter Models API\u003c\/strong\u003e to fetch the current model catalog.\u003c\/li\u003e\n  \u003cli\u003eFilters for \u003cstrong\u003efree\u003c\/strong\u003e, \u003cstrong\u003etext-capable chat models\u003c\/strong\u003e, then ranks candidates by factors like \u003cstrong\u003econtext length\u003c\/strong\u003e, \u003cstrong\u003eestimated parameter size\u003c\/strong\u003e, \u003cstrong\u003evendor reputation\u003c\/strong\u003e, and supported features.\u003c\/li\u003e\n  \u003cli\u003eSends the extraction prompt plus your input text to the selected OpenRouter model via an \u003cstrong\u003en8n AI Agent\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eIf the OpenRouter call fails (e.g., rate limits), it automatically \u003cstrong\u003eretries with the next ranked fallback model\u003c\/strong\u003e until one succeeds or the list is exhausted.\u003c\/li\u003e\n  \u003cli\u003eParses the AI response into a clean \u003cstrong\u003eJSON object\u003c\/strong\u003e containing a summary and structured action items.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eTurn meeting notes into an actionable task list with owners and due dates.\u003c\/li\u003e\n  \u003cli\u003eExtract project action items from project updates or support tickets.\u003c\/li\u003e\n  \u003cli\u003eConvert informal “to-do” notes into structured JSON for downstream automation in your n8n workflows.\u003c\/li\u003e\n  \u003cli\u003eUse a reliable OpenRouter fallback strategy to keep extraction running during provider issues.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes \/ tools used:\u003c\/strong\u003e Code, Sticky Note, HTTP Request, Manual Trigger, \u003cstrong\u003en8n-nodes-langchainagent\u003c\/strong\u003e (AI Agent), \u003cstrong\u003en8n-nodes-langchainlm chat open router\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegration:\u003c\/strong\u003e OpenRouter API for model metadata and chat completions.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup:\u003c\/strong\u003e Add an OpenRouter API key credential for the OpenRouter Chat Model connection, then update the prompt and the “Input Text to Process.”\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45800351105203,"sku":"N8N-17944","price":73.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/SyR5HH3B56hYOBKTMWof6_XbxWJSvu.png?v=1786266182","url":"https:\/\/buyflowscripts.com\/products\/n8n-ai-agent-workflow-extract-tasks-from-text-with-openrouter","provider":"N8N Commerce","version":"1.0","type":"link"}