{
 "name": "RecipeAgents: Alert when a supplier changes a price",
 "nodes": [
  {
   "parameters": {
    "pollTimes": {
     "item": [
      {
       "mode": "everyHour"
      }
     ]
    },
    "documentId": {
     "__rl": true,
     "value": "",
     "mode": "list"
    },
    "sheetName": {
     "__rl": true,
     "value": "",
     "mode": "list"
    },
    "event": "rowAdded",
    "options": {}
   },
   "id": "964209f0-2105-4270-9e4d-8fba4de93c2b",
   "name": "Google Sheets Trigger",
   "type": "n8n-nodes-base.googleSheetsTrigger",
   "typeVersion": 1,
   "position": [
    240,
    300
   ]
  },
  {
   "parameters": {
    "modelId": {
     "__rl": true,
     "value": "gpt-4o-mini",
     "mode": "list",
     "cachedResultName": "GPT-4O-MINI"
    },
    "messages": {
     "values": [
      {
       "content": "=Draft a short, polite email to {{ JSON.stringify($json) }} asking about the price change on  from  to  between  and . Under 70 words."
      }
     ]
    },
    "jsonOutput": true,
    "options": {}
   },
   "id": "1708fbff-665c-4ced-a629-b2bcf370d739",
   "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": "05eee475-9a63-4a01-8554-60a00a44c09d",
   "name": "Email me",
   "type": "n8n-nodes-base.gmail",
   "typeVersion": 2.1,
   "position": [
    760,
    300
   ]
  },
  {
   "parameters": {
    "content": "## Alert when a supplier changes a price\nFrom recipeagents.usestarbase.com/recipes/supplier-price-change-alert\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": "874389a6-362b-4c00-b40b-3e16d7ebc441",
   "name": "Read me",
   "type": "n8n-nodes-base.stickyNote",
   "typeVersion": 1,
   "position": [
    200,
    20
   ]
  }
 ],
 "connections": {
  "Google Sheets 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": []
}