I'm trying to create calls with defined properties...
# support
i
So I want to create assistant properties in my own software and then dynamically pass them to VAPI with the create call functionality via the API. (instead of creating and managing assistants in VAPI) Seems to work for a basic call. But when I try to add a tool, it breaks down. What am I doing wrong? The tool documentation seems to allow this. I seem to have an error in my format. going to the endpoint https://api.vapi.ai/call/phone I already have a knowledge base for my chat agents (not vapi) and I'm hoping to integrate vapi for voice agents. Can i dynamically pass in tools with my API calls to VAPI under create calls or not? If so, what am I doing wrong? https://cdn.discordapp.com/attachments/1317591727934017669/1317591728059973643/VAPI_example.txt?ex=675f3e6b&is=675deceb&hm=93f937ef0e60269da45e76052dd1eb2fcd48a18cdbb2665e49583a2fdb055144&
v
message has been deleted
i
@Vapi that is not relevant. how can i get human support to give me an answer?
v
@isaiahbuilds Please ask support for more info on this.
i
@User is this possible? what am i doing wrong?
s
@isaiahbuilds Sorry for the late response. Yes it is possible what your trying to achieve.
Your passing
tools
outside assistant property because of this it's unable to identify the property and causing error for you instead you to pass it inside the assistant model property.
example-curl-request
Copy code
curl -X POST https://api.vapi.ai/call \
     -H "Authorization: Bearer " \
     -H "Content-Type: application/json" \
     -d '{
  "assistant": {
    "model": {
      "provider": "openai",
      "model": "o1-mini",
      "tools": []
    }
  },
  "phoneNumberId": "insert-your-phone-number-id-here",
  "customer": {
    "number": "insert-customer-number-here",
    "numberE164CheckEnabled": false
  }
}'
Do let me know if you require further help!!
i
thanks for the response. i had since figured it out! 🙏
2 Views