Widget Installation

Copy your widget snippet and paste it into your website

Installing the widget means pasting one <script> tag into your website. No other setup is needed.

Step 1: Copy your snippet

Go to Settings → Widget and click Copy on the code card. The snippet already contains your clinic ID.

It looks like this:

<script
  src="https://docistra.com/widget/embed.js"
  data-clinic-id="YOUR_CLINIC_ID"
  data-lang="ar"
  async
></script>

Always copy the snippet from your dashboard rather than typing it, so the clinic ID is exactly right.

AttributeWhat it does
data-clinic-idLinks the widget to your clinic. Required.
data-langar for an Arabic widget (button on the left), en for English (button on the right). The snippet uses the language your dashboard was in when you copied it.

Your clinic ID is safe to put in public website code. It only lets visitors chat with your AI, not access your dashboard.

Step 2: Paste it before </body>

Step 3: Check it works

Open your website. You should see the chat button in the bottom corner. Click it and ask a question, then check that the chat appears in Conversations.

Troubleshooting

On this page