From fcf0c8ba72bdd265c06870e740257982a48b287b Mon Sep 17 00:00:00 2001 From: Pablo Rubio Date: Fri, 10 Jan 2025 22:16:14 +0100 Subject: [PATCH] Add AI Assistant --- pages/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pages/index.js b/pages/index.js index 5573d97e3..94341d4ea 100644 --- a/pages/index.js +++ b/pages/index.js @@ -80,6 +80,20 @@ function Page({ window.paper = `Welcome, intrepid hacker! We'd love to have you in our community. Get your invite at hack.af/slack. Under "Why do you want to join the Hack Club Slack?" add a 🦄 and we'll ship you some exclusive stickers! ` }, []) + useEffect(() => { + const script = document.createElement('script'); + script.type = 'text/javascript'; + script.src = 'https://cdn.voiceflow.com/widget/bundle.mjs'; + script.onload = () => { + window.voiceflow.chat.load({ + verify: { projectID: '677d53f6c85e69095b811d6a' }, + url: 'https://general-runtime.voiceflow.com', + versionID: 'production', + }); + }; + document.body.appendChild(script); + }, []); + const easterEgg = () => { alert('Hey, you typed the Konami Code!')