Adding Tools while dynamically creating an assistant via react/web SDK.

I have an agent execution platform based on the google ADK which takes the input from the user and respond via a REST endpoint. Now I want to add voice to this setup.

Im expecting vapi to take the voice from the user transcribe and give me a callback and then transform the response text back to voice and talk to user. Not seeing a mechanishm to do this as of now.

I tried to use the reactSDK and created assistants on the fly. Idea was to create a basic agent which handles the conversation and adding my agent execution end point as a tool and then prompt the assitant to call the tool always.

BUt I am not able to add tools for the dynamically created agent. When I mention the 'tools' property, the vapi is throwing an error 400 .
Was this page helpful?