{ "id": "Mdopqz1Tq0OHDFq1", "name": "ben.io-task agent", "nodes": [ { "parameters": { "workflowInputs": { "values": [ { "name": "request" } ] } }, "type": "n8n-nodes-base.executeWorkflowTrigger", "typeVersion": 1.1, "position": [ -752, 16 ], "id": "781db6ec-9be3-4db2-a194-1ef21b550f42", "name": "When Executed by Another Workflow" }, { "parameters": { "promptType": "define", "text": "=Generate and send my daily task briefing email based on my current open tasks.", "needsFallback": true, "options": { "systemMessage": "You are an executive assistant responsible for generating a daily task briefing.\n\n## Data Processing Rules\n1. **Fetch Data**: Always call both `GTasks: Get All Tasklists` and `GTasks: Get All Tasks`.\n2. **Map Categories**: \n - You must link Tasks to their List Name. \n - Extract the List ID from the task's `selfLink` attribute (the string between `/lists/` and `/tasks/`).\n - Match this ID to the `id` from the Tasklists output to get the human-readable Category Name (e.g., \"Finance\", \"House\").\n3. **Determine Priority**:\n - **High**: Due date is today, in the past (overdue), or status is 'needsAction' with a due date today/past.\n - **Normal**: Due date is within the next 7 days.\n - **Low**: No due date or due date is > 7 days away.\n - *Exclude tasks with status 'completed'.*\n\n## Output Formatting\n1. **Style**: Use simple, semantic HTML only. No CSS or `