# zukui1984/crm_onboarding_automation_n8n architecture

> Architecture diagram of the GitHub repository zukui1984/crm_onboarding_automation_n8n, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zukui1984/crm_onboarding_automation_n8n
- Repository: https://github.com/zukui1984/crm_onboarding_automation_n8n

## Overview

This repository documents an n8n energy-CRM onboarding workflow. A client submits JSON to a webhook; the workflow normalizes and validates it, then routes valid submissions to Airtable for customer creation and invalid submissions to Gmail for an alert. The workflow definition is the only runtime source file shown in the tree; branch behavior and field mappings are documented in the README. The CSV files appear to be supporting data, so they are not modeled as runtime stages.

Main entry points: [`Energy_CRM_Onboarding.json`](https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json) (Validity branch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Intake and validation"]
  node_webhook["Webhook intake"]
  node_validation["Payload validation"]
end

subgraph group_routing["Workflow routing"]
  node_router["Validity branch"]
end

subgraph group_outcomes["Onboarding outcomes"]
  node_airtable_step["Create customer"]
  node_airtable[("Airtable Customers")]
  node_gmail_step["Send invalid alert"]
  node_gmail["Gmail"]
end

node_client(("HTTP client"))

node_client -->|"POSTs JSON"| node_webhook
node_webhook -->|"passes payload"| node_validation
node_validation -->|"returns validity"| node_router
node_router -->|"valid branch"| node_airtable_step
node_airtable_step -->|"creates record"| node_airtable
node_router -->|"invalid branch"| node_gmail_step
node_gmail_step -->|"sends alert"| node_gmail

click node_webhook "https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json"
click node_validation "https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json"
click node_router "https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json"
click node_airtable_step "https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json"
click node_gmail_step "https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_webhook,node_validation,node_client toneBlue
class node_router toneAmber
class node_airtable_step,node_airtable,node_gmail_step,node_gmail toneMint
```

## Components

### Intake and validation

- [Webhook intake](https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json): `Energy_CRM_Onboarding.json`
- [Payload validation](https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json): `Energy_CRM_Onboarding.json`

### Workflow routing

- [Validity branch](https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json): `Energy_CRM_Onboarding.json`

### Onboarding outcomes

- [Create customer](https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json): `Energy_CRM_Onboarding.json`
- **Airtable Customers**
- [Send invalid alert](https://github.com/zukui1984/crm_onboarding_automation_n8n/blob/master/Energy_CRM_Onboarding.json): `Energy_CRM_Onboarding.json`
- **Gmail**

### Other components

- **HTTP client**

## Connections

- HTTP client → Webhook intake: POSTs JSON (evidence: `README.md`)
- Webhook intake → Payload validation: passes payload (evidence: `README.md`)
- Payload validation → Validity branch: returns validity (evidence: `README.md`)
- Validity branch → Create customer: valid branch (evidence: `README.md`)
- Create customer → Airtable Customers: creates record (evidence: `README.md`)
- Validity branch → Send invalid alert: invalid branch (evidence: `README.md`)
- Send invalid alert → Gmail: sends alert (evidence: `README.md`)
