{
  "name": "Call analyzer with AssemblyAI transcription and OpenAI assistant integration",
  "nodes": [
    {
      "id": "061bf344-8e0d-46df-a097-dfc000b63bbd",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1240,
        1020
      ]
    },
    {
      "id": "3d66c4ce-e150-4f51-a9f9-4e7f61981ba4",
      "name": "Set link to audio",
      "type": "n8n-nodes-base.set",
      "position": [
        1440,
        1020
      ]
    },
    {
      "id": "f6fe5922-1140-499f-b38b-3f0bc0b398cc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        895
      ],
      "parameters": {
        "width": 224.61210598590444,
        "height": 80,
        "content": "**Replace API key in Header, webhook from 2nd scenario, change settings if needed**"
      }
    },
    {
      "id": "37454706-c012-45b1-83ca-a618a28c27d5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1400,
        900
      ],
      "parameters": {
        "width": 167.86310443717323,
        "height": 80,
        "content": "**Replace this link with direct link on your audio**"
      }
    },
    {
      "id": "a52fc9df-20b5-4b2e-956d-66604be12660",
      "name": "AssemblyAI - Transcribe",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1680,
        1020
      ]
    },
    {
      "id": "89af9ab5-d59b-4224-af00-7b55c4905022",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1580,
        1500
      ]
    },
    {
      "id": "27653ac0-6703-4d25-bc0f-53b93b293b05",
      "name": "AssemblyAI - Get transcription",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1800,
        1500
      ]
    },
    {
      "id": "50166503-27a2-435d-a455-1ea33384585f",
      "name": "OpenAI - Analyze call",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1980,
        1500
      ]
    },
    {
      "id": "266a2e6a-e0cc-4130-a8f0-038d2ba5992c",
      "name": "Set vars",
      "type": "n8n-nodes-base.set",
      "position": [
        1400,
        1500
      ]
    },
    {
      "id": "60dca514-d064-41e9-8ea6-ac3bb29edb74",
      "name": "Create record",
      "type": "n8n-nodes-base.supabase",
      "position": [
        2180,
        1500
      ]
    },
    {
      "id": "f4dbdeed-03e4-499c-b960-8f70459feb70",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        1400
      ],
      "parameters": {
        "width": 167.86310443717323,
        "height": 80,
        "content": "**Replace API key and webhook**"
      }
    },
    {
      "id": "5f54be84-cf62-4ce6-bd21-bef8332ab898",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1960,
        1400
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "**Replace OpenAI connection**"
      }
    },
    {
      "id": "65827237-6611-4ec0-ac62-1d1b4626443f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        1000
      ],
      "parameters": {
        "width": 280.2462120317618,
        "height": 438.5821431288714,
        "content": "#### Scenario 1: Transcribe Call with AssemblyAI\n1. **Set Up Request**:\n    - **Header Authentication**: Set `Authorization` with AssemblyAI API key.\n    - **URL**: POST to `https://api.assemblyai.com"
      }
    },
    {
      "id": "1f9883a3-36a3-4bef-9837-7965322cfc12",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        376.29540128507955
      ],
      "parameters": {
        "width": 636.2128494576581,
        "height": 598.6675280064023,
        "content": "![5min Logo](https://cflobdhpqwnoisuctsoc.supabase.co/storage/v1/object/public/my_storage/Untitled%20(1500%20x%20300%20px).png)\n## Call analyzer with AssemblyAI transcription and OpenAI assistant inte"
      }
    },
    {
      "id": "97fc85cf-f9dc-4659-bcc6-ab7ffbecd4b5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        1000
      ],
      "parameters": {
        "width": 330.5152611046425,
        "height": 240.6839895136402,
        "content": "### ... or watch set up video [5 min]\n[![Youtube Thumbnail](https://cflobdhpqwnoisuctsoc.supabase.co/storage/v1/object/public/my_storage/OPENAI%20(8).png)](https://www.youtube.com/watch?v=kS41gut8l0g)"
      }
    },
    {
      "id": "dcaf9ed5-face-4199-ae8c-dc70c97588f6",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1220,
        1500
      ]
    },
    {
      "id": "c7c01657-3b8d-4a1b-a33b-9c9404f17423",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        1520
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "## Scenario 2"
      }
    },
    {
      "id": "a8a9cbbf-f581-4f0c-8325-d4b84c0778f8",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        1040
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "## Scenario 1"
      }
    },
    {
      "id": "a92ff422-3440-48ea-8311-533315e74d07",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1380,
        1400
      ],
      "parameters": {
        "width": 167.86310443717323,
        "height": 80,
        "content": "**Replace prompt and JSON schema**"
      }
    },
    {
      "id": "329b3b74-1bab-4cea-ab71-43e94b008f3d",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1860,
        1020
      ],
      "parameters": {
        "width": 224.61210598590444,
        "height": 92.99888586957334,
        "content": "**If you change speaker_labels to false it will require change user message in OpenAI and Supabase nodes**"
      }
    },
    {
      "id": "04275f30-23e3-4c28-afe7-07e8c1c2455c",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        1400
      ],
      "parameters": {
        "width": 167.86310443717323,
        "height": 80,
        "content": "**Replace Supabase connection**"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "AssemblyAI - Get transcription",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Set vars",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set vars": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set link to audio": {
      "main": [
        [
          {
            "node": "AssemblyAI - Transcribe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Analyze call": {
      "main": [
        [
          {
            "node": "Create record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AssemblyAI - Get transcription": {
      "main": [
        [
          {
            "node": "OpenAI - Analyze call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Set link to audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}