{
  "id": "GapGPTAgentStarter",
  "name": "GapGPT AI Agent Starter",
  "nodes": [
    {
      "parameters": {
        "public": false,
        "options": {}
      },
      "id": "4c7226f8-b752-45c5-99bb-ec37922b5e9d",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.4,
      "position": [
        -360,
        0
      ],
      "webhookId": "d559815a-a069-4205-8e35-d9ebf41d73a4"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "شما یک دستیار فارسی هستید. فقط برای محاسبه از ابزار Calculator استفاده کنید. اگر اطلاعات کافی ندارید، سؤال روشن‌کننده بپرسید و نتیجه ابزار را پیش از پاسخ بررسی کنید."
        }
      },
      "id": "cb690ec3-8e49-47f9-ac96-a446be18629f",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-5.6-terra",
          "mode": "id"
        },
        "responsesApiEnabled": false,
        "options": {
          "baseURL": "https://api.gapgpt.app/v1",
          "maxRetries": 1,
          "timeout": 60000
        }
      },
      "id": "41d71b6d-e9fe-4560-b02a-8bafc49ae226",
      "name": "GapGPT Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        -80,
        220
      ]
    },
    {
      "parameters": {},
      "id": "17296b5e-a8ce-4198-a793-38d641e49c7b",
      "name": "Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "typeVersion": 1,
      "position": [
        160,
        220
      ]
    },
    {
      "parameters": {
        "content": "## GapGPT AI Agent Starter\n\nTested for import with **n8n 2.29.10** on 2026-07-11.\n\n1. Create an OpenAI credential with your GapGPT API key and `https://api.gapgpt.app/v1` as the Base URL.\n2. Select it in **GapGPT Chat Model**.\n3. Test privately before publishing the chat.",
        "height": 300,
        "width": 380,
        "color": 7
      },
      "id": "bcbe776d-5ac2-4211-bc1b-d14d657706d7",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -500,
        -420
      ]
    }
  ],
  "connections": {
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GapGPT Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "active": false,
  "versionId": "6ef35606-a4c0-4755-bb57-743132f3cfab",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}
