{
 "name": "RecipeAgents: Bill emails into due-date reminders",
 "nodes": [
  {
   "parameters": {
    "pollTimes": {
     "item": [
      {
       "mode": "everyMinute"
      }
     ]
    },
    "simple": false,
    "filters": {
     "q": "in:inbox -category:promotions"
    },
    "options": {}
   },
   "id": "ccfa6d59-3f55-42a7-a503-8334d4300625",
   "name": "Gmail Trigger",
   "type": "n8n-nodes-base.gmailTrigger",
   "typeVersion": 1.2,
   "position": [
    240,
    300
   ]
  },
  {
   "parameters": {
    "modelId": {
     "__rl": true,
     "value": "gpt-4o-mini",
     "mode": "list",
     "cachedResultName": "GPT-4O-MINI"
    },
    "messages": {
     "values": [
      {
       "content": "=From this bill email, return JSON {biller, amount, currency, due_date YYYY-MM-DD}. Null if not stated. Email: {{ JSON.stringify($json) }}"
      }
     ]
    },
    "jsonOutput": true,
    "options": {}
   },
   "id": "a62cab21-fe33-4fd1-ae67-8a533cf3cd0b",
   "name": "AI step",
   "type": "@n8n/n8n-nodes-langchain.openAi",
   "typeVersion": 1.8,
   "position": [
    500,
    300
   ]
  },
  {
   "parameters": {
    "sendTo": "you@example.com",
    "subject": "RecipeAgents result",
    "emailType": "text",
    "message": "={{ typeof $json.message.content === 'string' ? $json.message.content : JSON.stringify($json.message.content, null, 2) }}",
    "options": {}
   },
   "id": "8e200e89-4131-4b16-97bc-b49f95c6c8ec",
   "name": "Email me",
   "type": "n8n-nodes-base.gmail",
   "typeVersion": 2.1,
   "position": [
    760,
    300
   ]
  },
  {
   "parameters": {
    "content": "## Bill emails into due-date reminders\nFrom recipeagents.usestarbase.com/recipes/bill-due-reminder\n\n1. Connect credentials on each node (Google, OpenAI, Slack).\n2. Pick your sheet/folder/channel and model.\n3. Run once with test data and check the output before activating.\nKeep a human check on anything customer-facing.",
    "height": 260,
    "width": 420
   },
   "id": "c81cf331-ec73-4bf9-82f9-98dbb96efb5f",
   "name": "Read me",
   "type": "n8n-nodes-base.stickyNote",
   "typeVersion": 1,
   "position": [
    200,
    20
   ]
  }
 ],
 "connections": {
  "Gmail Trigger": {
   "main": [
    [
     {
      "node": "AI step",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "AI step": {
   "main": [
    [
     {
      "node": "Email me",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "pinData": {},
 "active": false,
 "settings": {
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false
 },
 "tags": []
}