indierepublik
10/23/2024, 4:56 AMVapi
10/23/2024, 4:58 AMapiKey variable in your script is set to the correct public API key from your VAPI Dashboard. It should not be the private key.
2. **Check the Assistant ID**: Verify that the assistant variable is set to the correct Assistant ID.
3. **Script Tags**: Make sure that the < and > symbols are not included in your actual apiKey and assistant values in the script. These are placeholders and should be replaced with the actual values without angle brackets.
4. **CORS Configuration**: If you're getting a 403 error, it could be related to Cross-Origin Resource Sharing (CORS) settings. Check if your server is configured to allow requests from the domain where you're trying to embed the VAPI.
5. **Browser Extensions**: Sometimes, browser extensions can interfere with the requests. Try disabling them or testing the embed in an incognito window.
6. **Network Issues**: Ensure that there are no network issues or firewalls blocking the request.
7. **Console Errors**: Look for any additional errors in the browser console that might give more insight into the issue.
8. **Contact Support**: If you've checked all of the above and the issue persists, it might be best to contact VAPI support for further assistance.
Remember to replace the placeholder values with your actual apiKey and assistant values when embedding the script on your website. If you've already done this and are still facing issues, please reach out to support for more detailed assistance.Vapi
10/23/2024, 4:58 AMindierepublik
10/23/2024, 5:12 AMYash
10/23/2024, 6:53 AMconst assistant = "<7a3f6b95-c059-49b7-845c-fbb66a1856d6>"; // Substitute with your assistant ID
const apiKey = "<123e3d9d-8e6b-4188-80c9-3e10b4eae05e>"; // Substitute with your Public key from Vapi Dashboard.
the correct code should look like:
const assistant = "7a3f6b95-c059-49b7-845c-fbb66a1856d6"; // Substitute with your assistant ID
const apiKey = "123e3d9d-8e6b-4188-80c9-3e10b4eae05e"; // Substitute with your Public key from Vapi Dashboard.indierepublik
10/23/2024, 7:47 AM