{
  "name": "Build your first AI agent with ChatGPT-5",
  "nodes": [
    {
      "id": "4fe554a8-5f53-40a5-8d2a-b01508f4e7a0",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -368
      ],
      "parameters": {
        "width": 528,
        "height": 1088,
        "content": "### 🎥 Watch This Tutorial\n\n@[youtube](MYLub9KYlu8)\n\n\n### 📥  [Open full documentation on Notion](https://automatisation.notion.site/Build-Your-First-AI-Agent-with-ChatGPT-5-By-Dr-Firas-26f3d6550fd9801e"
      }
    },
    {
      "id": "cf792bfc-f214-419c-af01-40d2929455cd",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        -368
      ],
      "parameters": {
        "width": 1152,
        "height": 1088,
        "content": "## Build Your First AI Agent with ChatGPT-5 (By Dr. Firas)\nThis workflow allows users to chat with an AI Agent powered by ChatGPT-5, connected to a knowledge base stored in Google Sheets. The agent ca"
      }
    },
    {
      "id": "2a2a64b2-06c1-4cb3-9043-f36c8ea38f1b",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -240
      ],
      "parameters": {
        "width": 320,
        "height": 480,
        "content": "### 1. Ask Questions of Your Data\n\nYou can ask natural language questions to analyze your knowledge data, such as:\n- **Ask about company**, training packs, or policies directly from the knowledge base"
      }
    },
    {
      "id": "87c9f7a4-be90-4c36-8561-bfdd69defcff",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        240
      ],
      "parameters": {
        "width": 320,
        "height": 432,
        "content": "### 2. Set Up OpenAI Connection\n\n#### Get API Key:\n1. Go to [OpenAI Platform](https://platform.openai.com/api-keys)\n1. Go to [OpenAI Billing](https://platform.openai.com/settings/organization/billing/"
      }
    },
    {
      "id": "b9e43b10-1780-44ab-ac3b-27fa9813d227",
      "name": "Chat with Your Data",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -384,
        48
      ]
    },
    {
      "id": "0b24279c-da42-44c8-b1ef-483326a086eb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        -240
      ],
      "parameters": {
        "width": 736,
        "height": 912,
        "content": "### 3. Handle Scheduling & Appointments\nThe AI Agent manages the entire scheduling process with clarity and precision.\nIt ensures availability is checked, bookings are confirmed, and clients receive p"
      }
    },
    {
      "id": "9b3813e6-fef3-4157-be3d-953d5eb4264b",
      "name": "Reasoning Tool (LangChain)",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        32,
        496
      ]
    },
    {
      "id": "03e1a515-fe60-49f3-9191-95e9974b30d0",
      "name": "OpenAI GPT-5 Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -352,
        496
      ]
    },
    {
      "id": "bfba375e-9b5f-4460-a8fc-3938905b96a2",
      "name": "Knowledgebase Lookup",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        -96,
        496
      ]
    },
    {
      "id": "e30d4c5c-4447-41ae-a526-096889c7146d",
      "name": "Calendar: Check Availability",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        176,
        496
      ]
    },
    {
      "id": "a9028dbc-e242-46ad-8da7-00e3f2c45dfe",
      "name": "Calendar: Create Appointment",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        320,
        496
      ]
    },
    {
      "id": "bc0357c3-4d1d-4a7e-871c-e03da33b3b9a",
      "name": "Send Booking Confirmation",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        464,
        496
      ]
    },
    {
      "id": "478b5d92-01e3-4d2e-92a2-3d6703e5d097",
      "name": "AI Agent Support",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        272,
        48
      ]
    },
    {
      "id": "e89c5892-1ea1-430a-9ef9-13afc92fd982",
      "name": "Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        368,
        -128
      ]
    }
  ],
  "connections": {
    "Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent Support",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-5 Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Support",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Chat with Your Data": {
      "main": [
        [
          {
            "node": "AI Agent Support",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Knowledgebase Lookup": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Support",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send Booking Confirmation": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Support",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Reasoning Tool (LangChain)": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Support",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Calendar: Check Availability": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Support",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Calendar: Create Appointment": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Support",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}