Vapi Integration
To use vapi assistant, you have to specify OTO_USER_ID
to identify
For setting up the Vapi Assistant, you must ensure that you specify the OTO_USER_ID
to uniquely identify users. This is done by including the user identifier within the metadata
object when starting the assistant instance.
Example:
const userId = 'unique-user-id'; // Replace with your actual user ID
vapi.start(assistantId, {
metadata: {
"OTO_USER_ID": userId,
},
});
The OTO_USER_ID
serves as a primary identifier linking all your actions within the assistant, while the call.id
is specific to each session or interaction instance. This ensures a unique session context is maintained for every conversation initiated by the user. Proper management of these identifiers enhances user tracking capabilities and optimizes interaction handling within the Vapi Assistant framework.
Last updated