{% extends 'admin/base_admin.html' %} {% block title %}Widget Script | ChatLab{% endblock %} {% block admin_widget_active %}active{% endblock %} {% block workspace %}
Configure widget position, size, and copy the embed code for your website.
Adjust position and pixel sizes. Values are applied on save — use the Test Page button to preview on PC and mobile.
Place this <script> tag just before the closing </body> tag.
<script>
</body>
<script src="{{ base_url }}{% url 'chatbot_widget_js' %}" id="chatlab-widget-loader" {% for key, val in widget_attrs.items %} {{ key }}="{{ val }}" {% endfor %}></script>
Authorized Domain: {% if company.allowed_domain %} {{ company.allowed_domain }} {% else %} Not configured — contact platform admin. {% endif %}
{{ company.allowed_domain }}
Widget for {{ company.chatbot_name }} is active on this page.