Create tool, to warm transfer to single number, wh...
# support
k
Hello everyone! I have the task of creating a cold caller, with the ability to warm transfer to call to our salesperson while uploading the summary to MAKE.com. I already read the documentation, and read the discord support. The best I got was making an API request with the JSON available in the example, to create a tool, but I get HTTP error 400 like in the screenshot: Would someone be so kind as to send me in the right direction? Kind regards https://cdn.discordapp.com/attachments/1305242649061752882/1305242649330061402/image.png?ex=67325171&is=6730fff1&hm=ec033e9f62fd570f3ddcde217ae0db90ada64e7e23f517fdc1af691c5ffb623e&
v
@Kernel Hello! It's great to hear that you're working on creating a cold caller with warm transfer capabilities. The HTTP error 400 you encountered typically indicates a bad request, which could be due to various reasons such as incorrect URL, headers, or body parameters. To assist you further, I would need to see the exact request you're making (without any sensitive information) to understand what might be going wrong. However, here are some general steps you can follow to troubleshoot the issue: 1. **Check the URL**: Ensure that the Server URL you are using is correct and corresponds to the API endpoint you're trying to reach. 2. **Review Headers**: Make sure that you have set the correct headers for your request, including content type and any required authentication tokens. 3. **Validate JSON Body**: The body of your request should match the expected schema. Double-check that all required fields are present and that there are no syntax errors in your JSON. 4. **API Documentation**: Refer back to the API documentation to ensure that you are using the correct parameters and endpoint for your request. 5. **Error Messages**: Look at the body of the 400 response. Often, it will contain an error message that can give you more information about what went wrong. 6. **Discord Support**: Since you mentioned you've read the Discord support, consider reaching out there again with specifics of your issue for community assistance. If you provide me with the non-sensitive part of your request or more details about the error message you received, I might be able to offer more targeted advice. Remember to keep any sensitive information like API keys or personal data out of our conversation. Let's get this sorted out so you can move forward with your project!
You can continue this conversation by mentioning me in the message.
k
Thank you for your quick reply. Here is the Valid JSON body (phone is hided): { "tools": [ { "type": "transferCall", "destinations": [ { "type": "number", "number": "+3519xxxxxxx", "message": "I am forwarding your call to a salesperson. Please stay on the line.", "transferPlan": { "mode": "warm-transfer-with-summary", "message": "", "summaryPlan": { "enabled": true, "messages": [ { "role": "system", "content": "Provide a brief, informative summary of the call in 2-3 sentences. Focus on the main issue, any relevant details, and the reason for transfer." }, { "role": "user", "content": "Here is the transcript:\n\n{{transcript}}\n\n" } ], "timeoutSeconds": 10 } } } ] } ] }
Can you help me?
@Vapi
v
@Kernel Certainly! The JSON body you've provided looks well-structured for a tool that would handle a call transfer with a summary. However, since you're receiving an HTTP 400 error, there might be an issue with how the API is being called or with the parameters that are not matching the API's expected schema. Here are a few things you can check: 1. **Endpoint URL**: Make sure the URL you're using to make the API request is correct and corresponds to the tool creation endpoint. 2. **Headers**: Verify that you're including the correct
Content-Type
header, usually
application/json
, and any required authentication headers. 3. **API Key**: If the API requires an authentication token or an API key, ensure that it is included in the request headers and is valid. 4. **Required Fields**: Double-check that all required fields are included in your JSON body and that they adhere to the expected format defined by the API. 5. **Tool Configuration**: Ensure that the tool you're trying to configure with this JSON body is supported by the API and that the parameters you're using are correct. 6. **Error Message**: Look at the response body of the HTTP 400 error. It often contains a message that can give you more specific information about what is wrong with your request. If you're still unable to resolve the issue, please provide the exact error message you're receiving (excluding any sensitive information), and I'll do my best to assist you further. Remember, if you're using a third-party service like MAKE.com, you'll also need to ensure that the API request is compatible with their expected request format and that you have the correct permissions and authentication to post data to their service.
k
@Shubham Bajaj Would you be so kind as to assist me?
I was able to create the tool, using the COMPLETE EXAMPLE in https://docs.vapi.ai/call-forwarding Testing atm
Warm transfer is working! But the resume goes in the audio to the salesperson before the transfer. How can I make an API call with the summary?
s
Hey @Kernel can you try using this mode once
warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary
Let me know how it goes.
k
Thank you for your reply, Will that allow me to make an API can with summary to a specific URL? or play the audio?
s
No you cannot play the audio. IT won't make the API call instead voices out the summary to the person reciving the transfered call.
k
Thank you