Add Respant to your PHP site
A typical PHP site includes a shared header/footer file on every page with include() or require(), so the snippet only needs to go in one place to apply everywhere. (Running Laravel specifically? Its Blade templates work a little differently, see the dedicated Laravel guide instead.)
Step by step
Find your shared footer file
Look for a file commonly named footer.php, inc/footer.php, or partials/footer.php that your other pages include near the bottom, for example via <?php include 'footer.php'; ?>. If your site doesn't use includes and instead repeats the same HTML in every file, you'll need to paste into each page's file individually, or refactor to a shared include first.
Paste the snippet before </body>
Open that shared footer file, find the closing </body> tag, and paste your Respant embed snippet on its own line directly above it.
Save and upload
Save the file and upload it to your server the way you normally deploy (FTP, SFTP, your host's file manager, or a git-based deploy), then refresh your live site.
No shared footer file at all? The absolute fallback is pasting the snippet into every individual .php page's HTML before </body>, it works the same way, just repeated per file instead of once.
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.
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