Add Respant to your Python (Django / Flask) site
Both major Python web frameworks render pages from a shared base template that every page extends, so you only need to touch one file regardless of how many pages your site has.
Step by step
Django: find your base.html
Look in your app's templates/ folder (often templates/base.html or templates/layout.html) for the template every other page extends with {% extends "base.html" %}. If you're not sure which file that is, search your project for the extends tag and see what filename it references.
Flask: find your layout template
Same idea in Flask, look in your templates/ folder for the shared layout (commonly base.html or layout.html) that other templates extend, or that render_template() calls reference as a parent via {% extends %}.
Paste the snippet before </body>
In whichever file you found, scroll to the closing </body> tag near the bottom, and paste your Respant embed snippet on its own line directly above it.
Restart and check your site
Restart your Django (runserver, gunicorn, uwsgi) or Flask process so the template change is picked up, then open your live site in a browser and confirm the chatbot launcher appears on every page.
Prefer to only load it on certain pages? Wrap the snippet in a Jinja2/Django template conditional (an {% if %} block) inside the same base template instead of adding it to every page's own file separately.
Your embed snippet
This is the exact line you paste. Your real snippet has your own chatbot's widget key filled in automatically, find it on your live preview screen right after you build your chatbot, or anytime from your dashboard under Website integration.
<script src="https://app.flenrok.com/flenrok-loader.js" data-respant-key="YOUR_WIDGET_KEY" async></script>
Don't type this by hand, copy it directly from your dashboard so the widget key matches your actual chatbot.
Test your widget
Open your live site in a normal browser tab, not a preview or editor view, and give the page a few seconds to fully load. Your chatbot's launcher should appear in the corner of the screen. Click it, type a real question a customer might ask, and check that the answer sounds right. If nothing shows up, clear your browser cache and reload, or double-check the snippet was saved in the right place and that you're looking at the published version of your site, not a draft.
Still stuck? Email us with your site URL and we'll take a look, or open the chatbot on the Respant site itself and ask it, it's trained to walk you through this exact step.
Other platforms
Haven't built your chatbot yet?
Build a working demo in minutes, free, no credit card. You'll get this exact snippet the moment it's ready.
Build My Demo Bot, Free