ShayR Posted March 25 Share Posted March 25 Hello, I am trying to embed a script on one of the page, its shown in the builder but on real page its not seen: please help me fix this. thanks <script> var vapiInstance = null; const assistant = ""; const apiKey = ""; const buttonConfig = { position: "center", offset: "40px", width: "50px", height: "50px", idle: { color: `rgb(93, 254, 202)`, type: "pill", title: "Expirance Sales with AI!", subtitle: "Talk with James our AI sales agent ", icon: `https://unpkg.com/lucide-static@0.321.0/icons/phone.svg`, }, loading: { color: `rgb(93, 124, 202)`, type: "pill", title: "Connecting...", subtitle: "Please wait", icon: `https://unpkg.com/lucide-static@0.321.0/icons/loader-2.svg`, }, active: { color: `rgb(255, 0, 0)`, type: "pill", title: "Call is in progress...", subtitle: "End the call.", icon: `https://unpkg.com/lucide-static@0.321.0/icons/phone-off.svg`, }, }; (function (d, t) { var g = d.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 () { vapiInstance = window.vapiSDK.run({ apiKey: apiKey, assistant: assistant, config: buttonConfig, }); // Attach event listeners after the vapiInstance is initialized vapiInstance.on('speech-start', () => { console.log('Speech has started'); }); vapiInstance.on('speech-end', () => { console.log('Speech has ended'); }); vapiInstance.on('call-start', () => { console.log('Call has started'); }); vapiInstance.on('call-end', () => { console.log('Call has stopped'); }); vapiInstance.on('volume-level', (volume) => { console.log(`Assistant volume level: ${volume}`); }); vapiInstance.on('message', (message) => { console.log(message); }); vapiInstance.on('error', (e) => { console.error(e); }); }; })(document, "script"); </script> Link to comment
tuanphan Posted March 27 Share Posted March 27 Hi This code will? And where did you get this code? Can you share link to page where you added code? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
ShayR Posted March 28 Author Share Posted March 28 https://www.speaq.ai/sales under the image Link to comment
ShayR Posted March 28 Author Share Posted March 28 another question, the person invented the sqaurespace design, should be fired...really. this is a disaster, want to change text of some form, i need to do 10000 clicks to find the F***ing thing! Link to comment
tuanphan Posted March 31 Share Posted March 31 I see you used Embed Block Try Code Block instead Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
ShayR Posted April 1 Author Share Posted April 1 i tried , it didn't help,.....any other idea to solve this? btw does squarespace has a built in affiliate program that I can use? Link to comment
tuanphan Posted April 3 Share Posted April 3 On 4/1/2024 at 5:39 PM, ShayR said: i tried , it didn't help,.....any other idea to solve this? btw does squarespace has a built in affiliate program that I can use? #1. If it works, it will show something or? #2. Yes, SS has affiliate program https://www.squarespace.com/affiliates Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
ShayR Posted April 3 Author Share Posted April 3 it works but it appears outside the slide....scroll down till end of the site its on the left corner. how can i bring it back to the upper silde? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment