AutomationFlowsAI & RAG › AI News Chatbot with Google Gemini

AI News Chatbot with Google Gemini

Original n8n title: Newshub — Chatbot Webhook

NewsHub — Chatbot Webhook. Uses chainLlm, lmChatGoogleGemini. Webhook trigger; 4 nodes.

Webhook trigger★★☆☆☆ complexityAI-powered4 nodesChain LlmGoogle Gemini Chat
AI & RAG Trigger: Webhook Nodes: 4 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Chainllm → 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": "NewsHub \u2014 Chatbot Webhook",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "chatbot",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -600,
        0
      ],
      "id": "webhook-chatbot",
      "name": "Chatbot Webhook"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.body.message }}",
        "messages": {
          "messageValues": [
            {
              "message": "You are NewsBot, an intelligent AI news assistant for NewsHub \u2014 a premium dark-themed news website. You help users understand and explore news across: Cybersecurity, AI, Finance, Stock Markets, Health, and Technology.\n\nThe user is currently browsing the '{{ $json.body.category || 'general' }}' category.\n\nYour role:\n- Summarize and explain news articles in simple, engaging language\n- Provide context and deeper insights on news topics\n- Answer questions about recent events confidently\n- Be concise (2-4 sentences max per response)\n- Use emojis where appropriate to make responses lively\n- If asked about something outside news, gently redirect to news topics\n\nUser message: {{ $json.body.message }}\n\nRespond naturally and helpfully. Return ONLY a JSON object: { \"reply\": \"your response text here\" }"
            }
          ]
        },
        "batching": {}
      },
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.9,
      "position": [
        -240,
        0
      ],
      "id": "chatbot-gemini-chain",
      "name": "NewsBot Chain"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "typeVersion": 1,
      "position": [
        -170,
        220
      ],
      "id": "chatbot-gemini",
      "name": "Gemini",
      "credentials": {
        "googlePalmApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ $json.text }}",
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "Access-Control-Allow-Origin",
                "value": "*"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ]
          }
        }
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        120,
        0
      ],
      "id": "respond-chatbot",
      "name": "Respond to Chatbot"
    }
  ],
  "connections": {
    "Chatbot Webhook": {
      "main": [
        [
          {
            "node": "NewsBot Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NewsBot Chain": {
      "main": [
        [
          {
            "node": "Respond to Chatbot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini": {
      "ai_languageModel": [
        [
          {
            "node": "NewsBot Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "timezone": "Asia/Kolkata"
  },
  "tags": [
    "newshub",
    "chatbot",
    "gemini"
  ]
}

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

NewsHub — Chatbot Webhook. Uses chainLlm, lmChatGoogleGemini. Webhook trigger; 4 nodes.

Source: https://github.com/brevankumargoud/NewsHub/blob/8e5c2f622eb30e70ba4b7e05862d60f860e8348b/n8n/chatbot_webhook.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

WebAPI Server Demo. Uses chainLlm, lmChatGoogleGemini. Webhook trigger; 13 nodes.

Chain Llm, Google Gemini Chat
AI & RAG

Dexter - AI Chief of Staff (v3). Uses agent, lmChatOpenAi, memoryBufferWindow, toolGoogleCalendar. Webhook trigger; 9 nodes.

Agent, OpenAI Chat, Memory Buffer Window +5
AI & RAG

Dexter - AI Chief of Staff (Updated). Uses agent, lmChatOpenAi, memoryBufferWindow, toolGoogleCalendar. Webhook trigger; 9 nodes.

Agent, OpenAI Chat, Memory Buffer Window +5
AI & RAG

basic-llm. Uses chainLlm, lmChatGoogleGemini. Webhook trigger; 3 nodes.

Chain Llm, Google Gemini Chat
AI & RAG

ANIS_HUB 1. Uses gmail, googleDrive, googleSheets, httpRequest. Webhook trigger; 89 nodes.

Gmail, Google Drive, Google Sheets +3