Install the widget on your site

Configure your snippet and paste it before </body>. The widget loads without blocking the rest of your site.

Tu snippet listo:

<script
  src="https://cdn.fluxbotia.com/chat-widget.js"
  data-token=""
  data-domain=""
  data-gateway="https://panel.fluxbotia.com/api/v1/widget"
  data-security-mode="gateway"
  data-api-version="v1"
  data-tenant-mode="external"
  data-position="right"
  data-primary-color="#0ea5e9"
  data-greeting="Hola, ¿en qué puedo ayudarte hoy?"
  data-endpoint="https://api.fluxbotia.com/chat"
  defer
></script>

Pega este código antes del cierre de </body>

Installation FAQ

How do I get my token?
You get your token from your FluxBot Studio dashboard. Go to Settings > API Tokens and generate a new one. Keep it secret.
What is an allowed domain?
It is the URL of your website where you will install the widget. For security reasons, the widget only works on authorized domains. You can authorize multiple domains.
Can I use subdomains?
Yes, but you must authorize them explicitly. For example, if you authorize 'example.com', you must also authorize 'help.example.com' and 'blog.example.com' separately.
How do I change the widget color?
In the snippet generator, use the 'Primary color' field. The color applies to the button and main widget elements. Use hexadecimal format (#0ea5e9).
Can I use the same token on multiple domains?
Yes, the token is independent of the domain. You can use the same token on several authorized websites. Each domain must be registered in your account.
What does error 403 (unauthorized domain) mean?
Your domain is not authorized in the dashboard. Go to Settings > Authorized Domains and add yours. Then try the validation again.
How long does the widget take to load?
The widget loads asynchronously (defer attribute), so it does not block the rest of your site. It usually appears in 1-2 seconds.
Is it necessary to validate the connection?
It is not mandatory, but it is recommended. Validating ensures your token and domain are correct before copying the snippet.

Need more help?

Write to us at support@fluxbot.studio