AutomationFlowsWeb Scraping › Basic Webhook to HTTP Request Handler

Basic Webhook to HTTP Request Handler

Original n8n title: Gpt Basic Webhook

gpt-basic-webhook. Uses httpRequest. Webhook trigger; 3 nodes.

Webhook trigger★☆☆☆☆ complexity3 nodesHTTP Request
Web Scraping Trigger: Webhook Nodes: 3 Complexity: ★☆☆☆☆ 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": "gpt-basic-webhook",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "gpt",
        "responseMode": "responseNode",
        "options": {
          "rawBody": true
        }
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "id": "9a3e8a62-28cb-4816-bb86-21caf7abd3e4",
      "name": "Webhook"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.openai.com/v1/chat/completions",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"model\": \"gpt-3.5-turbo\",\n  \"messages\": [\n    { \"role\": \"user\", \"content\": \"{{ $json.body.prompt }}\" }\n  ]\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        220,
        0
      ],
      "id": "b2f33687-c58d-4da3-b09b-cb570e1c68b4",
      "name": "HTTP Request",
      "credentials": {
        "httpBearerAuth": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={\n\"message\":\"{{ $json.choices[0].message.content }}\"\n}",
        "options": {
          "responseCode": 200
        }
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        440,
        0
      ],
      "id": "26b74074-8d51-4764-b06a-e33e518748ae",
      "name": "Respond to Webhook"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "295d376f-3c3d-4f9a-9ed7-d3bd1907aa2c",
  "id": "0zs1Po4ZP0aXMbYY",
  "tags": []
}

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

gpt-basic-webhook. Uses httpRequest. Webhook trigger; 3 nodes.

Source: https://github.com/gseriche/n8n-automation-lab/blob/60f62f4502e079cace51127f596b01715813df8a/flows/gpt-basic-webhook.json — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

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

Web Scraping

Blog_Summarizer. Uses httpRequest. Webhook trigger; 7 nodes.

HTTP Request
Web Scraping

User Onboarding Workflow. Uses httpRequest, emailSend. Webhook trigger; 7 nodes.

HTTP Request, Email Send
Web Scraping

Excalibur — Fluxo Completo. Uses httpRequest. Webhook trigger; 7 nodes.

HTTP Request
Web Scraping

WF-05: Trade Alert (Webhook from Strategy Engine). Uses httpRequest. Webhook trigger; 7 nodes.

HTTP Request
Web Scraping

This workflow triggers when a new opportunity is created in Go High Level (GHL), fetches the associated contact details, and initiates an outbound call using Vapi. The call is made by a Vapi assistant

HTTP Request, High Level