mindofman
07/22/2024, 10:00 PMVapi
07/22/2024, 10:01 PMVapi
07/22/2024, 10:01 PMVapi
07/22/2024, 10:03 PMmindofman
07/22/2024, 10:04 PMVapi
07/22/2024, 10:04 PM</body> tag.
2. **Public Key Usage**: Confirm that you are using the public key in the snippet. The private key should never be exposed on the client side.
3. **Snippet Configuration**: Check the configuration within the snippet to ensure the public key is correctly assigned to the appropriate variable or parameter.
4. **CORS Settings**: Since you mentioned you've allowed all origins, ensure that the settings have been saved and propagated. Sometimes changes to settings can take a few minutes to take effect.
5. **Browser Console**: Open the browser's developer console to check for any errors when the page loads. This can give you clues about what might be going wrong.
6. **Clear Cache**: If you've made changes to the keys or settings, clear your browser cache or try in incognito mode to ensure you're not seeing a cached version of the page.
7. **Documentation**: Review the VAPI documentation for the web snippet to ensure you haven't missed any steps.
If you've checked all these and the issue persists, it might be a good idea to reach out to VAPI support directly for further assistance. You can send an email to the support team by clicking [here](support@vapi.ai). They will be able to help you with more specific troubleshooting steps.mindofman
07/22/2024, 10:08 PMVapi
07/22/2024, 10:08 PMShubham Bajaj
07/23/2024, 1:46 PMmindofman
07/23/2024, 3:27 PMShubham Bajaj
07/23/2024, 8:14 PMmindofman
07/23/2024, 11:46 PMShubham Bajaj
07/24/2024, 9:04 PMmindofman
07/24/2024, 9:57 PMShubham Bajaj
07/25/2024, 7:57 PMShubham Bajaj
07/25/2024, 7:59 PMjs
(function (d, t) {
var g = document.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src =
"https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js";
g.defer = true;
g.async = true;
s.parentNode.insertBefore(g, s);
g.onload = function () {
const vapi = window.vapiSDK.run({
apiKey: "", // required Use your Public Key
squad: squad, // You can pass in squad as an option to create squad.
config: buttonConfig // optional
});
if(vapi) {
// Extend more using vapi
}
};
})(document, "script");Shubham Bajaj
07/25/2024, 7:59 PMmindofman
07/25/2024, 11:01 PMhttps://api.vapi.ai/squad/deab8b8e-d022-4638-a0a5-a25bda6727b2, {
method: "GET",
headers: {
"Authorization": Bearer edc73e5f-1d64-4759-9171-7499212fe287,
"Content-Type": "application/json"
}
})
.then(response => {
if (!response.ok) {
throw new Error(HTTP error! status: ${response.status});
}
return response.json();
})
.then(data => console.log("Fetch success:", data))
.catch(error => console.error("Fetch error:", error));
});
};
})(document, "script");mindofman
07/25/2024, 11:14 PMShubham Bajaj
07/26/2024, 4:58 PMShubham Bajaj
07/26/2024, 4:58 PM