Skip to main content
Installing the Kashfy widget on your website requires adding a single <script> tag to your HTML. No backend changes, no complex setup.

Step 1: Get your Clinic ID

Your Clinic ID is a unique identifier that links the widget to your clinic’s AI agent and appointment system. Find it in Dashboard → Settings → Widget (or Dashboard → Widget).
Your Clinic ID is safe to include in public website code — it only allows reading clinic data and booking appointments through the widget. It does not grant access to your dashboard or admin features.

Step 2: Add the script tag

Paste the following code into your website’s HTML, just before the closing </body> tag:
Replace YOUR_CLINIC_ID with the ID from Step 1.

Platform-specific instructions

  1. Go to Appearance → Theme File Editor (or use a plugin like Insert Headers and Footers)
  2. Find your theme’s footer.php file
  3. Paste the script tag before </body>
  4. Save the file
Alternatively, use the Insert Headers and Footers plugin:
  1. Install and activate the plugin
  2. Go to Settings → Insert Headers and Footers
  3. Paste the script in the “Scripts in Footer” section
  1. Go to your Wix dashboard
  2. Open Settings → Custom Code
  3. Click + Add Custom Code
  4. Paste the script tag and set placement to Body - end
  5. Apply to All Pages
  6. Save and publish
  1. Go to Online Store → Themes
  2. Click Actions → Edit Code on your active theme
  3. Open layout/theme.liquid
  4. Paste the script tag before </body>
  5. Save
Open your HTML file and paste the script tag just before the closing </body> tag:

Step 3: Verify the widget appears

After saving your changes, visit your website. You should see a floating chat icon in the bottom-right corner of the page. Click it to open the chat and test a booking conversation.
Clear your browser cache or open an incognito window if the widget doesn’t appear immediately after installation.

Customization options

The widget’s appearance can be configured with optional data attributes on the script tag:
Additional customization (colors, position, welcome message) is managed from Dashboard → Settings → Widget in your Kashfy dashboard.

Troubleshooting

  • Make sure the script tag is placed before </body>, not </head>
  • Check that YOUR_CLINIC_ID is replaced with your actual ID
  • Clear your browser cache and try in an incognito window
  • Check your browser console for JavaScript errors
  • Verify your WhatsApp or widget channel is active in the dashboard
  • Check that your clinic has at least one doctor with working hours configured
  • Look at Dashboard → Conversations to see if messages are arriving
If you already have another chat widget on your site, they may overlap. Remove the other widget or use CSS positioning to separate them. Contact support if you need help adjusting widget position.

Widget Overview

Learn what the widget can do for patients.

Support

Get help with installation issues.