Skip to main content

Build a website-powered customer support chatbot with Decodo, Pinecone and Gemini

Workflow preview

Workflow preview
100%
Build a website-powered customer support chatbot with Decodo, Pinecone and Gemini preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Categories: Business Automation, Customer Support, AI, Knowledge Management This comprehensive workflow enables businesses to build and deploy a custom trained AI Chatbot in minutes. By combining a...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.code, n8n-nodes-base.xml, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.removeduplicates, n8n-nodes-base.splitinbatches, n8n-nodes-base.html

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Zain Khan.

Original n8n.io source

1.1 Workflow description

Title
Build a website-powered customer support chatbot with Decodo, Pinecone and Gemini
Workflow name
Build a website-powered customer support chatbot with Decodo, Pinecone and Gemini

Categories: Business Automation, Customer Support, AI, Knowledge Management

This comprehensive workflow enables businesses to build and deploy a custom-trained AI Chatbot in minutes. By combining a sophisticated data scraping engine with a RAG-based (Retrieval-Augmented Generation) chat interface, it allows you to transform website content into a high-performance support agent. Powered by Google Gemini and Pinecone, this system ensures your chatbot provides accurate, real-time answers based exclusively on your business data.

Benefits

  • Instant Knowledge Sync - Automatically crawls sitemaps and URLs to keep your AI up-to-date with your latest website content.
  • Embeddable Anywhere - Features a ready-to-use chat trigger that can be integrated into the bottom-right of any website via a simple script.
  • High-Fidelity Retrieval - Uses vector embeddings to ensure the AI "searches" your documentation before answering, reducing hallucinations.
  • Smart Conversational Memory - Equipped with a 10-message window buffer, allowing the bot to handle complex follow-up questions naturally.
  • Cost-Efficient Scaling - Leverages Gemini’s efficient API and Pinecone’s high-speed indexing to manage thousands of customer queries at a low cost.

How It Works

  1. Dual-Path Ingestion: The process begins with an n8n Form where you provide a sitemap or individual URLs. The workflow automatically handles XML parsing and URL cleaning to prepare a list of pages for processing.
  2. Clean Content Extraction: Using Decodo, the workflow fetches the HTML of each page and uses a specialized extraction node to strip away code, ads, and navigation, leaving only the high-value text content. SignUp using: dashboard.decodo.com/register?referral_code=55543bbdb96ffd8cf45c2605147641ee017e7900.
  3. Vectorization & Storage: The cleaned text is passed to the Gemini Embedding model, which converts the information into 3076-dimensional vectors. These are stored in a Pinecone "supportbot" index for instant retrieval.
  4. RAG-Powered Chat Agent: When a user sends a message through the chat widget, an AI Agent takes over. It uses the user's query to search the Pinecone database for relevant business facts.
  5. Intelligent Response Generation: The AI Agent passes the retrieved facts and the current chat history to Google Gemini, which generates a polite, accurate, and contextually relevant response for the user.

Requirements

  • n8n Instance: A self-hosted or cloud instance of n8n.
  • Google Gemini API Key: For text embeddings and chat generation.
  • Pinecone Account: An API key and a "supportbot" index to store your knowledge base.
  • Decodo Access: For high-quality website content extraction.

How to Use

  1. Initialize the Knowledge Base: Use the Form Trigger to input your website URL or Sitemap. Run the ingestion flow to populate your Pinecone index.
  2. Configure Credentials: Authenticate your Google Gemini and Pinecone accounts within n8n.
  3. Deploy the Chatbot: Enable the Chat Trigger node. Use the provided webhook URL to connect the backend to your website's frontend chat widget.
  4. Test & Refine: Interact with the bot to ensure it retrieves the correct data, and update your knowledge base by re-running the ingestion flow whenever your website content changes.

Business Use Cases

  • Customer Support Teams - Automate answers to 80% of common FAQs using your existing documentation.
  • E-commerce Sites - Help customers find product details, shipping policies, and return information instantly.
  • SaaS Providers - Build an interactive technical documentation assistant to help users navigate your software.
  • Marketing Agencies - Offer "AI-powered site search" as an add-on service for client websites.

Efficiency Gains

  • Reduce Ticket Volume by providing instant self-service options.
  • Eliminate Manual Data Entry by scraping content directly from the live website.
  • Improve UX with 24/7 availability and zero wait times for customers.

Difficulty Level: Intermediate

Estimated Setup Time: 30 min

Monthly Operating Cost: Low (variable based on AI usage and Pinecone tier)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Extract Page URLs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - XML Conversion

Type / Role
n8n-nodes-base.xml - xml
Config choices
Version 1

Block 4 - Fetch Sitemap

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Split Pages URL

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Merge URLs

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 7 - Remove Duplicate URLs

Type / Role
n8n-nodes-base.removeDuplicates - removeDuplicates
Config choices
Version 2

Block 8 - Loop Over Page URLs

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 9 - Extract Content

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 10 - Wait 5 sec

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 11 - Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1.1

Block 12 - Gemini Embeddings

Type / Role
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - embeddingsGoogleGemini
Config choices
Version 1

Block 13 - Pinecone KnowledgeBase

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.3

Block 14 - Input Sitemap or page urls

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 15 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 16 - Decodo

Type / Role
@decodo/n8n-nodes-decodo.decodo - decodo
Config choices
Version 1

Block 17 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.4

Block 18 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 19 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 20 - Simple Memory1

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 21 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 22 - Pinecone Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.3

Block 23 - Embeddings Google Gemini

Type / Role
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - embeddingsGoogleGemini
Config choices
Version 1

Block 24 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Build a website-powered customer support chatbot with Decodo, Pinecone and Gemini
Complexity advanced
Nodes 27
Categories Support Chatbot, AI RAG
Author Zain Khan
Published 25 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12146/12146.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build a website-powered customer support chatbot with Decodo, Pinecone and Gemini do?

Categories: Business Automation, Customer Support, AI, Knowledge Management This comprehensive workflow enables businesses to build and deploy a custom trained AI Chatbot in minutes. By combining a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.