Set up your
secure worker
Set up your Cloudflare Worker once — it hides your API key and blocks spam.
Sign up free
Go to workers.cloudflare.com and create a free account.
Create Worker and paste the code
Create Worker → Start with Hello World → Deploy. Then Edit code, select all, paste the worker.js file, Deploy again.
Add your API key as a secret
Settings → Variables and Secrets → Add. Name it ANTHROPIC_API_KEY, type Secret, paste your Claude API key, save.
Redeploy to activate
Go back to Edit code and Deploy one more time.
No worker yet? Use Direct mode below for testing only.
Reading the
website
Pulling content so the AI knows the business inside out.
Your chatbot's
brain
Claude has written a custom sales prompt. Review and edit it freely.
Must match the key in your worker.js
Get a free key at web3forms.com — you'll get an email every time someone leaves their contact details in the chat.
Test your
chatbot live
Opens in a new tab so everything works properly.
Click below to open a live preview. Try asking about pricing, services, or drop your number to test lead capture.
Deploy your
chatbot
Download and follow the instructions for your platform.
Upload chatbot.html to your server
Via FTP or cPanel, upload to /public_html/chatbot.html.
Install "Insert Headers and Footers" plugin
Plugins → Add New → WPCode → Install → Activate.
Paste in footer
Settings → Insert Headers and Footers → Scripts in Footer:
Upload chatbot.html to your root folder
Same folder as your index.html.
Add before </body> on every page
Upload via Content → Files
In Shopify admin, upload chatbot.html and copy the CDN URL.
Edit theme.liquid before </body>
Settings → Custom Code
Set placement to Body end, All Pages.
Settings → Advanced → Code Injection → Footer
Upload chatbot.html to Assets panel
Copy the asset URL.
Project Settings → Custom Code → Footer Code
Host chatbot.html on Netlify first
Drag to app.netlify.com/drop and copy the URL.
Site Settings → Custom Code → End of body
Upload via cPanel File Manager → public_html
Settings → Website → Header/Footer Code → Footer
Settings → SEO → Footer Code
Add chatbot.html to your site folder, add snippet to HTML, drag folder to app.netlify.com/drop
Add chatbot.html to your site folder, add snippet, zip folder and upload to Workers & Pages → Create → Pages → Upload assets
Host chatbot.html on Netlify first, then add HTML element in Bubble, paste snippet
Your worker stays active. Enter a new client's URL and repeat.