# How to add an AI chatbot to a Webflow site

**In Webflow, go to Site settings → Custom code → Footer code, paste the script tag, save, and publish.** Get a key at [/get-api-key](/get-api-key) first.

```html
<script src="https://onelinechat.com/widget.js" data-key="olc_pub_YOUR_KEY" async></script>
```

## Notes

- Webflow only runs site-wide custom code on sites with a paid site plan. On a free plan, the code is saved but isn't published.
- The chatbot appears after you **publish**. The Designer canvas doesn't run custom scripts.
- `*.webflow.io` staging addresses are allowed automatically.

---
Source: https://onelinechat.com/install/webflow · Last updated: 2026-11-20 · All docs: https://onelinechat.com/llms.txt
