Installation Guides
Webflow

Webflow Installation

Install the nuhello chatbot on your Webflow website.

Method 1: Project Settings (Recommended)

Step 1: Open Project Settings

  1. Log in to your Webflow dashboard
  2. Select your project
  3. Click the gear icon (Project Settings) in the left panel

Step 2: Add Custom Code

  1. Go to the Custom Code tab
  2. In the Head Code section, paste your nuhello script:
<script>
  window.nuhelloSettings = {
    key: "YOUR_PIXEL_KEY",
    botId: "YOUR_BOT_ID"
  };
  (function() {
    var s = document.createElement('script');
    s.src = 'https://cdn.nuhello.com/widget.js';
    s.async = true;
    document.head.appendChild(s);
  })();
</script>
  1. Click Save Changes

Step 3: Publish

Click Publish to deploy your changes to your live site.

Method 2: Page-Specific Installation

To add the widget to specific pages only:

Step 1: Open the Designer

  1. Open your project in the Webflow Designer
  2. Select the page you want to add the chatbot to

Step 2: Open Page Settings

  1. Click the gear icon next to the page name (or press Cmd/Ctrl + Shift + O)
  2. Scroll to Custom Code

Step 3: Add the Script

In the Inside <head> tag section, paste:

<script>
  window.nuhelloSettings = {
    key: "YOUR_PIXEL_KEY",
    botId: "YOUR_BOT_ID"
  };
  (function() {
    var s = document.createElement('script');
    s.src = 'https://cdn.nuhello.com/widget.js';
    s.async = true;
    document.head.appendChild(s);
  })();
</script>
  1. Click Save and then Publish

Adding a Chat Button

Create a button that opens the chatbot:

Step 1: Add a Button

  1. In the Designer, add a Button or Link Block element
  2. Style it as desired

Step 2: Add Custom Attributes

  1. Select the button
  2. In the Settings panel (right side), scroll to Custom Attributes
  3. Add: onclick = window.openNuhelloWidget()

Or use the Embed element:

<button onclick="window.openNuhelloWidget()" style="
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
">
  Chat with us
</button>

Using with Webflow Memberships

For sites with Webflow Memberships, pass user data:

<script>
  window.nuhelloSettings = {
    key: "YOUR_PIXEL_KEY",
    botId: "YOUR_BOT_ID"
  };
 
  // Check for logged-in member
  if (window.Webflow && window.Webflow.env('member')) {
    const member = window.Webflow.env('member');
    window.nuhelloSettings.userId = member.id;
    window.nuhelloSettings.email = member.email;
    window.nuhelloSettings.name = member.name;
  }
 
  (function() {
    var s = document.createElement('script');
    s.src = 'https://cdn.nuhello.com/widget.js';
    s.async = true;
    document.head.appendChild(s);
  })();
</script>

Conditional Display

Show the widget only on certain pages using custom code:

<script>
  window.nuhelloSettings = {
    key: "YOUR_PIXEL_KEY",
    botId: "YOUR_BOT_ID"
  };
 
  // Only load on specific paths
  const allowedPaths = ['/contact', '/support', '/pricing'];
  const currentPath = window.location.pathname;
 
  if (allowedPaths.some(path => currentPath.includes(path))) {
    (function() {
      var s = document.createElement('script');
      s.src = 'https://cdn.nuhello.com/widget.js';
      s.async = true;
      document.head.appendChild(s);
    })();
  }
</script>

Interactions with Webflow Animations

Trigger the chat widget with Webflow interactions:

  1. Create a trigger element
  2. Add an ID to it (e.g., open-chat-trigger)
  3. In Project Settings Custom Code (Footer), add:
<script>
  document.getElementById('open-chat-trigger').addEventListener('click', function() {
    if (window.openNuhelloWidget) {
      window.openNuhelloWidget();
    }
  });
</script>

Troubleshooting

Widget not appearing on staging?

Custom code only works on published sites. Test on your .webflow.io domain or custom domain.

Widget not appearing after publish?

  1. Clear browser cache
  2. Check the page source to verify the script is present
  3. Open browser console (F12) and check for errors

Conflicts with other scripts?

Move the nuhello script to the Footer Code section and add it at the end of the body.