API Reference
Reference documentation for Ponder
PonderProvider
You can integrate Ponder into your application by wrapping your app in the PonderProvider
. This is usually done in the _app.js
file, but depends on your react framework.
Params
ID of the assistant you created on Ponder dashboard
address of Ponder’s backend server
a list of paths where the Ponder widget should be rendered. If not provided then render everywhere
if true then the Ponder widget will NOT be rendered and its upto you to build a custom UI for the agent using the usePonder hooks
usePonder
The usePonder
hook exposes the core functionality of Ponder. You can access it on any component that is a child of the PonderProvider
Returns
show / hide the Ponder widget on the bottom right, not applicable in headless mode
starts a voice session. closes the session if called when one is already active.
true when the session is active and the agent is listening, false otherwise
lets you set the instructions and context of the agent dynamically
lets you set the functions that the agent can call
lets you set a function to be called whenever user speech start is detected
does not have any arguments
lets you set a function to be called whenever user is done speaking
does not have any arguments
lets you set a function to be called whenever the messages in the conversation change
for example when the user’s speech is transcribed, or when the agent’s response is recieved