Automatisierte Anrufe mit Ultravox-Agent und Twilio

Fortgeschritten

Dies ist ein AI Chatbot, Multimodal AI-Bereich Automatisierungsworkflow mit 8 Nodes. Hauptsächlich werden Set, Twilio, HttpRequest, ManualTrigger und andere Nodes verwendet. Automatisierte ausgehende Anrufe: Verbindung von Ultravox AI-Agenten mit Telefonanrufen via Twilio

Voraussetzungen
  • Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "id": "2szamFl9EWRq9vWT",
  "meta": {
    "instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
    "templateCredsSetupCompleted": true
  },
  "name": "Automate Call with Ultravox Agent and Twilio",
  "tags": [],
  "nodes": [
    {
      "id": "b43c0724-3e62-4d39-b23e-2bb2d7f3febf",
      "name": "Ultravox-Anruf erstellen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        176,
        112
      ],
      "parameters": {
        "url": "=https://api.ultravox.ai/api/agents/{{ $json.agent_id }}/calls ",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "medium",
              "value": "={{\n{\n  twilio: {}\n}\n}}"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "o89TJFFA1zm5vR29",
          "name": "Header Auth Ultravox"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "a3c5dc92-9db1-41c1-ad42-c2ac256220d3",
      "name": "Manuell starten",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -320,
        112
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d69ed985-132d-417c-a073-7d48f6e42d0d",
      "name": "Twilio Anruf",
      "type": "n8n-nodes-base.twilio",
      "position": [
        384,
        112
      ],
      "parameters": {
        "to": "={{ $('Set Params').item.json.phone_number }}",
        "from": "={{ $('Set Params').item.json.twilio_number }}",
        "twiml": true,
        "message": "=<Response><Connect><Stream url=\"{{ $json.joinUrl }}\"/></Connect></Response> ",
        "options": {},
        "resource": "call"
      },
      "credentials": {
        "twilioApi": {
          "id": "95OhsphktdjbbK8i",
          "name": "Twilio account (info@n3w.it)"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7b8b2f16-68e2-4bda-8f20-49468166e72a",
      "name": "Parameter setzen",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        112
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "3281eadf-55e5-4aa5-b1c6-7d676d5be3ec",
              "name": "agent_id",
              "type": "string",
              "value": "xxxxxx-xxxxx-xxxxx-xxxxxxxxxxx"
            },
            {
              "id": "bbda4e33-1520-4973-80d8-957480e60a81",
              "name": "twilio_number",
              "type": "string",
              "value": "+1xxxxxx"
            },
            {
              "id": "7e031906-ae2b-4c02-9e11-43ff39a84351",
              "name": "phone_number",
              "type": "string",
              "value": "+1xxxxxxx"
            }
          ]
        }
      },
      "executeOnce": false,
      "typeVersion": 3.4
    },
    {
      "id": "52f76fc0-bf28-4e56-9548-35837bdec2d8",
      "name": "Notiz",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -832
      ],
      "parameters": {
        "color": 3,
        "width": 800,
        "height": 272,
        "content": "## Automated Outbound Calls: connect Ultravox AI Agents to Phone Calls with Twilio\n\nThis workflow transforms n8n into a call automation system, where AI agents can talk directly with people over the phone using Twilio.\n\nThis workflow integrates Ultravox AI voice agents with Twilio’s telephony service to fully automate outbound phone calls\n\nUltravox generates the AI conversation and audio, while Twilio handles the PSTN connection to the actual phone network, with the two services connected in real-time via a media stream."
      },
      "typeVersion": 1
    },
    {
      "id": "a71aa1fb-7dcd-45e2-850d-728d3436c9f7",
      "name": "Notiz1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -528
      ],
      "parameters": {
        "width": 800,
        "height": 224,
        "content": "## STEP 1 - Buy a Phone Number on Twilio\n- Log into your [Twilio Console](https://www.twilio.com/)\n- Navigate to Phone Numbers\n- Search for Available Numbers\n- Select Your Number\n- Click \"Buy This Number\" to finalize the purchase\n- Get \"Accound SID\" and \"Auth Token\" and set these in \"Twilio Call\" node\n- Set 'twilio_number' in \"Set Params\" node (+1xxxxxxxxxx)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "34a2ff34-0868-4452-ab3c-cdc1c2a72a30",
      "name": "Notiz2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -272
      ],
      "parameters": {
        "width": 800,
        "height": 176,
        "content": "## STEP 2 - Create an Agent on Ultravox\n- Log into your [Ultravox App](https://app.ultravox.ai/)\n- Click on \"Agents\" and \"New Agent\"\n- Set Voice, Tools (optional), System Prompt\n- Save and get your Agent ID\n- Set 'agent_id' in \"Set Params\" node\n"
      },
      "typeVersion": 1
    },
    {
      "id": "ff1a5d6a-8475-4c37-bb8b-403cd8d36c36",
      "name": "Notiz3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -64
      ],
      "parameters": {
        "width": 800,
        "height": 112,
        "content": "## STEP 3 - Make a Call\n- Set your 'phone_number' in \"Set Params\" node\n- Execute WF"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0be19839-e84f-4a06-b5f3-9c1f6f679c3e",
  "connections": {
    "7b8b2f16-68e2-4bda-8f20-49468166e72a": {
      "main": [
        [
          {
            "node": "b43c0724-3e62-4d39-b23e-2bb2d7f3febf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d69ed985-132d-417c-a073-7d48f6e42d0d": {
      "main": [
        []
      ]
    },
    "a3c5dc92-9db1-41c1-ad42-c2ac256220d3": {
      "main": [
        [
          {
            "node": "7b8b2f16-68e2-4bda-8f20-49468166e72a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b43c0724-3e62-4d39-b23e-2bb2d7f3febf": {
      "main": [
        [
          {
            "node": "d69ed985-132d-417c-a073-7d48f6e42d0d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Fortgeschritten - KI-Chatbot, Multimodales KI

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes8
Kategorie2
Node-Typen5
Schwierigkeitsbeschreibung

Für erfahrene Benutzer, mittelkomplexe Workflows mit 6-15 Nodes

Autor

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at info@n3w.it or add me on Linkedin.com/in/davideboizza

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34