Minyut/Docs
Widget

Configuration.

Configure the chatbot in the dashboard, then override individual pages with data-* attributes when needed.


Dashboard settings

Script attributes

AttributeTypeDefaultNotes
data-tokenstringRequiredYour chatbot embed token.
data-positionstringbottom-rightUse bottom-left for sites with a support badge on the right.
data-colorstringDashboardAny valid hex color, for example #18181b.
data-openbooleanfalseSet to true to open the widget on page load.
data-greetingstringDashboardOverride the welcome message on one page.

Examples

html
<script
  src="https://minyut.com/widget.js"
  data-token="YOUR_EMBED_TOKEN"
  data-position="bottom-left"
  data-color="#0f766e"
  data-greeting="Ask me anything about our refund policy."
  async
></script>

What not to configure in code

Do not put private API keys, internal prompts, or Supabase service-role keys in the script tag. The widget is public by design. Keep secrets in the dashboard or Supabase Edge Function secrets.