使用Ultravox代理和Twilio自动化呼叫
中级
这是一个AI Chatbot、Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 Set、Twilio、HttpRequest、ManualTrigger 等节点。 自动化外呼:将Ultravox AI代理连接到电话呼叫,使用Twilio
前置要求
- •可能需要目标 API 的认证凭证
使用的节点 (8 个)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "2szamFl9EWRq9vWT",
"meta": {
"instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
"templateCredsSetupCompleted": true
},
"name": "使用 Ultravox 代理和 Twilio 自动化呼叫",
"tags": [],
"nodes": [
{
"id": "b43c0724-3e62-4d39-b23e-2bb2d7f3febf",
"name": "创建 Ultravox 呼叫",
"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": "手动启动",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-320,
112
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d69ed985-132d-417c-a073-7d48f6e42d0d",
"name": "Twilio 呼叫",
"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": "设置参数",
"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": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-832
],
"parameters": {
"color": 3,
"width": 800,
"height": 272,
"content": "## 自动外呼:通过 Twilio 将 Ultravox AI 代理连接到电话呼叫"
},
"typeVersion": 1
},
{
"id": "a71aa1fb-7dcd-45e2-850d-728d3436c9f7",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-528
],
"parameters": {
"width": 800,
"height": 224,
"content": "## 步骤 1 - 在 Twilio 上购买电话号码"
},
"typeVersion": 1
},
{
"id": "34a2ff34-0868-4452-ab3c-cdc1c2a72a30",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-272
],
"parameters": {
"width": 800,
"height": 176,
"content": "## 步骤 2 - 在 Ultravox 上创建代理"
},
"typeVersion": 1
},
{
"id": "ff1a5d6a-8475-4c37-bb8b-403cd8d36c36",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-64
],
"parameters": {
"width": 800,
"height": 112,
"content": "## 步骤 3 - 进行呼叫"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "0be19839-e84f-4a06-b5f3-9c1f6f679c3e",
"connections": {
"Set Params": {
"main": [
[
{
"node": "Create Ultravox Call",
"type": "main",
"index": 0
}
]
]
},
"Twilio Call": {
"main": [
[]
]
},
"Start Manually": {
"main": [
[
{
"node": "Set Params",
"type": "main",
"index": 0
}
]
]
},
"Create Ultravox Call": {
"main": [
[
{
"node": "Twilio Call",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个中级难度的工作流,适用于AI Chatbot、Multimodal AI等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 VAPI 构建 AI 语音助手
WooCommerce AI语音客服,使用VAPI、GPT-4o、Gemini和RAG
Set
Webhook
Http Request
+13
25 节点Davide
Miscellaneous
适用于WooCommerce Nano Banana的AI虚拟试穿
使用Fal.ai Nano Banana为WooCommerce自动生成虚拟AI试穿图像
If
Set
Wait
+7
20 节点Davide
Content Creation
使用Gemini和Google Veo 3创建UGC视频并上传到Instagram
通过Gemini和Google Veo 3自动化UGC视频创作,并通过Postiz上传到Instagram
Set
Merge
Postiz
+5
13 节点Davide
Content Creation
我的智能体竞技场社区竞赛
使用Qdrant、Mistral OCR和GPT-4构建基于RAG的问答系统
Set
Code
Wait
+19
41 节点Davide
Content Creation
使用 Qdrant 的完整 RAG 系统,带自动更新文档功能
使用OpenAI、Google Gemini、Qdrant和Google Drive构建自更新RAG系统
Set
Wait
Google Drive
+13
32 节点Davide
AI RAG
使用Google Veo3 Fast创建更便宜的视频并上传到社交媒体
使用Veo3 Fast创建低成本AI视频并上传至YouTube和TikTok
If
Set
Wait
+7
23 节点Davide
Content Creation
工作流信息
难度等级
中级
节点数量8
分类2
节点类型5
作者
Davide
@n3witaliaFull-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
外部链接
在 n8n.io 上查看 →
分享此工作流