AutomationFlowsAI & RAG › AI Planning Agent via Webhook

AI Planning Agent via Webhook

Original n8n title: Thunder Planning Agent (basic)

Thunder Planning Agent (Basic). Uses openAi, respondToWebhook. Webhook trigger; 3 nodes.

Webhook trigger★☆☆☆☆ complexityAI-powered3 nodesOpenAI
AI & RAG Trigger: Webhook Nodes: 3 Complexity: ★☆☆☆☆ AI nodes: yes Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Thunder Planning Agent (Basic)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "planning-agent",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "webhook-trigger",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "resource": "text",
        "operation": "message",
        "modelId": "gpt-4o",
        "prompt": "={{ $json.body.prompt }}",
        "options": {
          "systemMessage": "Sen Thunder ERP'nin \u00fcretim planlama agent'\u0131s\u0131n.\n\nG\u00f6revlerin:\n1. Sipari\u015f bilgilerini analiz et\n2. BOM (Bill of Materials) kontrol et\n3. Stok durumunu de\u011ferlendir\n4. \u00dcretim s\u00fcrelerini hesapla\n5. Optimum \u00fcretim plan\u0131 olu\u015ftur\n\nYan\u0131t format\u0131 JSON:\n{\n  \"decision\": \"approved\" | \"rejected\" | \"needs_review\",\n  \"reasoning\": \"Karar gerek\u00e7esi\",\n  \"production_plan\": {\n    \"start_date\": \"2025-12-20\",\n    \"end_date\": \"2025-12-27\",\n    \"estimated_duration_hours\": 168,\n    \"required_materials\": [],\n    \"warnings\": []\n  },\n  \"confidence\": 0.95\n}",
          "temperature": 0.7,
          "maxTokens": 2048
        }
      },
      "id": "openai-agent",
      "name": "Planning Agent (GPT-4o)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1,
      "position": [
        450,
        300
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ {\n  \"success\": true,\n  \"agent\": \"planning\",\n  \"response\": $json.message.content,\n  \"tokens\": $json.usage.total_tokens,\n  \"cost\": ($json.usage.prompt_tokens * 0.005 / 1000) + ($json.usage.completion_tokens * 0.015 / 1000)\n} }}"
      },
      "id": "response",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    }
  ],
  "connections": {
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Planning Agent (GPT-4o)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Planning Agent (GPT-4o)": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [],
  "triggerCount": 0,
  "updatedAt": "2025-01-27T00:00:00.000Z",
  "versionId": "1"
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Thunder Planning Agent (Basic). Uses openAi, respondToWebhook. Webhook trigger; 3 nodes.

Source: https://github.com/Huseyintabak/ERP-V2/blob/48823c94dce6339aa9fcdebba0bf9b9fb02d800b/n8n-workflows/planning-agent-ready.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Mario Speaker. Uses openAi, agent, lmChatOpenAi, memoryBufferWindow. Webhook trigger; 7 nodes.

OpenAI, Agent, OpenAI Chat +1
AI & RAG

AI Support Agent with Verifiable Decision Receipts. Uses openAi, n8n-nodes-signatrust. Webhook trigger; 5 nodes.

OpenAI, N8N Nodes Signatrust
AI & RAG

VEP WAPP. Uses openAi, lmChatOpenAi, toolCalculator, agent. Webhook trigger; 100 nodes.

OpenAI, OpenAI Chat, Tool Calculator +7
AI & RAG

Cold email Agent. Uses googleSheets, gmail, httpRequest, openAi. Webhook trigger; 100 nodes.

Google Sheets, Gmail, HTTP Request +1
AI & RAG

Cold email Agent. Uses googleSheets, gmail, httpRequest, openAi. Webhook trigger; 100 nodes.

Google Sheets, Gmail, HTTP Request +1