← Back to Website Platforms

Add Chatbot to Webflow

Requires paid Webflow site plan

Easy3 minutesTwo methods available

Note: Custom code in Webflow requires a paid site plan (Basic, CMS, Business, or Enterprise). The free plan does not support custom code.

Method 1: Site-Wide Custom Code (Recommended)

Add the chatbot to all pages of your Webflow site with one setting.

1

Open Site Settings

In your Webflow dashboard, select your project. Click the gear icon to open Site Settings.

[Placeholder: /images/placeholders/webflow-step1.png]

2

Navigate to Custom Code

In the left sidebar, scroll down and click on "Custom Code" under the Settings section.

[Placeholder: /images/placeholders/webflow-step2.png]

3

Add Footer Code

Scroll to the "Footer Code" section. This is where scripts that should load on every page before </body> go.

[Placeholder: /images/placeholders/webflow-step3.png]

4

Paste Your Embed Code

Paste your Hyperleap embed code in the Footer Code box.

<script>
   (function () {
        window.userChatbotConfig = {
            chatbotId: "YOUR_CHATBOT_ID",
            privateKey: "YOUR_PRIVATE_KEY",
        };
        const chatbotScript = document.createElement("script");
        chatbotScript.src = "https://chatjs.hyperleap.ai/chatbot.min.js";
        chatbotScript.async = true;
        document.head.appendChild(chatbotScript);
    })();
</script>

[Placeholder: /images/placeholders/webflow-step4.png]

5

Save and Publish

Click "Save Changes" and then publish your site. The chatbot will now appear on all pages.

[Placeholder: /images/placeholders/webflow-step5.png]

Method 2: Using Embed Element (Page-Specific)

Use this method if you only want the chatbot on specific pages:

  1. 1Open your project in the Webflow Designer
  2. 2Navigate to the page where you want the chatbot
  3. 3Click the "+" button to add elements
  4. 4Search for "Embed" in the Components section
  5. 5Drag the Embed element to the bottom of your page (inside the body)
  6. 6Double-click the embed element to open the code editor
  7. 7Paste your Hyperleap embed code
  8. 8Click "Save & Close" and publish your site

Need Help?

Our team is here to help you get set up.