{
  "name": "Automate airlines customer support with GPT-4 and question classification",
  "nodes": [
    {
      "id": "d1db4f7a-cbb3-4ae1-a476-184c12f3b84c",
      "name": "Webhook - User Question",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2240,
        -48
      ]
    },
    {
      "id": "0bef0713-edcc-471a-99b5-461a74ddb142",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2302,
        -204
      ],
      "parameters": {
        "width": 220,
        "height": 316,
        "content": "## 📥 ENTRY POINT\nReceives travel questions from users"
      }
    },
    {
      "id": "315fc368-5276-43ea-a448-9fa6196ad139",
      "name": "Extract & Clean Question",
      "type": "n8n-nodes-base.code",
      "position": [
        -2016,
        -48
      ]
    },
    {
      "id": "1ba95fc8-ec26-4777-9862-f935b9eb1689",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2078,
        -204
      ],
      "parameters": {
        "width": 220,
        "height": 316,
        "content": "## 🔍 DATA EXTRACTION\nCleans and structures incoming question"
      }
    },
    {
      "id": "8497922b-c25a-499c-9011-30658f50f7fb",
      "name": "Classify Question Category",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1792,
        -48
      ]
    },
    {
      "id": "769f6bfc-2285-48b4-9e66-39df46c26e08",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1854,
        -252
      ],
      "parameters": {
        "width": 220,
        "height": 364,
        "content": "## 🏷️ CATEGORIZATION\nClassifies question into travel categories"
      }
    },
    {
      "id": "3cfb9603-87c8-400e-8759-16e48edc9b3a",
      "name": "Parse Category Result",
      "type": "n8n-nodes-base.code",
      "position": [
        -1568,
        -48
      ]
    },
    {
      "id": "095d8f5c-5ade-410f-8520-f6425cc1dfc2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1630,
        -204
      ],
      "parameters": {
        "width": 220,
        "height": 316,
        "content": "## 📋 CATEGORY PARSING\nStores question category for routing"
      }
    },
    {
      "id": "bb2ef1fa-d174-4bc7-9701-2198294717ea",
      "name": "Fetch Knowledge Base Context",
      "type": "n8n-nodes-base.code",
      "position": [
        -1344,
        -48
      ]
    },
    {
      "id": "08a39ce0-ceeb-42b7-8834-7ab611c4ca0f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1416,
        -188
      ],
      "parameters": {
        "width": null,
        "height": 300,
        "content": "## 📚 KNOWLEDGE BASE\nFetches relevant travel information"
      }
    },
    {
      "id": "41dd1bb9-921f-4260-aa46-0af5ac648a4b",
      "name": "Generate AI Answer",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1120,
        -48
      ]
    },
    {
      "id": "cfdcbd1d-75ae-43c8-85da-32f8f6f68191",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1192,
        -172
      ],
      "parameters": {
        "width": null,
        "height": 284,
        "content": "## 🤖 AI RESPONSE\nGenerates intelligent answer using GPT-4"
      }
    },
    {
      "id": "e153881f-8b15-4138-9b2b-40aca2b9da64",
      "name": "Format Final Response",
      "type": "n8n-nodes-base.code",
      "position": [
        -896,
        -48
      ]
    },
    {
      "id": "33add07e-b654-40f6-b949-306c54fff462",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -958,
        -204
      ],
      "parameters": {
        "width": 220,
        "height": 316,
        "content": "## 📝 RESPONSE FORMATTING\nAdds helpful links and structures reply"
      }
    },
    {
      "id": "8ca97e45-3377-43ec-986c-60437382fc97",
      "name": "Check User Satisfaction",
      "type": "n8n-nodes-base.if",
      "position": [
        -672,
        -48
      ]
    },
    {
      "id": "df25cb34-8bfc-49dc-84e2-fb49e4eaa574",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -734,
        -316
      ],
      "parameters": {
        "width": 220,
        "height": 428,
        "content": "## ✅ SATISFACTION CHECK\nDetects if user is satisfied with answer"
      }
    },
    {
      "id": "02415ea9-30f3-4e6a-9417-cbddb271385c",
      "name": "Log Satisfied User",
      "type": "n8n-nodes-base.code",
      "position": [
        -448,
        -144
      ]
    },
    {
      "id": "bdc67353-8ec2-4cc0-8b52-9b3d47b8dfc9",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -400
      ],
      "parameters": {
        "width": 200,
        "height": 280,
        "content": "## 😊 SATISFIED PATH\nUser is happy with the response"
      }
    },
    {
      "id": "cd966262-02d7-4a2a-8c4d-d4817274cbf6",
      "name": "Offer Human Support",
      "type": "n8n-nodes-base.code",
      "position": [
        -448,
        48
      ]
    },
    {
      "id": "d7e44de7-358f-49b8-b33d-4a07a9119405",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        208
      ],
      "parameters": {
        "width": 200,
        "height": 328,
        "content": "## 🤝 FOLLOW-UP PATH\nOffers additional support options"
      }
    },
    {
      "id": "d109c4a2-0fbf-4d2d-b83a-6a564dc0debf",
      "name": "Merge Satisfaction Paths",
      "type": "n8n-nodes-base.merge",
      "position": [
        -224,
        -48
      ]
    },
    {
      "id": "93a86c68-f530-42e1-bdb8-fc96d2a8ff0f",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -276,
        -220
      ],
      "parameters": {
        "width": 200,
        "height": 332,
        "content": "## 🔀 PATH MERGE\nCombines different user paths"
      }
    },
    {
      "id": "74c7c9f0-6980-49c3-ad70-83a1302b30f8",
      "name": "Log Interaction to Database",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        -48
      ]
    },
    {
      "id": "fd0b4322-d55f-4fe4-b012-95449f15f1a6",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -62,
        -316
      ],
      "parameters": {
        "width": 220,
        "height": 428,
        "content": "## 💾 DATABASE LOGGING\nStores conversation for analytics"
      }
    },
    {
      "id": "74fac8eb-c4d9-4c90-bb9b-b8a833e2285b",
      "name": "Send Response to User",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        224,
        -48
      ]
    },
    {
      "id": "fe10f085-1e51-4fdf-9c12-d673e1549176",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        162,
        -252
      ],
      "parameters": {
        "width": 220,
        "height": 364,
        "content": "## 📤 RESPONSE DELIVERY\nSends answer back to user interface"
      }
    },
    {
      "id": "76739678-85b5-4e62-a537-ad651b769001",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1616,
        -1024
      ],
      "parameters": {
        "width": 380,
        "height": 664,
        "content": "## ✈️ AIRLINES FAQ BOT\n\n**Intelligent Travel Assistant**\n\n**Categories Handled:**\n• Destinations & Travel Info\n• Package Deals & Offers  \n• Visa Requirements\n• Transportation Options\n• Hotel Bookings\n"
      }
    }
  ],
  "connections": {
    "Generate AI Answer": {
      "main": [
        [
          {
            "node": "Format Final Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Satisfied User": {
      "main": [
        [
          {
            "node": "Merge Satisfaction Paths",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Offer Human Support": {
      "main": [
        [
          {
            "node": "Merge Satisfaction Paths",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Format Final Response": {
      "main": [
        [
          {
            "node": "Check User Satisfaction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Category Result": {
      "main": [
        [
          {
            "node": "Fetch Knowledge Base Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check User Satisfaction": {
      "main": [
        [
          {
            "node": "Log Satisfied User",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Offer Human Support",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - User Question": {
      "main": [
        [
          {
            "node": "Extract & Clean Question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract & Clean Question": {
      "main": [
        [
          {
            "node": "Classify Question Category",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Satisfaction Paths": {
      "main": [
        [
          {
            "node": "Log Interaction to Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Question Category": {
      "main": [
        [
          {
            "node": "Parse Category Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Interaction to Database": {
      "main": [
        [
          {
            "node": "Send Response to User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Knowledge Base Context": {
      "main": [
        [
          {
            "node": "Generate AI Answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}