Skip to main content

Build a website customer support chatbot with Groq AI and Google Sheets knowledge base

Workflow preview

Workflow preview
100%
Build a website customer support chatbot with Groq AI and Google Sheets knowledge base preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Build a Website Customer Support Chatbot with Groq AI and Google Sheets as its Knowledge Base. Setup Instructions Prerequisites 1. API Credentials Required: Groq API credentials You'll need a valid...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatgroq, n8n-nodes-base.googlesheetstool

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Build a website customer support chatbot with Groq AI and Google Sheets knowledge base
Workflow name
Build a website customer support chatbot with Groq AI and Google Sheets knowledge base

Build a Website Customer Support Chatbot with Groq AI and Google Sheets as its Knowledge Base.

Setup Instructions

Prerequisites

  1. API Credentials Required:
    • Groq API credentials - You'll need a valid API key from Groq
    • Google Sheets credentials - OAuth authentication required to access your knowledge base sheets

Step-by-Step Setup

  1. Add Required Credentials:

    • Click on the Credentials menu and add your Groq API credentials
    • Set up Google OAuth credentials for Google Sheets access
  2. Configure the Groq Chat Model:

    • Click on the "Groq Chat Model" node
    • Select your preferred Groq model (e.g., Llama-3-70b or Mixtral-8x7b)
    • Set token limits and other parameters as needed
  3. Set Up Your Knowledge Base:

    • Create a Google Sheet with your support information (example structure below)
    • Note the Google Sheet ID from the URL
  4. Configure the Google Sheets Node:

    • Click on the "Google Sheets" node
    • Select your document ID from the dropdown
    • Select the specific sheet name containing your knowledge base
  5. Customize the AI Agent:

    • Modify the system message to match your brand's tone and support style
    • Adjust the context window length in the "Chat History" node based on your needs
  6. Test the Chatbot:

    • Click the "Chat" button to test with sample customer questions
    • Verify the AI retrieves correct information from your knowledge base
  7. Deploy to Your Website:

    • Click "Make Public" to generate an embed code
    • Add the embed code to your website HTML

Knowledge Base Structure Example

Your Google Sheet should be structured with clear headers and organized data. Example format:

Question Answer Category Keywords
How do I reset my password? To reset your password, click the "Forgot Password" link on the login page and follow the instructions sent to your email. Account password, reset, forgot, login
What are your shipping rates? Standard shipping is $5.99. Express shipping is $12.99. Orders over $50 qualify for free standard shipping. Shipping rates, costs, delivery, free shipping
How do I return an item? Returns can be initiated within 30 days of purchase by logging into your account and selecting "Start a Return" in your order history. Returns return policy, exchange, refund

Each row should contain a complete customer query and response pair, with optional categorization and keywords to help the AI find relevant information quickly.

Website Embedding

You can use and replace the placeholders in the following code: View on Codepen (external link)

Put the customized Code inside your website's head element (before the </head> tag).

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 - When chat message received

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

Block 2 - Chat History

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

Block 3 - AI Agent

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

Block 4 - Sticky Note1

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

Block 5 - Sticky Note2

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

Block 6 - Sticky Note3

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

Block 7 - Sticky Note

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

Block 8 - Choose your prefered LLM

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

Block 9 - Select your Knowledge Base

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.5

3. Summary Table

Workflow Build a website customer support chatbot with Groq AI and Google Sheets knowledge base
Complexity intermediate
Nodes 9
Categories Support Chatbot, AI Chatbot
Author Gegenfeld
Published 30 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3364/3364.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 customer support chatbot with Groq AI and Google Sheets knowledge base do?

Build a Website Customer Support Chatbot with Groq AI and Google Sheets as its Knowledge Base. Setup Instructions Prerequisites 1. API Credentials Required: Groq API credentials You'll need a valid...

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 Chatbot use case.