Lancer des appels sortants Vapi à partir de nouvelles soumissions de formulaires n8n

Intermédiaire

Ceci est unLead Nurturing, AI Chatbotworkflow d'automatisation du domainecontenant 6 nœuds.Utilise principalement des nœuds comme Set, Wait, FormTrigger, HttpRequest. Utiliser Vapi pour automatiser les appels vocaux sortants à partir des soumissions de formulaires

Prérequis
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "Zgf81bcaaB04rjcd",
  "meta": {
    "instanceId": "9219ebc7795bea866f70aa3d977d54417fdf06c41944be95e20cfb60f992db19",
    "templateCredsSetupCompleted": true
  },
  "name": "Start an outbound Vapi phone call from a new n8n form submission",
  "tags": [],
  "nodes": [
    {
      "id": "cb6ee340-933a-4699-bc0a-be7605309df7",
      "name": "Note adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        158,
        -284
      ],
      "parameters": {
        "width": 260,
        "height": 524,
        "content": "## Set Vapi fields\nYou must set the following fields that you can obtain inside your Vapi account \n- phone number id which will make the call\n- assistant id which will be enabled in the call\n- your Vapi api key\n\n## Set country code\n- insert the phone number country code. Include the + symbol and no spaces."
      },
      "typeVersion": 1
    },
    {
      "id": "b5557910-7469-4937-9229-1d599ad5bf2d",
      "name": "Démarrer un appel sortant Vapi",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        464,
        80
      ],
      "parameters": {
        "url": "https://api.vapi.ai/call",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n    \"assistantId\": \"{{ $json.vapiAssistantId }}\",\n    \"phoneNumberId\": \"{{ $json.vapiPhoneNumberId }}\",\n    \"customer\": {\n        \"number\": \"{{ $('On form submission').item.json.Phone }}\"\n    }\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{ $json.vapiApi }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "e4039ec8-1e6e-4d59-ab3c-14727562cdae",
      "name": "Définir les champs",
      "type": "n8n-nodes-base.set",
      "position": [
        240,
        80
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "f38947e1-c75a-44cc-88f9-c44fc80bada8",
              "name": "vapiPhoneNumberId",
              "type": "string",
              "value": "insert-id"
            },
            {
              "id": "463ed66e-e072-48dc-a75d-a3815fd07de0",
              "name": "vapiAssistantId",
              "type": "string",
              "value": "insert-id"
            },
            {
              "id": "93f058cd-e015-4b83-a16f-efceddafb128",
              "name": "vapiApi",
              "type": "string",
              "value": "insert-api"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "fe87d956-e2f6-4fbd-ac30-e09b3c48bb15",
      "name": "Note adhésive1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -160
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 472,
        "content": "## Requirements \n### n8n form\n- A text field that takes a full international phone number including the + symbol and country code. Example for US: +11234567890.\n- Add more fields according to your use case\n\n### Vapi\n- A [Vapi](https://vapi.ai/?aff=onenode) account with credit\n- A connected phone number which will make the calls\n- An assistant created and ready to make calls\n- Vapi api key \n\n### Useful links\n- [Vapi docs](https://docs.vapi.ai/api-reference/calls/create)"
      },
      "typeVersion": 1
    },
    {
      "id": "5855a19a-0c94-4ca7-ac4c-330fd7b8a194",
      "name": "Sur soumission de formulaire",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -208,
        80
      ],
      "webhookId": "cf168bd9-dd77-4192-aa0e-0c5c5cb3341b",
      "parameters": {
        "options": {
          "appendAttribution": false
        },
        "formTitle": "Lead form",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Name",
              "requiredField": true
            },
            {
              "fieldType": "email",
              "fieldLabel": "Email",
              "requiredField": true
            },
            {
              "fieldLabel": "Phone",
              "placeholder": "Insert + symbol and country code without spaces",
              "requiredField": true
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "3075f3b5-12d0-465a-b1ff-0b13d928f684",
      "name": "Attendre 2 min",
      "type": "n8n-nodes-base.wait",
      "position": [
        16,
        80
      ],
      "webhookId": "dd4440b8-37f2-4f20-84ad-46a9e107fb82",
      "parameters": {
        "unit": "minutes",
        "amount": 2
      },
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "28254a07-4ced-4c28-b49f-9eec8cb01a3c",
  "connections": {
    "3075f3b5-12d0-465a-b1ff-0b13d928f684": {
      "main": [
        [
          {
            "node": "e4039ec8-1e6e-4d59-ab3c-14727562cdae",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e4039ec8-1e6e-4d59-ab3c-14727562cdae": {
      "main": [
        [
          {
            "node": "b5557910-7469-4937-9229-1d599ad5bf2d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5855a19a-0c94-4ca7-ac4c-330fd7b8a194": {
      "main": [
        [
          {
            "node": "3075f3b5-12d0-465a-b1ff-0b13d928f684",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Nurturing de leads, Chatbot IA

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds6
Catégorie2
Types de nœuds5
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
Aitor | 1Node

Aitor | 1Node

@aitoralonso

Hi, I’m Aitor. At 1Node, we help businesses save up to 5 figures annually by deploying private AI infrastructure instead of relying on expensive Cloud Enterprise solutions. As n8n enthusiasts, we love exploring its possibilities and sharing free basic workflows.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34