Embedding the Widget
Add the Flow Chat widget to your website with a simple code snippet.
Basic Installation
Add this code snippet just before the closing </body> tag on your website:
<script src="https://getflow.chat/widget.js" data-widget-id="YOUR_API_KEY"></script>
Replace YOUR_API_KEY with your actual widget API key found in the widget settings.
Finding Your API Key
- Go to your dashboard
- Click on the widget you want to embed
- Go to the "Install" tab
- Copy the API key or the complete embed code
Custom Installation Options
You can customize the widget behavior with additional data attributes:
<script
src="https://getflow.chat/widget.js"
data-widget-id="YOUR_API_KEY"
data-position="bottom-right"
data-auto-open="false"
></script>
Platform-Specific Instructions
WordPress
- Install a plugin that allows adding custom JavaScript (like "Insert Headers and Footers")
- Add the embed code to the footer section
- Save and the widget will appear on all pages
Shopify
- Go to Online Store > Themes > Edit Code
- Open
theme.liquid - Paste the embed code before
</body> - Save
Squarespace
- Go to Settings > Advanced > Code Injection
- Add the embed code to the Footer section
- Save
Wix
- Go to Settings > Custom Code
- Add a new custom code
- Paste the embed code
- Set it to load in the Body (end)