{
 "name": "RecipeAgents: Booking emails into one itinerary doc",
 "nodes": [
  {
   "parameters": {
    "pollTimes": {
     "item": [
      {
       "mode": "everyMinute"
      }
     ]
    },
    "simple": false,
    "filters": {
     "q": "in:inbox -category:promotions"
    },
    "options": {}
   },
   "id": "cb4293b1-947c-47ce-b671-4d59e85a312f",
   "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": "=Extract: type (flight/hotel/train/car), date/time with timezone, reference/PNR, address or terminal, and anything I must bring. One line each. Don't infer missing times. Email: {{ JSON.stringify($json) }}"
      }
     ]
    },
    "jsonOutput": true,
    "options": {}
   },
   "id": "a4f40d77-f6e8-4371-a8b4-374247a37c4b",
   "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": "71a78ad8-7625-4145-a8a9-adb743c1aa50",
   "name": "Email me",
   "type": "n8n-nodes-base.gmail",
   "typeVersion": 2.1,
   "position": [
    760,
    300
   ]
  },
  {
   "parameters": {
    "content": "## Booking emails into one itinerary doc\nFrom recipeagents.usestarbase.com/recipes/travel-confirmation-itinerary\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": "f1ef66c5-c3aa-4232-b395-7012dcebb82b",
   "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": []
}