{
  "name": "Analyze and improve Zoho CRM sales cycles with GPT-4, Google Sheets and Slack",
  "nodes": [
    {
      "id": "193106dc-e2ae-4981-ba25-a2b7741f21be",
      "name": "When clicking 'Execute workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        96,
        496
      ]
    },
    {
      "id": "4782dc05-0b1c-4a96-bbb0-2563156981c5",
      "name": "Zoho CRM - Deal Trigger",
      "type": "n8n-nodes-base.zohoCrm",
      "position": [
        320,
        496
      ]
    },
    {
      "id": "846c23e1-ebf1-4e9b-85ab-a873d02201f1",
      "name": "Filter Recent Deals",
      "type": "n8n-nodes-base.code",
      "position": [
        544,
        496
      ]
    },
    {
      "id": "909c5e09-f39f-4b27-bed4-e4f45553fcf4",
      "name": "Fetch Historical Averages",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        768,
        496
      ]
    },
    {
      "id": "0d17d548-a0ef-432b-a9d3-ccad42321265",
      "name": "Analyze Cycle",
      "type": "n8n-nodes-base.code",
      "position": [
        992,
        496
      ]
    },
    {
      "id": "8edc9a91-451f-4747-9cf4-9405928b9843",
      "name": "Check Valid Data",
      "type": "n8n-nodes-base.if",
      "position": [
        2112,
        496
      ]
    },
    {
      "id": "25a13331-afb3-4897-8467-bfa066ff1c43",
      "name": "Slack Notification",
      "type": "n8n-nodes-base.slack",
      "position": [
        2336,
        400
      ]
    },
    {
      "id": "2168b744-8893-4922-8e92-b4717ff62fe2",
      "name": "Log to Historical Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2336,
        592
      ]
    },
    {
      "id": "69ae8a3f-e21e-473c-8e47-e66bc4e0ccc0",
      "name": "Main Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -64
      ],
      "parameters": {
        "width": 448,
        "height": 496,
        "content": "## How it works\n\nThis workflow automatically analyzes sales cycle performance for closed deals (won/lost) from Zoho CRM. It compares each deal to historical averages, identifies bottlenecks, calculate"
      }
    },
    {
      "id": "fdc158ac-d7e8-49a0-a756-b1012e00e493",
      "name": "Section - Data Collection",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        192
      ],
      "parameters": {
        "width": 656,
        "height": 560,
        "content": "## Data Collection\n\nFetches closed deals (won/lost) from Zoho CRM, filters to recent deals (last 7 days, max 10), and retrieves historical cycle data from Google Sheets for comparison and analysis."
      }
    },
    {
      "id": "07e73147-cbed-4229-86be-cfc5cbd57aa1",
      "name": "AI Sentiment Analysis",
      "type": "n8n-nodes-base.openAi",
      "position": [
        1216,
        400
      ]
    },
    {
      "id": "f3ae52ce-85c1-4dab-a121-1e6fd9806af9",
      "name": "AI Predictive Analytics",
      "type": "n8n-nodes-base.openAi",
      "position": [
        1216,
        592
      ]
    },
    {
      "id": "fcd95efa-793c-46a8-a940-7e05f51d330d",
      "name": "AI Smart Recommendations",
      "type": "n8n-nodes-base.openAi",
      "position": [
        1888,
        496
      ]
    },
    {
      "id": "156892fd-de90-4c3d-9278-6db6e01fb279",
      "name": "AI Data Aggregation",
      "type": "n8n-nodes-base.code",
      "position": [
        1440,
        496
      ]
    },
    {
      "id": "d3c41db7-516e-4b4f-977f-5c485c5d5adc",
      "name": "Advanced Data Visualization",
      "type": "n8n-nodes-base.code",
      "position": [
        1664,
        496
      ]
    },
    {
      "id": "6c70e97f-a929-4a29-b0ac-16d3b1d88b46",
      "name": "Section - AI Intelligence",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        192
      ],
      "parameters": {
        "width": 1056,
        "height": 560,
        "content": "## AI-Powered Intelligence Layer\n\nThis section adds advanced AI capabilities: sentiment analysis for emotional intelligence, predictive analytics for outcome forecasting, smart recommendations for pro"
      }
    },
    {
      "id": "8b85fed8-8944-4d43-a381-021738147b2f",
      "name": "Section - Notifications & Logging",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        192
      ],
      "parameters": {
        "width": 544,
        "height": 560,
        "content": "## Notifications & Logging\n\nValidates data quality, then sends formatted insights to Slack channel and automatically logs the analyzed deal to Google Sheets for building historical dataset over time."
      }
    }
  ],
  "connections": {
    "Analyze Cycle": {
      "main": [
        [
          {
            "node": "AI Sentiment Analysis",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Predictive Analytics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Valid Data": {
      "main": [
        [
          {
            "node": "Slack Notification",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Historical Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Data Aggregation": {
      "main": [
        [
          {
            "node": "Advanced Data Visualization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Recent Deals": {
      "main": [
        [
          {
            "node": "Fetch Historical Averages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Sentiment Analysis": {
      "main": [
        [
          {
            "node": "AI Data Aggregation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Predictive Analytics": {
      "main": [
        [
          {
            "node": "AI Data Aggregation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zoho CRM - Deal Trigger": {
      "main": [
        [
          {
            "node": "Filter Recent Deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Smart Recommendations": {
      "main": [
        [
          {
            "node": "Check Valid Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Historical Averages": {
      "main": [
        [
          {
            "node": "Analyze Cycle",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Advanced Data Visualization": {
      "main": [
        [
          {
            "node": "AI Smart Recommendations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking 'Execute workflow'": {
      "main": [
        [
          {
            "node": "Zoho CRM - Deal Trigger",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}