Outbound Calls not Working
# support
v
Hi there! I can see you're having trouble with outbound calls not working in Vapi. Based on the image you shared, I can see the main issue - the notification "No squads available. Create a squad to enable this feature" is preventing your calls from going through. This is why you're getting the "Outbound Call Failed" error when trying to use the "Call Many Numbers (Upload CSV)" feature. The "Call Many Numbers (Upload CSV)" feature specifically requires squads to be configured. Here's how you can create a squad to resolve this issue: ## Creating a Squad in Vapi You can create a squad via the API by making a POST request to the
/squad
endpoint:
Copy code
javascript
// Endpoint: https://api.vapi.ai/squad
// Method: POST
// Headers: Authorization: Bearer <your_token>

// Request body example:
{
  "name": "My Outbound Squad", // Optional name for your squad
  "members": [
    // List of assistants that make up the squad
    // The call will start with the first assistant in the list
    { 
      "type": "assistant", 
      "id": "your_assistant_id" // Use your "Callie - Life Insurance Scheduling" assistant ID
    },
    { 
      "type": "destination", 
      "number": "+13127253480" // The destination number
    }
  ]
}
Alternatively, you can create a transient squad at the time of making the call without storing it in Vapi, similar to transient assistants, as mentioned in the [Vapi documentation](https://docs.vapi.ai/squads). ## Using the VAPI Web SDK If you're using the VAPI Web SDK, you can create a squad and trigger a call like this: ```javascript const vapi = new VAPI({ apiKey: 'your_api_key', }); // Define squad members const squadMembers = [ { type: 'assistant', id: 'your_assistant_id' }, // Your Callie assistant { type: 'destination', number: '+13127253480' } // The destination number ]; // Start the call vapi.squadCall(squadMembers) .then(response => { console.log('Call initiated successfully:', response); })
.catch(error => { console.error('Error initiating call:', error); }); ``` ## Additional Troubleshooting Tips If you continue to experience issues after creating a squad, here are some additional things to check: 1. Verify the phone number format is correct (E.164 format, e.g., +15558675309) 2. Check if you're exceeding the limit of 10 outbound calls per day when using Vapi numbers 3. Ensure your Twilio account (if you're using one) has the necessary permissions and is correctly configured 4. Verify that the countries you're trying to call are enabled in your geographic permissions Is there anything else you'd like to know about setting up squads or troubleshooting your outbound calls? Sources: - [Vapi documentation on squads](https://docs.vapi.ai/squads) - [Vapi API reference for creating squads](https://docs.vapi.ai/api-reference/squads/create) - [Discord thread on creating squads and triggering calls](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333667779039203380) - [Discord thread on transient squads](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342725002084225095) - [Troubleshooting guide for outbound call failures](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336432457943351358)
k
To help track down this issue, could you share one or two: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!