AutomationFlowsWeb Scraping › Analise Sentimento

Analise Sentimento

11-analise-sentimento. 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
{
  "name": "11-analise-sentimento",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "analisar-sentimento",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "webhook-sentiment",
      "name": "Webhook An\u00e1lise",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp:generateContent?key={{ $credentials.geminiApi.apiKey }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"contents\": [\n    {\n      \"parts\": [\n        {\n          \"text\": \"Analise o sentimento do seguinte texto e responda APENAS em JSON:\\n\\nTexto: {{ $json.text }}\\n\\nFormato de resposta:\\n{\\n  \\\"sentiment\\\": \\\"positive\\\" | \\\"neutral\\\" | \\\"negative\\\",\\n  \\\"confidence\\\": 0.0 a 1.0,\\n  \\\"emotions\\\": [\\\"emo\u00e7\u00e3o1\\\", \\\"emo\u00e7\u00e3o2\\\"],\\n  \\\"summary\\\": \\\"resumo breve da an\u00e1lise\\\",\\n  \\\"suggestions\\\": [\\\"sugest\u00e3o de resposta se negativo\\\"]\\n}\"\n        }\n      ]\n    }\n  ],\n  \"generationConfig\": {\n    \"temperature\": 0.3,\n    \"maxOutputTokens\": 1024\n  }\n}",
        "options": {}
      },
      "id": "call-gemini",
      "name": "Analisar com Gemini",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "const response = $input.first().json;\nconst text = response.candidates?.[0]?.content?.parts?.[0]?.text || '';\n\nlet parsed = {\n  sentiment: 'neutral',\n  confidence: 0.5,\n  emotions: [],\n  summary: '',\n  suggestions: []\n};\n\ntry {\n  const jsonMatch = text.match(/\\{[\\s\\S]*\\}/);\n  if (jsonMatch) {\n    parsed = { ...parsed, ...JSON.parse(jsonMatch[0]) };\n  }\n} catch (e) {\n  // mant\u00e9m valores default\n}\n\nreturn { json: { success: true, analysis: parsed } };"
      },
      "id": "parse-sentiment",
      "name": "Processar An\u00e1lise",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "conditions": [
            {
              "leftValue": "={{ $json.analysis.sentiment }}",
              "rightValue": "negative",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            },
            {
              "leftValue": "={{ $json.analysis.confidence }}",
              "rightValue": 0.7,
              "operator": {
                "type": "number",
                "operation": "gte"
              }
            }
          ]
        }
      },
      "id": "check-negative",
      "name": "Verificar Negativo",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        850,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{ $vars.SAAS_URL }}/api/notifications/alert",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"type\": \"sentiment_alert\",\n  \"severity\": \"high\",\n  \"message\": \"Feedback negativo detectado\",\n  \"data\": {{ JSON.stringify($json.analysis) }}\n}",
        "options": {}
      },
      "id": "alert-negative",
      "name": "Alertar Admin",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1050,
        200
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify($json) }}",
        "options": {}
      },
      "id": "respond",
      "name": "Responder",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        1050,
        400
      ]
    }
  ],
  "connections": {
    "Webhook An\u00e1lise": {
      "main": [
        [
          {
            "node": "Analisar com Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analisar com Gemini": {
      "main": [
        [
          {
            "node": "Processar An\u00e1lise",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Processar An\u00e1lise": {
      "main": [
        [
          {
            "node": "Verificar Negativo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verificar Negativo": {
      "main": [
        [
          {
            "node": "Alertar Admin",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Responder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alertar Admin": {
      "main": [
        [
          {
            "node": "Responder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [
    "ia",
    "sentimento",
    "analise"
  ]
}
Pro

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

About this workflow

11-analise-sentimento. Uses httpRequest. Webhook trigger; 6 nodes.

Source: https://github.com/gabrielkendy/agenciabase/blob/cd61434f6cec21ef170654b7311b2510dccc74af/n8n-workflows/11-analise-sentimento.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