{
  "name": "Extract sales insights from Scoot call transcripts using Gemini",
  "nodes": [
    {
      "id": "f130050e-7bb0-41ea-a715-bf921603d50f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4064,
        1968
      ],
      "parameters": {
        "width": 360,
        "height": 380,
        "content": "## How it works\n\nThis workflow automatically extracts structured sales data from call transcripts:\n\n1. **Trigger** → Scoot sends webhook when transcription completes\n2. **Fetch** → Retrieves full tran"
      }
    },
    {
      "id": "bc84fcf9-f129-4442-8686-72fb77568ca2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4480,
        1872
      ],
      "parameters": {
        "width": null,
        "height": 112,
        "content": "**Trigger options**\nWebhook receives Scoot notifications. Manual trigger uses sample data for testing without real calls."
      }
    },
    {
      "id": "24bb1a96-9c73-437d-8706-00d52e993b29",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4944,
        1920
      ],
      "parameters": {
        "width": 280,
        "height": 96,
        "content": "**Data preparation**\nFetches transcript from Scoot, checks if processing is complete, handles retries for incomplete transcripts."
      }
    },
    {
      "id": "950e5fcc-08bb-40e6-b4a5-5b1395cf7805",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5584,
        1760
      ],
      "parameters": {
        "width": 260,
        "height": 128,
        "content": "**AI extraction**\nAI Agent with Gemini model extracts: budget, competitors, objections, timeline, decision maker, next steps, pain points, buying signals."
      }
    },
    {
      "id": "0b7fb807-a07a-4b1b-a897-183aec9f5fc2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6048,
        1856
      ],
      "parameters": {
        "width": 260,
        "height": 112,
        "content": "**Output**\nReplace mock CRM node with your integration. Gmail sends formatted summary to the rep who made the call."
      }
    },
    {
      "id": "b10597fc-3736-4e8d-baa2-e84a18c8aa90",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5648,
        2448
      ],
      "parameters": {
        "width": 260,
        "height": 112,
        "content": "**Retry logic**\nIf transcript still processing: waits 1 hour, retries up to 6 times. Adjust wait time in \"Wait 1 hour\" node."
      }
    },
    {
      "id": "c35ce278-eb86-45db-bc1b-923ccdb7298a",
      "name": "Receive Scoot webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        4496,
        2032
      ]
    },
    {
      "id": "d2a8a82e-6ba1-4e36-a3ee-9e2d6290bae5",
      "name": "Test with sample data",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        4496,
        2208
      ]
    },
    {
      "id": "39e345df-7aed-45e3-9c9e-7721aa152242",
      "name": "Load sample transcript",
      "type": "n8n-nodes-base.code",
      "position": [
        4720,
        2208
      ]
    },
    {
      "id": "daf234dc-5709-4723-a723-9355cbd1663f",
      "name": "Fetch transcript from Scoot",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4960,
        2032
      ]
    },
    {
      "id": "aaa869d4-3587-4cec-8c1e-24625726ac7d",
      "name": "Combine call metadata",
      "type": "n8n-nodes-base.code",
      "position": [
        5184,
        2112
      ]
    },
    {
      "id": "6619177b-3489-4f4b-b2ad-2b536389f385",
      "name": "Transcript ready?",
      "type": "n8n-nodes-base.if",
      "position": [
        5408,
        2112
      ]
    },
    {
      "id": "fbeda433-46ba-4f9e-ae5b-35fb5e10adcf",
      "name": "Extract data with Gemini",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        5584,
        1904
      ]
    },
    {
      "id": "23cc8b8b-bc53-4d37-aa34-c84286505558",
      "name": "Gemini 1.5 Flash",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        5584,
        2096
      ]
    },
    {
      "id": "92d0e107-e3ef-4350-b357-e48b1efe7094",
      "name": "Validate extracted JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        5888,
        2000
      ]
    },
    {
      "id": "a1828d97-3d9c-4b0f-af2e-0337dcdc75eb",
      "name": "Format for CRM update",
      "type": "n8n-nodes-base.code",
      "position": [
        6112,
        2000
      ]
    },
    {
      "id": "8090af00-8d4a-495e-93f2-fbef11386f1d",
      "name": "Update CRM (mock)",
      "type": "n8n-nodes-base.code",
      "position": [
        6320,
        2000
      ]
    },
    {
      "id": "7f517b87-fdcb-408e-b930-7b6cf9413c3e",
      "name": "Email summary to rep",
      "type": "n8n-nodes-base.gmail",
      "position": [
        6528,
        2000
      ]
    },
    {
      "id": "fe29d060-f2b5-4162-9f62-f5960a677246",
      "name": "Count retry attempts",
      "type": "n8n-nodes-base.code",
      "position": [
        5584,
        2256
      ]
    },
    {
      "id": "887699ea-3a93-4ba4-a407-3ba0d61655ba",
      "name": "Retries remaining?",
      "type": "n8n-nodes-base.if",
      "position": [
        5840,
        2224
      ]
    },
    {
      "id": "f260acee-2f46-460c-ac70-c244e6b313ab",
      "name": "Wait 1 hour",
      "type": "n8n-nodes-base.wait",
      "position": [
        6064,
        2224
      ]
    },
    {
      "id": "db2cf67e-4bd3-4c2b-8f01-f8772ee781eb",
      "name": "Prepare retry request",
      "type": "n8n-nodes-base.code",
      "position": [
        6272,
        2224
      ]
    },
    {
      "id": "32069776-e022-467c-93a9-b88118339c53",
      "name": "Log failure",
      "type": "n8n-nodes-base.code",
      "position": [
        6096,
        2448
      ]
    }
  ],
  "connections": {
    "Wait 1 hour": {
      "main": [
        [
          {
            "node": "Prepare retry request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini 1.5 Flash": {
      "ai_languageModel": [
        [
          {
            "node": "Extract data with Gemini",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Transcript ready?": {
      "main": [
        [
          {
            "node": "Extract data with Gemini",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Count retry attempts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update CRM (mock)": {
      "main": [
        [
          {
            "node": "Email summary to rep",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retries remaining?": {
      "main": [
        [
          {
            "node": "Wait 1 hour",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log failure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Count retry attempts": {
      "main": [
        [
          {
            "node": "Retries remaining?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine call metadata": {
      "main": [
        [
          {
            "node": "Transcript ready?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format for CRM update": {
      "main": [
        [
          {
            "node": "Update CRM (mock)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare retry request": {
      "main": [
        [
          {
            "node": "Fetch transcript from Scoot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Scoot webhook": {
      "main": [
        [
          {
            "node": "Fetch transcript from Scoot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test with sample data": {
      "main": [
        [
          {
            "node": "Load sample transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load sample transcript": {
      "main": [
        [
          {
            "node": "Combine call metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate extracted JSON": {
      "main": [
        [
          {
            "node": "Format for CRM update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract data with Gemini": {
      "main": [
        [
          {
            "node": "Validate extracted JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch transcript from Scoot": {
      "main": [
        [
          {
            "node": "Combine call metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}