Skip to main content

Customer personality (BaZi, DISC, Numerology) with Gemini & Google Sheets

Workflow preview

Workflow preview
100%
Customer personality (BaZi, DISC, Numerology) with Gemini & 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

What this workflow does This workflow turns your n8n into an automated personality insights engine driven by Google Sheets. When a row is updated with Analysis Status = Run, it: Computes Lunar D...

Best for

  • Lead Nurturing automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlesheetstrigger, n8n-nodes-base.if, n8n-nodes-base.merge, n8n-nodes-base.aggregate, n8n-nodes-base.googlesheets, n8n-nodes-base.filter, n8n-nodes-base.splitinbatches, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Customer personality (BaZi, DISC, Numerology) with Gemini & Google Sheets
Workflow name
Customer personality (BaZi, DISC, Numerology) with Gemini & Google Sheets

📄 What this workflow does

This workflow turns your n8n into an automated personality-insights engine driven by Google Sheets. When a row is updated with Analysis Status = Run, it:

  • Computes Lunar Date of Birth and Four Pillars (BaZi) from DOB and optional birth time.
  • Calculates Numerology (Life Path, Birth Day, Pinnacles/Challenges, Expression, Soul Urge, Personality, Maturity) and a phone “vibration” number.
  • Generates concise, sales-oriented bullet-point analyses with Gemini for BaZi, Numerology, and DISC (from Notes).
  • Merges results and writes back to the sheet: Lunar Date of Birth, Four Pillars, Numerology, Four Pillars Analysis, Numerology Analysis, DISC Analysis, and a combined Personality summary—then flips Analysis Status to Done.
  • Handles missing data gracefully and logs clear warnings in the sheet fields.

👤 Who is this for

  • Sales teams working from spreadsheets who want fast personality cues for outreach.
  • Coaches/consultants providing light BaZi/Numerology/DISC summaries at scale.
  • SMBs maintaining lead/customer lists in Google Sheets and wanting auto-generated insights.

✅ Requirements

  • An n8n instance.
  • Google Sheets with these columns (English): No, Full Name, Date of Birth, Birth Time, Gender, Email, Phone, Status, Analysis Status, Purchase Value, Notes, Four Pillars, Four Pillars Analysis, Lunar Date of Birth, Numerology, Numerology Analysis, DISC Analysis, Personality, Script.
  • Google Sheets OAuth2 credentials connected in n8n.
  • Google Gemini API credentials (nodes use models like models/gemini-1.5-flash and models/gemini-2.5-flash).
  • (Optional) Confirm timezone (+07:00) used in the BaZi lunar calculations fits your use case.

⚙️ How to set up

  • Import the provided workflow JSON into n8n.
  • Connect Google Sheets credentials and point to your spreadsheet + sheet (gid).
  • Connect Gemini credentials and keep/adjust the default model IDs.
  • Ensure your sheet has the listed English column headers.
  • (Optional) Adjust the timezone constant in the Code nodes if you’re not in GMT+7.
  • Set Analysis Status = Run in any row you want analyzed and trigger a row update.

🔁 How it works

  1. Trigger → Google Sheets Trigger fires on row update where Analysis Status = Run.
  2. Pre-processing → Code computes Lunar DOB + Four Pillars; Code1 computes Numerology and phone metric.
  3. Conditional flows → IF nodes check available inputs (BaZi/Numerology/Notes) and call the relevant Gemini nodes.
  4. LLM Generation → Gemini returns three focused analyses (BaZi, Numerology, DISC) plus a combined Personality summary.
  5. Merge/Aggregate → Results are merged for a single row.
  6. Write-back → Google Sheets nodes update Lunar Date of Birth, Four Pillars, Numerology, Four Pillars Analysis, Numerology Analysis, DISC Analysis, Personality and set Analysis Status = Done.

💡 About Margin AI

Margin AI is an AI-services agency that acts as your AI Service Companion. We design intelligent, human-centric automation solutions—turning your team’s best practices into scalable workflows and tools. Industries like marketing, sales, and operations benefit from our tailored AI consulting, automation tools, and chatbot development.

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 - Google Sheets Trigger

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

Block 2 - If

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

Block 3 - If1

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

Block 4 - If2

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

Block 5 - Merge

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

Block 6 - Aggregate

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

Block 7 - Update row in sheet1

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

Block 8 - Update row in sheet2

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

Block 9 - Update row in sheet3

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

Block 10 - Update row in sheet4

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

Block 11 - Filter

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

Block 12 - Loop Over Items

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

Block 13 - Get row(s) in sheet

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

Block 14 - Update row in sheet

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

Block 15 - Sticky Note

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

Block 16 - Compute Bazi

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

Block 17 - Compute Numerology

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

Block 18 - Numerology analysis

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

Block 19 - Bazi Analysis

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

Block 20 - DISC Analysis

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

Block 21 - Summary Customer Insight

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

Block 22 - Writing Script for Salers

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

Block 23 - Sticky Note1

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

Block 24 - Sticky Note2

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

3. Summary Table

Workflow Customer personality (BaZi, DISC, Numerology) with Gemini & Google Sheets
Complexity advanced
Nodes 24
Categories Lead Nurturing, AI Summarization
Author Cong Nguyen
Published 30 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8051/8051.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 Customer personality (BaZi, DISC, Numerology) with Gemini & Google Sheets do?

What this workflow does This workflow turns your n8n into an automated personality insights engine driven by Google Sheets. When a row is updated with Analysis Status = Run, it: Computes Lunar D...

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