How can I integrate Facebook Lead Ads form submiss...
# support
v
I receive contacts from a client through Facebook Lead Ads forms. Currently, I already use an automation flow with n8n that sends the leads to a WhatsApp-based AI agent for the first contact. My question is: is it possible with VAPI, using n8n, to take the phone number from the form and automatically trigger an outbound call handled by an AI agent? The goal would be for the agent to make the first contact, provide basic information, and schedule a presentation meeting. If this is possible, which endpoint should I use in VAPI to send the call to that phone number? Additionally, I have one more question: When the call goes to voicemail, is the call duration charged by the minute? Is it possible to configure VAPI to automatically hang up as soon as the call hits voicemail, to avoid unnecessary charges?
v
To trigger an outbound call from n8n when you receive a Facebook Lead, use an HTTP Request node to call Vapi's API. Here’s a sample payload for the POST request:
Copy code
json
POST https://api.vapi.ai/call
{
  "assistantId": "YOUR_ASSISTANT_ID",
  "phoneNumberId": "YOUR_PHONE_NUMBER_ID",
  "customer": { "number": "+1234567890" }
}
Replace the IDs and phone number with your actual data. This will initiate an outbound call handled by your AI agent. For more details, see the [Vapi outbound calling docs](https://docs.vapi.ai/calls/outbound-calling). Source: - [Outbound Calling](https://docs.vapi.ai/calls/outbound-calling)
c
Hi Victor Cardoso, To create and manage outbound call campaigns using Vapi, you can leverage the Outbound Call Campaigns feature directly in the Vapi Dashboard. Here's a brief overview of the process: 1. **Campaign Configuration**: - Set the campaign name and type. 2. **Phone Number Selection**: - Choose your outbound phone number, preferably from a provider like Twilio. 3. **Recipient Management**: - Upload recipients using a CSV file. Ensure phone numbers are in E.164 format and use UTF-8 encoding for the CSV. 4. **Assistant Selection**: - Select an existing Vapi Assistant to handle outbound calls. 5. **Review & Execute**: - Review the campaign details and initiate or schedule the calls. You can monitor and analyze campaign performance through the Campaign Dashboard, which provides insights into call statuses, durations, and outcomes. For detailed setup instructions, refer to the [Outbound Campaigns Overview](https://docs.vapi.ai/outbound-campaigns/overview). If you need further assistance with setting up any specific feature, feel free to ask.
4 Views