AutomationFlowsAI & RAG › Classificacaonf

Classificacaonf

classificacaoNF. Uses agent, lmChatGoogleGemini. Webhook trigger; 5 nodes.

Webhook trigger★★★★☆ complexityAI-powered5 nodesAgentGoogle Gemini Chat
AI & RAG Trigger: Webhook Nodes: 5 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow follows the Agent → Google Gemini Chat recipe pattern — see all workflows that pair these two integrations.

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": "classificacaoNF",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "nf-input",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        0
      ],
      "id": "4ca9fdad-b7fb-4cf6-99a3-0ac86561f430",
      "name": "Webhook"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.body.nota_fiscal }}",
        "options": {
          "systemMessage": "Voce \u00e9 um especialista em classificar notas ficais.\nReceber\u00e1 dados de uma nota fiscal brasileira em formato JSON e de acordo com estes dados deve classifica-la em uma das 3 categorias COMPRA , VENDA ou SERVICO.\n- S\u00f3 responda com a sua classificacao e n\u00e3o fa\u00e7a coment\u00e1rios e observa\u00e7\u00f5es"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        208,
        0
      ],
      "id": "620bca6e-e803-49eb-9f31-61c85626becf",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\n//for (const item of $input.all()) {\n//#  item.json.myNewField = 1;\n//#}\nlet nota_completa=$node[\"Webhook\"].json.body;\nnota_completa.nota_fiscal.classificacao=$input.all()[0].json.output;\n\nreturn nota_completa;"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        560,
        0
      ],
      "id": "68c6baf9-9816-4662-9a6d-e7ec7bb57f1f",
      "name": "Code in JavaScript"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        768,
        0
      ],
      "id": "a7f31445-041e-4c0a-a35e-5c08ddf107b8",
      "name": "Respond to Webhook"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "typeVersion": 1,
      "position": [
        208,
        272
      ],
      "id": "2862da15-514b-473d-92bf-23559284ff8b",
      "name": "Google Gemini Chat Model",
      "credentials": {
        "googlePalmApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "7ab57b2f-d2c7-4992-a81d-fb23025e5bce",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "4Vn4Cks3HxooaLzF",
  "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

classificacaoNF. Uses agent, lmChatGoogleGemini. Webhook trigger; 5 nodes.

Source: https://github.com/enzopoeta/i2a2_final/blob/5df31e2c71cbf1d6afc2bb072c6f522b28ece98f/n8n/classificacaoNF.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

⏺ 🚀 How it works

Agent, Anthropic Chat, Output Parser Structured +6
AI & RAG

Are you drowning in daily operational chaos, desperately trying to juggle sales, projects, content, and client communication? Imagine an AI brain that handles it all, freeing you to lead your business

Telegram Trigger, Telegram, OpenAI +13
AI & RAG

CLINICAINTEGRAL_secretary. Uses postgres, mcpClientTool, googleDriveTool, toolWorkflow. Webhook trigger; 89 nodes.

Postgres, Mcp Client Tool, Google Drive Tool +14
AI & RAG

my-secretary. Uses postgres, mcpClientTool, googleDriveTool, toolWorkflow. Webhook trigger; 86 nodes.

Postgres, Mcp Client Tool, Google Drive Tool +13
AI & RAG

secretaria. Uses postgres, n8n-nodes-evolution-api, openAi, httpRequest. Webhook trigger; 71 nodes.

Postgres, N8N Nodes Evolution Api, OpenAI +12