- Home
- Integrations
- Laravel
AI chatbot for Laravel: how to install it
In Laravel the code goes in the main Blade layout. You can keep the key in the .env file.
You’ll find it ready in the panel, with your key, and copy it in one click. It looks like this:
<script src="https://app.interlyo.com/widget/chatbot.js" data-api-key="your-key" defer></script>In the Blade layout
- Add INTERLYO_API_KEY=your-key to the .env file.
- Open resources/views/layouts/app.blade.php.
- Paste the code before </body>.
@yield('content')
<script src="https://app.interlyo.com/widget/chatbot.js" data-api-key="{{ env('INTERLYO_API_KEY') }}" defer></script>
</body>
</html>
Load chatbot.js from our address, as in the code above. Don’t download it into your project, rename it or include it in your site’s bundle: the widget would no longer find the key and our server.
Choose your platform
IntegrationsOnline shops
Website builders
Custom sites and apps
Ready to install it?
Sign up free and the panel gives you the code and instructions for your platform.