Wishi partner widget/SDK documentation
  • The Formal Stuff
    • Introduction
    • iOS SDK
      • Setup
        • View controller setup example
      • Public protocols
      • Public API's
      • Data structures/types
    • Web SDK
      • Setup
      • Initialization
      • Data structures
      • Public API's/interfaces
      • Events subscription
      • Telemetry
    • Pixel
      • Set up the base code
      • Set up events
      • Tracking parameters
    • Client-side authentication
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. The Formal Stuff
  2. Web SDK

Setup

Adding scripts to your index.html

In order to create use the widget, you will have to add 2 files into your index.html file using script and link tags.

Start with the CSS part

<link href="https://d2qcyaj4szdxsa.cloudfront.net/<your-key>/compiled.css"
    rel="stylesheet"
    media="print"
    onload="this.media='all'"
    type="text/css"
>

Versioning support

// Use a specific version
<link href="https://d2qcyaj4szdxsa.cloudfront.net/<your-key>/compiled.1.1.4.css" />
// Use the most updated stable version
<link href="https://d2qcyaj4szdxsa.cloudfront.net/<your-key>/compiled.stable.css" />

and now, the JS part

index.html
<script src="https://d2qcyaj4szdxsa.cloudfront.net/<your-key>/web-chat-widget.stable.js"
    wishi-key="your-key"
    wishi-plugin-env="production">
</script>

Versioning support

// Use a specific version
<script src="https://d2qcyaj4szdxsa.cloudfront.net/<your-key>/web-chat-widget.1.1.4.js"/>
// Use the most updated version
<script src="https://d2qcyaj4szdxsa.cloudfront.net/<your-key>/web-chat-widget.stable.js" />

PreviousWeb SDKNextInitialization

Last updated 1 year ago

Was this helpful?