{
  "name": "Automate conference travel approvals with Deepseek AI, Gmail and Google Sheets",
  "nodes": [
    {
      "id": "0d8d20d1-ebfd-48d5-a0f7-69df51d4dd87",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        432,
        816
      ]
    },
    {
      "id": "ef08d98d-ba47-4d3f-acdf-c6940156c21e",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        608,
        816
      ]
    },
    {
      "id": "03741e53-ce18-43ac-9aab-041b53a30f2e",
      "name": "Fetch Exchange Rates",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        928,
        512
      ]
    },
    {
      "id": "f61e2b68-430a-40aa-94a7-73f8963a14bc",
      "name": "Get Conference Details",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1072,
        1008
      ]
    },
    {
      "id": "0cf985e3-08ef-4005-b746-fe3a5ffd914f",
      "name": "Calculate Total Expenses",
      "type": "n8n-nodes-base.code",
      "position": [
        1456,
        944
      ]
    },
    {
      "id": "11ef4ad2-f2f5-4016-9883-d6ecb5c718f3",
      "name": "Parse Flight Quotes",
      "type": "n8n-nodes-base.code",
      "position": [
        752,
        1024
      ]
    },
    {
      "id": "b49ca159-d67e-4616-8471-4d2117e63c09",
      "name": "Check Budget Approval",
      "type": "n8n-nodes-base.if",
      "position": [
        1616,
        896
      ]
    },
    {
      "id": "1e851a62-a2c5-4705-9475-4b94884cbb7b",
      "name": "Format Approved Email",
      "type": "n8n-nodes-base.set",
      "position": [
        1808,
        800
      ]
    },
    {
      "id": "ec6721fd-ce14-4f23-87b9-ffc261936041",
      "name": "Format Budget Warning",
      "type": "n8n-nodes-base.set",
      "position": [
        1808,
        992
      ]
    },
    {
      "id": "5132d897-9b2a-41a0-9e29-b369d5088781",
      "name": "Merge Email Versions",
      "type": "n8n-nodes-base.merge",
      "position": [
        2000,
        896
      ]
    },
    {
      "id": "cabe15e3-2646-421d-85d8-d6e93df6f5bc",
      "name": "Aggregate Flight Options",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1072,
        1168
      ]
    },
    {
      "id": "7cc4cbaa-1633-4979-a806-970facd09c5e",
      "name": "Send Email to CEO",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2320,
        896
      ]
    },
    {
      "id": "398626ee-0684-4f84-807b-cff1e9549649",
      "name": "Log to Expense Tracker",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2480,
        896
      ]
    },
    {
      "id": "0a7135cb-ce36-4563-a1c0-79b07d3c69ac",
      "name": "Generate PDF Attachment",
      "type": "n8n-nodes-base.code",
      "position": [
        2160,
        896
      ]
    },
    {
      "id": "066eacb2-cded-432f-8445-eac669cea189",
      "name": "Extract Currency Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        512
      ]
    },
    {
      "id": "d4c07c73-432a-4f66-9b47-d711d7b79bbc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        304
      ],
      "parameters": {
        "width": 432,
        "height": 288,
        "content": "## Introduction\nAutomates overseas conference approval requests to CEO. Generates emails with conference details, flight quotes, accommodation, expense breakdown, and admin procedures. Ensures consist"
      }
    },
    {
      "id": "6622524c-a263-4550-8632-ae8af04b5b9c",
      "name": "AI Email Composer Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1024,
        656
      ]
    },
    {
      "id": "af94a729-823f-4b1d-8bdd-41f5b63038ca",
      "name": "Calculator Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        1024,
        864
      ]
    },
    {
      "id": "ef466e89-8b96-4eac-a797-556f385df2e8",
      "name": "Expense Analysis Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1152,
        864
      ]
    },
    {
      "id": "e9d19ed2-312a-45a9-93e9-cc32eafb1359",
      "name": "Flight Comparison Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1280,
        864
      ]
    },
    {
      "id": "8f22dc11-0b4d-4efe-b3c3-45a8b219ddc0",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        896,
        832
      ]
    },
    {
      "id": "e5599b51-e9a4-432e-87cc-0f139c495c64",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2000,
        304
      ],
      "parameters": {
        "width": 544,
        "height": 496,
        "content": "## Prerequisites\nn8n instance, Currency API, Conference API, OpenAI GPT-4 key, Gmail with OAuth, Google Sheets, PDF generator, Travel agent API\n\n## Use Cases\n**Academic:** Staff requests conference wi"
      }
    },
    {
      "id": "4f076598-cc6b-4642-aca6-2dadf1d03da7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        304
      ],
      "parameters": {
        "width": 608,
        "height": 480,
        "content": "## Workflow Steps\n1. **Initialization:** Manual trigger with conference parameters, sets variables (name, dates, location, funding)\n2. **Data Collection:** Fetches/parses exchange rates, conference de"
      }
    },
    {
      "id": "6fda8224-afd3-43fd-9fea-05e5ebeeae89",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        304
      ],
      "parameters": {
        "width": 448,
        "height": null,
        "content": "## Workflow Template\nManual Trigger → Configuration → [Exchange Rates + Conference Details + Flight Quotes] → AI Agent → [GPT-4 + Calculate + Extract + Generate Tools] → Total Expenses → Budget Check "
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculator Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Email Composer Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send Email to CEO": {
      "main": [
        [
          {
            "node": "Log to Expense Tracker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Flight Quotes": {
      "main": [
        [
          {
            "node": "Aggregate Flight Options",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Exchange Rates": {
      "main": [
        [
          {
            "node": "Extract Currency Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Email Versions": {
      "main": [
        [
          {
            "node": "Generate PDF Attachment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Budget Approval": {
      "main": [
        [
          {
            "node": "Format Approved Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Format Budget Warning",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Expense Analysis Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Email Composer Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Extract Currency Data": {
      "main": [
        [
          {
            "node": "Calculate Total Expenses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Approved Email": {
      "main": [
        [
          {
            "node": "Merge Email Versions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Budget Warning": {
      "main": [
        [
          {
            "node": "Merge Email Versions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Email Composer Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Flight Comparison Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Email Composer Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Conference Details": {
      "main": [
        [
          {
            "node": "Calculate Total Expenses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Exchange Rates",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Conference Details",
            "type": "main",
            "index": 0
          },
          {
            "node": "Parse Flight Quotes",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Email Composer Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Email Composer Agent": {
      "main": [
        [
          {
            "node": "Calculate Total Expenses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate PDF Attachment": {
      "main": [
        [
          {
            "node": "Send Email to CEO",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Flight Options": {
      "main": [
        [
          {
            "node": "Calculate Total Expenses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Total Expenses": {
      "main": [
        [
          {
            "node": "Check Budget Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}