{
  "name": "Connect Retell Voice Agents to custom functions",
  "nodes": [
    {
      "id": "693e094e-0329-455d-9c42-ba398dd40955",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -500,
        -160
      ]
    },
    {
      "id": "6172b8b6-4950-4b7f-a60c-ce782139f24c",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        300,
        -160
      ]
    },
    {
      "id": "6ebeaeb7-4ec5-4f5d-b8d5-3fd51ca8604c",
      "name": "[Replace me!] Set response",
      "type": "n8n-nodes-base.set",
      "position": [
        -100,
        -160
      ]
    },
    {
      "id": "86c16dd4-0d9d-40bb-a495-02c1a2ac06f1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -340
      ],
      "parameters": {
        "width": 400,
        "height": 360,
        "content": "### 🧠 Place your logic here!\nYour Agent logic goes here.\nYou can, for example, use an **AI Agent** to provide information back to your Retell agent and/or **make an action in a third party service**. "
      }
    },
    {
      "id": "f8be07ca-1d3f-46cb-b858-bb22b15efe0f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -340
      ],
      "parameters": {
        "width": 220,
        "height": 360,
        "content": "### Retell Custom Function Webhook\nPOST Webhook received from Retell's Custom Function each time it is triggered by Retell's Voice Agent"
      }
    },
    {
      "id": "94ec297f-aa00-4358-b1f9-834438548a19",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -340
      ],
      "parameters": {
        "width": 300,
        "height": 360,
        "content": "### Retell Custom Function Response\nResponse to the webhook that will be provided back to Retell's Voice Agent.\n\n**Modify the response accordingly** if you want anything else than the first incoming i"
      }
    },
    {
      "id": "baff741b-8cd3-4f7d-a56f-5029e1babc26",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1500,
        -700
      ],
      "parameters": {
        "width": 880,
        "height": 1220,
        "content": "## Connect Retell Voice Agents to Custom Functions\n\n## Overview\n- This workflow allows you to **trigger custom logic in n8n directly from Retell's Voice Agent** using [Custom Functions](https://docs.r"
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "[Replace me!] Set response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "[Replace me!] Set response": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}