{"id":"J617rBUQYkh2SaEZ","meta":{"instanceId":"9219ebc7795bea866f70aa3d977d54417fdf06c41944be95e20cfb60f992db19","templateCredsSetupCompleted":true},"name":"Start an outbound Vapi phone call from a new Typeform submission","tags":[],"nodes":[{"id":"6c0ef8ff-de61-43b5-abf9-3e58e1ea082a","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[158,-156],"parameters":{"width":260,"height":396,"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"},"typeVersion":1},{"id":"24916d7d-9ef6-4150-b452-bdc848adfe0e","name":"Start outbound Vapi call","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\": \"{{ $('Typeform Trigger').item.json.Phone }}\"\n    }\n}\n","sendBody":true,"sendHeaders":true,"specifyBody":"json","headerParameters":{"parameters":[{"name":"Authorization","value":"=Bearer {{ $json.vapiApi }}"}]}},"typeVersion":4.2},{"id":"03574069-ce42-4a6f-8b34-b47a41b481c0","name":"Set fields","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":"da806b32-09c9-4f62-8006-9145435bf956","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[-624,-160],"parameters":{"color":4,"width":320,"height":488,"content":"## Requirements \n### Typeform\n- [Typeform](https://typeform.cello.so/e2pbXQKsijA) account\n- Typerform personal access token and credentials enabled in n8n\n- A Typeform form published that includes a phone number field\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)\n- [n8n Typeform credentials](https://docs.n8n.io/integrations/builtin/credentials/typeform/)"},"typeVersion":1},{"id":"38eaeb6e-857d-4e89-bcc8-8a2b589a763b","name":"Wait 2min","type":"n8n-nodes-base.wait","position":[16,80],"webhookId":"f86392cf-37bc-46e0-a6c5-6f5c3ffb59b7","parameters":{"unit":"minutes","amount":2},"typeVersion":1.1},{"id":"e7da33ce-eeca-49b9-92f2-8c3b3f0cb9aa","name":"Typeform Trigger","type":"n8n-nodes-base.typeformTrigger","position":[-208,80],"webhookId":"18d84aa4-0439-42c2-83b2-b1af863c7340","parameters":{"formId":"FW7LOAGB"},"credentials":{"typeformApi":{"id":"1UwaMkZidasC5lr5","name":"Typeform account"}},"typeVersion":1.1}],"active":true,"pinData":{},"settings":{"executionOrder":"v1"},"versionId":"c1040a07-9577-4116-bd4e-05990a5a0f7a","connections":{"Wait 2min":{"main":[[{"node":"Set fields","type":"main","index":0}]]},"Set fields":{"main":[[{"node":"Start outbound Vapi call","type":"main","index":0}]]},"Typeform Trigger":{"main":[[{"node":"Wait 2min","type":"main","index":0}]]}}}