AutomationFlowsWeb Scraping › Ejemplo Invocacion Claude Haiku Skill50

Ejemplo Invocacion Claude Haiku Skill50

EJEMPLO-invocacion-claude-haiku-skill50. Uses httpRequest. Webhook trigger; 6 nodes.

Webhook trigger★★★★☆ complexity6 nodesHTTP Request
Web Scraping Trigger: Webhook Nodes: 6 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
{
  "updatedAt": "2026-04-20T22:01:53.990Z",
  "createdAt": "2026-04-20T19:19:04.933Z",
  "id": "sFJRUJbyMEXZlIyV",
  "name": "EJEMPLO-invocacion-claude-haiku-skill50",
  "description": null,
  "active": true,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "test-50-saludo",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "webhook-trigger",
      "name": "Webhook Saludo",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        208,
        304
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.anthropic.com/v1/messages",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "anthropic-version",
              "value": "2023-06-01"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({model:\"claude-haiku-4-5-20251001\",max_tokens:200,system:\"Eres un saludador entusiasta. Saluda al usuario por su nombre en espanol en 2-3 lineas amigables.\",messages:[{role:\"user\",content:`Saluda a ${$json.body?.nombre || $json.nombre || \"amigo\"}`}]}) }}",
        "options": {
          "timeout": 30000
        }
      },
      "id": "claude-haiku",
      "name": "Claude Haiku Saludo",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        464,
        304
      ],
      "retryOnFail": true,
      "maxTries": 3,
      "waitBetweenTries": 2000,
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "// Extraer texto del response Claude + log estructurado\nconst response = $input.item.json;\nconst saludo = response.content?.[0]?.text || 'Saludo no disponible';\nconst traceId = `test-50-${Date.now()}-${Math.random().toString(36).substr(2, 8)}`;\n\n// Log estructurado\nconsole.log(JSON.stringify({\n  level: 'INFO',\n  event: 'saludo_generado_ok',\n  trace_id: traceId,\n  timestamp: new Date().toISOString(),\n  input_usage: response.usage,\n  length: saludo.length\n}));\n\nreturn {\n  json: {\n    saludo: saludo,\n    trace_id: traceId,\n    status: 'success',\n    model: response.model,\n    tokens_used: response.usage?.output_tokens || 0\n  }\n};"
      },
      "id": "extract-saludo",
      "name": "Extraer Saludo + Log",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        720,
        224
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify($json) }}",
        "options": {
          "responseCode": 200
        }
      },
      "id": "respond-success",
      "name": "Respuesta OK",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        992,
        224
      ]
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "// Self-healing fallback: Anthropic API fallo tras 3 retries\nconst traceId = `test-50-fb-${Date.now()}-${Math.random().toString(36).substr(2, 8)}`;\nconst nombre = $('Webhook Saludo').item.json.body?.nombre || $('Webhook Saludo').item.json.nombre || 'amigo';\n\n// Log estructurado de fallo + fallback activado\nconsole.log(JSON.stringify({\n  level: 'WARNING',\n  event: 'anthropic_api_fallback_activated',\n  trace_id: traceId,\n  timestamp: new Date().toISOString(),\n  reason: 'anthropic_api_3_retries_failed',\n  fallback_used: 'static_message'\n}));\n\nreturn {\n  json: {\n    saludo: `Hola ${nombre}, el servicio de saludos esta temporalmente no disponible. Intentalo de nuevo en unos minutos.`,\n    trace_id: traceId,\n    status: 'fallback',\n    model: 'fallback-static',\n    tokens_used: 0\n  }\n};"
      },
      "id": "fallback-handler",
      "name": "Fallback Self-Healing",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        720,
        384
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify($json) }}",
        "options": {
          "responseCode": 503
        }
      },
      "id": "respond-fallback",
      "name": "Respuesta Fallback 503",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        992,
        384
      ]
    }
  ],
  "connections": {
    "Webhook Saludo": {
      "main": [
        [
          {
            "node": "Claude Haiku Saludo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Claude Haiku Saludo": {
      "main": [
        [
          {
            "node": "Extraer Saludo + Log",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fallback Self-Healing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extraer Saludo + Log": {
      "main": [
        [
          {
            "node": "Respuesta OK",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fallback Self-Healing": {
      "main": [
        [
          {
            "node": "Respuesta Fallback 503",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "timezone": "America/New_York",
    "saveExecutionProgress": true,
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "availableInMCP": false
  },
  "staticData": null,
  "meta": null,
  "versionId": "91b05df8-2208-4f9f-90e0-b114b0ff75ed",
  "activeVersionId": "c6981fa9-f823-413e-9ac7-200860400ecb",
  "versionCounter": 6,
  "triggerCount": 1,
  "shared": [
    {
      "updatedAt": "2026-04-20T19:19:04.938Z",
      "createdAt": "2026-04-20T19:19:04.938Z",
      "role": "workflow:owner",
      "workflowId": "sFJRUJbyMEXZlIyV",
      "projectId": "kOz4cM3t590yiTX0",
      "project": {
        "updatedAt": "2026-04-06T19:49:50.605Z",
        "createdAt": "2026-04-06T05:13:47.025Z",
        "id": "kOz4cM3t590yiTX0",
        "name": "Jose Raul  Ramirez  <admin@addendo.io>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "22729d36-131e-405e-8267-dcd82aca785f"
      }
    }
  ],
  "tags": [],
  "activeVersion": {
    "updatedAt": "2026-04-20T19:19:04.944Z",
    "createdAt": "2026-04-20T19:19:04.944Z",
    "versionId": "c6981fa9-f823-413e-9ac7-200860400ecb",
    "workflowId": "sFJRUJbyMEXZlIyV",
    "nodes": [
      {
        "parameters": {
          "httpMethod": "POST",
          "path": "test-50-saludo",
          "responseMode": "responseNode",
          "options": {}
        },
        "id": "webhook-trigger",
        "name": "Webhook Saludo",
        "type": "n8n-nodes-base.webhook",
        "typeVersion": 2,
        "position": [
          200,
          300
        ],
        "webhookId": "test-50-saludo-webhook"
      },
      {
        "parameters": {
          "method": "POST",
          "url": "https://api.anthropic.com/v1/messages",
          "authentication": "genericCredentialType",
          "genericAuthType": "httpHeaderAuth",
          "sendHeaders": true,
          "specifyHeaders": "keypair",
          "headerParameters": {
            "parameters": [
              {
                "name": "anthropic-version",
                "value": "2023-06-01"
              }
            ]
          },
          "sendBody": true,
          "specifyBody": "json",
          "jsonBody": "={{ JSON.stringify({model:\"claude-haiku-4-5-20251001\",max_tokens:200,system:\"Eres un saludador entusiasta. Saluda al usuario por su nombre en espanol en 2-3 lineas amigables.\",messages:[{role:\"user\",content:`Saluda a ${$json.body?.nombre || $json.nombre || \"amigo\"}`}]}) }}",
          "options": {
            "timeout": 30000,
            "retry": {
              "maxTries": 3,
              "waitBetweenTries": 2000
            }
          }
        },
        "id": "claude-haiku",
        "name": "Claude Haiku Saludo",
        "type": "n8n-nodes-base.httpRequest",
        "typeVersion": 4.2,
        "position": [
          460,
          300
        ],
        "credentials": {
          "httpHeaderAuth": {
            "id": "lNoaGe4mmKeabat6",
            "name": "Anthropic API Key"
          }
        },
        "onError": "continueErrorOutput",
        "retryOnFail": true,
        "maxTries": 3,
        "waitBetweenTries": 2000
      },
      {
        "parameters": {
          "mode": "runOnceForEachItem",
          "jsCode": "// Extraer texto del response Claude + log estructurado\nconst response = $input.item.json;\nconst saludo = response.content?.[0]?.text || 'Saludo no disponible';\nconst traceId = `test-50-${Date.now()}-${Math.random().toString(36).substr(2, 8)}`;\n\n// Log estructurado\nconsole.log(JSON.stringify({\n  level: 'INFO',\n  event: 'saludo_generado_ok',\n  trace_id: traceId,\n  timestamp: new Date().toISOString(),\n  input_usage: response.usage,\n  length: saludo.length\n}));\n\nreturn {\n  json: {\n    saludo: saludo,\n    trace_id: traceId,\n    status: 'success',\n    model: response.model,\n    tokens_used: response.usage?.output_tokens || 0\n  }\n};"
        },
        "id": "extract-saludo",
        "name": "Extraer Saludo + Log",
        "type": "n8n-nodes-base.code",
        "typeVersion": 2,
        "position": [
          720,
          220
        ]
      },
      {
        "parameters": {
          "respondWith": "json",
          "responseBody": "={{ JSON.stringify($json) }}",
          "options": {
            "responseCode": 200
          }
        },
        "id": "respond-success",
        "name": "Respuesta OK",
        "type": "n8n-nodes-base.respondToWebhook",
        "typeVersion": 1.1,
        "position": [
          980,
          220
        ]
      },
      {
        "parameters": {
          "mode": "runOnceForEachItem",
          "jsCode": "// Self-healing fallback: Anthropic API fallo tras 3 retries\nconst traceId = `test-50-fb-${Date.now()}-${Math.random().toString(36).substr(2, 8)}`;\nconst nombre = $('Webhook Saludo').item.json.body?.nombre || $('Webhook Saludo').item.json.nombre || 'amigo';\n\n// Log estructurado de fallo + fallback activado\nconsole.log(JSON.stringify({\n  level: 'WARNING',\n  event: 'anthropic_api_fallback_activated',\n  trace_id: traceId,\n  timestamp: new Date().toISOString(),\n  reason: 'anthropic_api_3_retries_failed',\n  fallback_used: 'static_message'\n}));\n\nreturn {\n  json: {\n    saludo: `Hola ${nombre}, el servicio de saludos esta temporalmente no disponible. Intentalo de nuevo en unos minutos.`,\n    trace_id: traceId,\n    status: 'fallback',\n    model: 'fallback-static',\n    tokens_used: 0\n  }\n};"
        },
        "id": "fallback-handler",
        "name": "Fallback Self-Healing",
        "type": "n8n-nodes-base.code",
        "typeVersion": 2,
        "position": [
          720,
          380
        ]
      },
      {
        "parameters": {
          "respondWith": "json",
          "responseBody": "={{ JSON.stringify($json) }}",
          "options": {
            "responseCode": 503
          }
        },
        "id": "respond-fallback",
        "name": "Respuesta Fallback 503",
        "type": "n8n-nodes-base.respondToWebhook",
        "typeVersion": 1.1,
        "position": [
          980,
          380
        ]
      }
    ],
    "connections": {
      "Webhook Saludo": {
        "main": [
          [
            {
              "node": "Claude Haiku Saludo",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Claude Haiku Saludo": {
        "main": [
          [
            {
              "node": "Extraer Saludo + Log",
              "type": "main",
              "index": 0
            }
          ],
          [
            {
              "node": "Fallback Self-Healing",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Extraer Saludo + Log": {
        "main": [
          [
            {
              "node": "Respuesta OK",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Fallback Self-Healing": {
        "main": [
          [
            {
              "node": "Respuesta Fallback 503",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    },
    "authors": "Jose Raul  Ramirez ",
    "name": null,
    "description": null,
    "autosaved": false,
    "workflowPublishHistory": [
      {
        "createdAt": "2026-04-20T19:19:14.496Z",
        "id": 115,
        "workflowId": "sFJRUJbyMEXZlIyV",
        "versionId": "c6981fa9-f823-413e-9ac7-200860400ecb",
        "event": "activated",
        "userId": "22729d36-131e-405e-8267-dcd82aca785f"
      }
    ]
  }
}

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

EJEMPLO-invocacion-claude-haiku-skill50. Uses httpRequest. Webhook trigger; 6 nodes.

Source: https://github.com/AddendoGrowthPartner/addendo-website/blob/dcdcf98d1201d5904b8f08afbcb43c59282a1f79/workflows/archived/sFJRUJbyMEXZlIyV-EJEMPLO-invocacion-claude-haiku-skill50-20260506.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

This n8n template provides enterprise-level version control for your workflows using GitHub integration. Stop losing hours to broken workflows and manual exports – get proper commit history, visual di

n8n, Execute Workflow Trigger, HTTP Request +1
Web Scraping

This flow creates dummy files for every item added in your *Arrs (Radarr/Sonarr) with the tag .

HTTP Request, Ssh
Web Scraping

This workflow acts as a central API gateway for all technical indicator agents in the Binance Spot Market Quant AI system. It listens for incoming webhook requests and dynamically routes them to the c

HTTP Request
Web Scraping

Sign PDF documents with legally-compliant digital signatures using X.509 certificates. Supports multiple PAdES signature levels (B, T, LT, LTA) with optional visible stamps.

Execute Command, HTTP Request, Read Write File +1
Web Scraping

📡 This workflow serves as the central Alpha Vantage API fetcher for Tesla trading indicators, delivering cleaned 20-point JSON outputs for three timeframes: , , and . It is required by the following a

HTTP Request