function called but "unexpected error"
I have defined a very basic function:
When I ask, "please launch a rocket", the function is called successfully but so far 100% of the time it is followed by "An unexpected error occurred." making the voice agent assume something went wrong (even tho the function was called fine).
Example transcript:
I can't figure out how to debug this, can someone point me in the right direction?
- launch-rocket: This function launches a rocket. Call it to launch a rocket.
vapi.on('message', ...) so I haven't added an url or any properties to the function.When I ask, "please launch a rocket", the function is called successfully but so far 100% of the time it is followed by "An unexpected error occurred." making the voice agent assume something went wrong (even tho the function was called fine).
Example transcript:
I can't figure out how to debug this, can someone point me in the right direction?