Skip to main content

Smart sales support chatbot with GPT-4o and Google Sheets

Workflow preview

Workflow preview
100%
Smart sales support chatbot with GPT-4o and Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Who is this tempate for? This workflow powers a simple yet effective customer and sales support chatbot for your webshop. It's perfect for solopreneurs who want to automate customer interactions wi...

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.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.googlesheetstool, @n8n/n8n-nodes-langchain.agent

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Smart sales support chatbot with GPT-4o and Google Sheets
Workflow name
Smart sales support chatbot with GPT-4o and Google Sheets

Who is this tempate for?

This workflow powers a simple yet effective customer and sales support chatbot for your webshop. It's perfect for solopreneurs who want to automate customer interactions without relying on expensive or complex support tools.

How it works?

The chatbot listens to user requests—such as checking product availability—and automatically handles the following

  • Fetches product information from a Google Sheet
  • Answers customer queries
  • Places an order
  • Updates the stock after a successful purchase

Everything runs through a single Google Sheet used for both stock tracking and order management.

Setup Instructions

Before you begin, connect your Google Sheets credentials by following this guide: This will be used to connect all the tools to Google Sheets 👉 Setup Google sheets credentials

  • Get Stock

    • Open "Get Stock" tool node and select the Google sheet credentials you created.
    • Choose the correct google sheet document and sheet name and you are done.
  • Place order

    • Go to your "Place Order" tool node and select the Google sheet credentials you have created.
    • Choose the correct google sheet document and sheet name.
  • Update Stock

      • Open your "Update Stock" tool node and select the Google sheet credentials you have created.
    • Choose the correct google sheet document and sheet name.
    • In "Mapping Column Mode" section select map each column manually.
    • In "Column to match on" select the column with a unique identifier (e.g., Product ID) to match stock items.
    • In values to update section, add only the column(s) that need to be updated—usually the stock count.
  • AI Agent node

    • Adjust the prompt according to your use case and customize what you need.

Google Sheet Template

Stock sheet

Case ID Phone Model Case Name Case Type Image URL Quantity Avaialble Initital Inventory Sold
1023 Iphone 14 pro Black Leather Magsafe https://example.com/url 90 100 10

Order sheet

Case ID Phone Model Case Name Name Phone Number Address
1023 Black Leather Iphone 14 pro Fernando Torres 9998898888 Paris, France

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 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Simple Memory

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

Block 4 - Place order

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

Block 5 - Update Stock

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

Block 6 - Support Agent

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

Block 7 - GetStock

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

3. Summary Table

Workflow Smart sales support chatbot with GPT-4o and Google Sheets
Complexity intermediate
Nodes 7
Categories Support Chatbot, AI Chatbot
Author Babish Shrestha
Published 04 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3433/3433.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 Smart sales support chatbot with GPT-4o and Google Sheets do?

Who is this tempate for? This workflow powers a simple yet effective customer and sales support chatbot for your webshop. It's perfect for solopreneurs who want to automate customer interactions wi...

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.