Skip to main content

Automate WhatsApp sales with DeepSeek AI, Google Sheets and Gmail notifications

Workflow preview

Workflow preview
100%
Automate WhatsApp sales with DeepSeek AI, Google Sheets and Gmail notifications preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Turn WhatsApp Into a 24/7 AI Sales Assistant — n8n + DeepSeek + Sheets + Gmail ️ Self Hosted n8n Only Description Turn your WhatsApp channel into a smart sales assistant! This workflow listens for...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.agent, n8n-nodes-base.gmailtool, n8n-nodes-base.googlesheetstool, @n8n/n8n-nodes-langchain.lmchatdeepseek, n8n-nodes-base.if, n8n-nodes-base.noop, n8n-nodes-evolution-api.evolutionapi, n8n-nodes-base.webhook

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate WhatsApp sales with DeepSeek AI, Google Sheets and Gmail notifications
Workflow name
Automate WhatsApp sales with DeepSeek AI, Google Sheets and Gmail notifications

Turn WhatsApp Into a 24/7 AI Sales Assistant — n8n + DeepSeek + Sheets + Gmail

⚠️ Self-Hosted n8n Only

Description

Turn your WhatsApp channel into a smart sales assistant! This workflow listens for inbound customer messages, looks up product data in Google Sheets, uses a DeepSeek Chat Model to answer in Saudi dialect, collects purchase details, and notifies your service rep only when the customer is ready to buy.


🔧 How to Install Community Nodes

Go to Settings → Community Nodes Click Install Node, then add:

n8n-nodes-evolution-api

Restart n8n if prompted.


🔄 What This Workflow Does

  1. Webhook Listener Captures inbound WhatsApp messages (MESSAGES_UPSERT via Evolution API).
  2. Filters Ignores outbound (fromMe) and group (@g.us) messages.
  3. Data Extraction Pulls the customer’s message and phone number.
  4. AI Response Uses the DeepSeek Chat Model node to answer from your Google Sheets product list, greeting with “هلا وغلا” and speaking in Saudi dialect.
  5. Purchase Flow Prompts for name, phone, and delivery/pickup date.
  6. Notify Sales Sends an email via Gmail only when the customer requests to purchase.
  7. Context Memory (Optional) Stores conversation history in Postgres for coherent multi-turn chats.

📸 Visual Preview

🧩 Workflow


🛠️ Setup Instructions

  1. Evolution API Webhook

    • In Evolution API dashboard → Events → Webhook
    • Enable only MESSAGES_UPSERT
    • Set Webhook URL to: https://your-n8n-domain/webhook/whatsAppListen
  2. Google Sheets

    • Create a spreadsheet (“You Conmanay Name Items”) with your product data [Item name, Item Model, Item Description, Item Components, Item Price, Item Availability, ...]
    • Connect your Google Sheets credentials in n8n
  3. DeepSeek Chat Model

    • Configure your DeepSeek API credentials in the DeepSeek Chat Model node
    • Ensure the system prompt matches your company’s tone and data columns
  4. Gmail Notifications

    • Add Gmail OAuth2 credentials to the Send a message in Gmail node
    • Customize subject and email template if needed
  5. Postgres Memory (Optional)

    • Connect a Postgres instance in the Postgres Chat Memory node for session context

👥 Who Is This For?

  • E-commerce teams automating first-touch customer replies
  • Sales reps needing AI-driven chat support on WhatsApp
  • Businesses using WhatsApp as a primary customer channel

🔐 Credentials Required

  • Evolution API (webhook only)
  • Google Sheets API
  • DeepSeek API
  • Gmail OAuth2
  • Postgres (optional, for memory)

🏷 Tags

whatsapp bot, deepseek, google sheets, evolution api, gmail, postgres memory, ecommerce, sales automation, n8n template, no-code, ai, agent, ai agent

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 - AI Agent

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

Block 2 - Send a message in Gmail

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 3 - Get row(s) in sheet in Google Sheets

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

Block 4 - DeepSeek Chat Model

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

Block 5 - If message not from group and not outbound

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

Block 6 - No Operation, do nothing

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

Block 7 - Enviar texto

Type / Role
n8n-nodes-evolution-api.evolutionApi - evolutionApi
Config choices
Version 1

Block 8 - Webhook: WhatsApp Message Trigger

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

Block 9 - Sticky Note

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

Block 10 - Chat Memory with Postgres

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

3. Summary Table

Workflow Automate WhatsApp sales with DeepSeek AI, Google Sheets and Gmail notifications
Complexity intermediate
Nodes 10
Categories Lead Nurturing, AI Chatbot
Author Ahmed Saadawi
Published 05 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7005/7005.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 Automate WhatsApp sales with DeepSeek AI, Google Sheets and Gmail notifications do?

Turn WhatsApp Into a 24/7 AI Sales Assistant — n8n + DeepSeek + Sheets + Gmail ️ Self Hosted n8n Only Description Turn your WhatsApp channel into a smart sales assistant! This workflow listens for...

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 Lead Nurturing, AI Chatbot use case.