Ask Inkeep
Ask Inkeep
VVAPI
Created by continuing-cyan on 6/5/2024 in #support
Where put the JSON?
fetch('https://api.vapi.ai/assistant', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"transcriber": {
"provider": "deepgram",
"model": "nova",
"languages": ["en", "de", "pl"]
},
"voice": {
"provider": "11labs",
"voiceId": "t0jbNlBVZ17f02VDIeMI"
},
"languageMappings": {
"de": {
"voiceId": "vj2Y0u1NaT1ayH6VYkYu"
},
"pl": {
"voiceId": "7u8qsX4HQsSHJ0f8xsQZ"
}
}
})
})
.then(response => response.json())
.then(data => console.log(data));
fetch('https://api.vapi.ai/assistant', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"transcriber": {
"provider": "deepgram",
"model": "nova",
"languages": ["en", "de", "pl"]
},
"voice": {
"provider": "11labs",
"voiceId": "t0jbNlBVZ17f02VDIeMI"
},
"languageMappings": {
"de": {
"voiceId": "vj2Y0u1NaT1ayH6VYkYu"
},
"pl": {
"voiceId": "7u8qsX4HQsSHJ0f8xsQZ"
}
}
})
})
.then(response => response.json())
.then(data => console.log(data));
This script assumes you have proper authentication and the necessary permissions to perform such operations. Adjust the endpoint URL and method according to whether you're creating a new assistant or updating an existing one.
9 replies
VVAPI
Created by like-gold on 6/5/2024 in #support
Where put the JSON?
Answer The JSON configuration you've shown is typically used for setting up various parameters of an assistant, such as the transcriber, voice, and language mappings. However, this JSON shouldn't be directly pasted into the system prompt field. In Vapi, the system prompt is designed to dictate the assistant's initial interaction and define its behavior during a session. This includes setting the context, instructions, and personality of the assistant. If you're looking to configure the assistant's transcriber and voice properties, you should do this through the assistant's setup options in the Vapi dashboard or via the API, not through the system prompt. For setting up or modifying an assistant's configuration on the dashboard: 1. Log into the Vapi dashboard. 2. Navigate to the 'Assistants' section. 3. Create a new assistant or edit an existing one. 4. Configure the transcriber, voice, and other settings by providing the appropriate JSON in the configuration sections. Alternatively, if you prefer using API calls, you can refer to relevant endpoints in the Vapi documentation for creating or updating an assistant, where you can pass your JSON configuration (1) . If you need to set or update these configurations programmatically, here’s a sample API call using the POST method to create or update an assistant:
9 replies
VVAPI
Created by narrow-beige on 6/5/2024 in #support
Where put the JSON?
----------------------------- While I generate an answer, here are some sources that might be helpful: * Dashboard * Web Calling * Outbound Calling * Create Assistant -----------------------------
9 replies
VVAPI
Created by genetic-orange on 6/5/2024 in #support
Where put the JSON?
Hi @Rafal Kwiatkowski, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
9 replies
VVAPI
Created by fascinating-indigo on 6/5/2024 in #support
Stumbling over words and saying the same sentence twice
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
45 replies
VVAPI
Created by rare-sapphire on 6/5/2024 in #support
Can't add azure openAI credentials
Got it. Tagging @Vapi Team for additional help.
11 replies
VVAPI
Created by useful-bronze on 6/5/2024 in #support
Can't add azure openAI credentials
Answer The error message you're encountering suggests that the issue lies with the Azure OpenAI credentials you are using. Here are a few steps you should verify: 1. Subscription Key Validity: Ensure that the subscription key you are using is still active and hasn't expired. 2. Correct API Key: Double-check that the API key(s) you have used (Key 1 and Key 2) are correctly input without any typographical errors. 3. Proper Endpoint: Make sure you are using the correct regional API endpoint that corresponds to your Azure OpenAI service. Since the response indicates "Access denied due to invalid subscription key or wrong API endpoint," it's crucial to verify that both the key and endpoint are accurately configured for your requests. If after these checks the issue persists, consider regenerating a new API key from the Azure portal and ensure that all API requests are aligned with Azure's expected parameters and authentication methods.
11 replies
VVAPI
Created by unwilling-turquoise on 6/5/2024 in #support
Can't add azure openAI credentials
----------------------------- While I generate an answer, here are some sources that might be helpful: * Call Ended Reason * Update Credential * Create Credential * Get Call -----------------------------
11 replies
VVAPI
Created by afraid-scarlet on 6/5/2024 in #support
Can't add azure openAI credentials
Hi @Jotham, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
11 replies
VVAPI
Created by fascinating-indigo on 6/5/2024 in #support
Error from Vapi Web SDK: `play() can only be initiated by a user gesture`
Answer The error message you're encountering, play() can only be initiated by a user gesture, typically happens due to web browsers' policies to prevent videos and audios from playing automatically without a user interaction, like a click or a tap. To resolve this issue within the context of using the Vapi Web SDK, you should ensure that audio playback (like starting a conversation or speech synthesis) is triggered by some form of user action. This can be a button press or any other explicit interaction from the user. Here is a basic example of how you might adjust your implementation:
// Assuming you have a button with an id of 'startButton'
document.getElementById('startButton').addEventListener('click', function() {
vapi.start("your-assistant-id");
// This will ensure the audio starts only after user interaction
});
// Assuming you have a button with an id of 'startButton'
document.getElementById('startButton').addEventListener('click', function() {
vapi.start("your-assistant-id");
// This will ensure the audio starts only after user interaction
});
This approach adheres to the browsers’ autoplay policies by initiating the audio play through a user-triggered event, thus avoiding the error related to autoplay restrictions. Make sure to implement similar user-triggered interactions wherever you need to initiate audio playback or voice interactions in your application. This should help mitigate the issue across your web app when using the Vapi Web SDK.
9 replies
VVAPI
Created by optimistic-gold on 6/5/2024 in #support
Error from Vapi Web SDK: `play() can only be initiated by a user gesture`
----------------------------- While I generate an answer, here are some sources that might be helpful: * Web SDK * Vapi Web SDK * Client SDKs * Vapi Flutter SDK -----------------------------
9 replies
VVAPI
Created by sensitive-blue on 6/5/2024 in #support
Error from Vapi Web SDK: `play() can only be initiated by a user gesture`
Hi @Josh (1851 Labs), I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
9 replies
VVAPI
Created by grumpy-cyan on 6/5/2024 in #support
elevenlabs
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
11 replies
VVAPI
Created by modern-teal on 6/5/2024 in #support
Agent Disepear
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
12 replies
VVAPI
Created by harsh-harlequin on 6/5/2024 in #support
Stumbling over words and saying the same sentence twice
Got it. Tagging @Vapi Team for additional help.
45 replies
VVAPI
Created by multiple-amethyst on 6/5/2024 in #support
Stumbling over words and saying the same sentence twice
Answer It seems like there might be an issue with the UI component on the platform you're using. Unfortunately, without specific details about how Vapi's UI elements like the 'ask for help' button are integrated and function within your environment, I can't provide a tailored solution. If you're encountering UI issues, it could be related to how the widget or assistant is embedded or how event listeners are set up for button interactions within your system. You might need to review the integration code and ensure that all elements are correctly configured and that the JavaScript managing these interactions is functioning as expected (1) . For further assistance, you might want to inspect the browser's console for any error messages or warnings that could indicate what might be going wrong when the button is clicked. If the issue persists, checking the implementation against the Vapi documentation could help identify any discrepancies (2) .
45 replies
VVAPI
Created by stormy-gold on 6/5/2024 in #support
Stumbling over words and saying the same sentence twice
----------------------------- While I generate an answer, here are some sources that might be helpful: * Prompting Guide * Inbound Support Example * Voice Widget Example * Call Forwarding -----------------------------
45 replies
VVAPI
Created by conscious-sapphire on 6/5/2024 in #support
Stumbling over words and saying the same sentence twice
Thanks for the follow-up, @Saien | Exousia AI. I'll get back to you soon.
45 replies
VVAPI
Created by metropolitan-bronze on 6/5/2024 in #support
Compliance
Answer Vapi adheres to stringent compliance standards, including HIPAA for health data privacy and security (1) , and SOC-2, which focuses on security, availability, processing integrity, confidentiality, and privacy of customer data (2) . These compliance measures ensure that Vapi operates with high standards of data protection and reliability, catering to various business and regulatory requirements.
9 replies
VVAPI
Created by fascinating-indigo on 6/5/2024 in #support
Compliance
----------------------------- While I generate an answer, here are some sources that might be helpful: * HIPAA Compliance * SOC-2 Compliance * On-Prem Deployments * HIPAA audit trail requirements -----------------------------
9 replies