CleanDesk AI User Manual
  • Welcome
  • Introduction
    • UI Components
      • Dedicated Domain or Page
    • Credentials
  • Client Integrations
    • Web widget
      • Sales Assistant
      • Customer Support Assistant
        • Customer profile API
      • Sample Codes
  • App Integrations
    • Widget in WordPress
    • Widget in WooCommerce
  • WebAssist
    • Theme
  • Widget Appearance
  • Credentials
  • Menus Index
  • AI Training
  • Intro Messages
  • Customer Relationship Management (CRM)
    • Leads
    • Customers
    • Cart
    • Orders
  • RecruitAssist
    • Candidates
  • RecruitAssist
    • Jobs
    • Candidates
    • Interviews
    • Applications
  • CustomerAssist
    • Leads
    • Contacts
    • Companies
  • UPDATES & NEW LAUNCHES
    • Release Notes & Updates
  • PARTNERASSIST
    • Partner Leads
    • Transactions
  • LOYALTY
    • Overview
    • Programs
    • Page 1
Powered by GitBook
On this page
  1. Client Integrations
  2. Web widget

Sample Codes

This gives sample codes that can used to understand how the CleanDesk Ai's web widgets can be enabled to provide both sales and customer support assistants in your web environment.

In HTML

In a typical HTML environment, the following code could be used to learn how to enable conversational AI-based sales and customer support assistants.

<!DOCTYPE html>

<html>

<head>

<!-- Your existing code goes here -->



<!-- CleanDesk AI CDN Access -->
<script defer
 src="https://cdn.cleandesk.co.in/public/build/clean_ai_bot.js"></sc
ript>

</head>

<body>


<!-- Your web page content goes here -->


<!-- CleanDesk AI Chat Widget -->

<cleandesk-chat-widget app_id="YOUR_APP_ID" 
app_secret="YOUR_APP_SECRET"
 access_by_id="CUSTOMER_ID"></cleandesk-chat-widget>


<!-- Logout script -->

<script defer 
src="https://cdn.cleandesk.co.in/js/widget_logout.js"></script>

</body>

</html>
PreviousCustomer profile APINextApp Integrations

Last updated 1 year ago