2.0.5-carabinieri • Published 8 months ago

@cloudbot-cx/chat-frontend v2.0.5-carabinieri

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
8 months ago

Cloudbot Chat Component

A web component that can be embedded in a web site to provide a support or customer services.

Introduction

This is a full featured web chat component that can be added to any web page. The component allows visitors of a web site to chat directly with a virtual assistant through an integrated web client. The web component can be customised.

Framework

Lit + Vite The framework used to build CC is Lit. Lit is a simple library for building fast, lightweight web components. At Lit's core is a boilerplate-killing component base class that provides reactive state, scoped styles, and a declarative template system that's tiny, fast and expressive.

Tech

CC allow users to interact with the chat via both text chat and voice commands.

Note: apiKey is required for TTS service. Contact cloudbot@cloudtec.it for info

Dependencies

ServiceDescription
CX Chat Backenddialoglow cx gateway

Integration

First of all you need to download component as dependency:

npm i @cloudbot-cx/<package-name>

Let’s assume that you have the following pre-existing index.html page on your web site:

<html>
    <head>
    </head>
  <body>
    <h1>Website</h1>
  </body>
</html>

Now, you want to add the Cloudbot Chat component.

<html>
  <head>
    <script type="module" src="./node_modules/@cloudbot-cx/chat-frontend/dist/bundle.js"></script>
  </head>
  <body>
    <h1>Website</h1>

    <chat-bot
      chatId="<firebaseAppId>" //unique and uneditable for a single customer (without this parameter chat cannot work)
      languageCode="en-US"
      botName="Cloudbot"
      image="https://img.icons8.com/color/344/free-bsd.png"
      welcomeMessage="Hello"
    >
    </chat-bot>
  </body>
</html>

Note: need to import fonts the bundle.js of the chat

Attributes

Below table show a series of attribute can be inserted into html component to customize some behaviour.

NameRequiredDescriptionDefault
botNamethe name of the bot inside headercloudbot
languageCodethe language codeen-US
imagethe image shown in headerCloudbot logo
welcomeMessagethe first message sent when bot is triggered manuallyHi
errorMessageXmessage shown when an error occurred
triggerCardTitletitle of the trigger cardBenvenuto/a
triggerCardDescriptiondescription of the trigger cardCiao, sono l'assistente virtuale di Cloudbot
triggerCardLogologo shown inside trigger card (URL of the image)cloudbot logo
usertokenAuthentication token to access customer services
triggerCardPrivacyText for privacy disclaimerCliccando su “Inizia” accetti la no....
parentNameXAgent parent name
2.0.3-carabinieri

8 months ago

2.0.4-carabinieri

8 months ago

2.0.5-carabinieri

8 months ago

2.0.1-carabinieri

11 months ago

2.0.2-carabinieri

11 months ago

1.0.10-carabinieri

11 months ago

3.3.5-unipa

1 year ago

3.3.2-asmel

2 years ago

3.3.4-unipa

2 years ago

3.3.1-unipa

2 years ago

3.3.3-unipa

2 years ago

3.3.2-unipa

2 years ago

3.3.1-asmel

2 years ago

3.3.0-asmel

2 years ago

3.1.2-unipa

2 years ago

3.1.5-unipa

2 years ago

3.2.3-unipa

2 years ago

3.0.0-cloudbot

2 years ago

3.0.7-unipa

2 years ago

3.2.0-unipa

2 years ago

3.1.1-unipa

2 years ago

3.0.6-unipa

2 years ago

3.2.0-asmel

2 years ago

3.1.4-unipa

2 years ago

3.1.8-unipa

2 years ago

3.0.0-asmel

2 years ago

3.2.5-unipa

2 years ago

3.2.2-unipa

2 years ago

3.0.9-unipa

2 years ago

3.1.0-unipa

2 years ago

3.1.7-unipa

2 years ago

3.2.1-unipa

2 years ago

3.1.9-unipa

2 years ago

3.1.3-unipa

2 years ago

3.0.8-unipa

2 years ago

3.1.6-unipa

2 years ago

3.0.4-unipa

2 years ago

3.0.0-unipa

2 years ago

3.0.1-unisa

2 years ago

3.0.2-unisa

2 years ago

3.0.3-unipa

2 years ago

3.0.2-unipa

2 years ago

3.0.5-unipa

2 years ago

3.0.0-unisa

2 years ago

3.0.5-unipa-dev

2 years ago

3.0.0-unisa-dev

2 years ago

3.0.1-unipa

2 years ago

2.0.5-prod

2 years ago

2.0.2-prod

2 years ago

2.0.4-prod

2 years ago

2.0.1-prod

2 years ago

2.0.0-prod

2 years ago

2.0.3-prod

2 years ago

2.0.6-prod

2 years ago

2.0.0

2 years ago

1.0.4-dev-aitec

2 years ago

1.0.1-dev-napoli

3 years ago

0.0.1-dev-c

3 years ago

0.0.2-dev-amat

3 years ago

0.0.3-dev-amat

3 years ago

1.0.0-dev-napoli

3 years ago

0.0.2-dev-c

3 years ago

1.0.1-dev-amat

3 years ago

0.0.1-dev-amat

3 years ago

1.1.1-dev

3 years ago

1.1.2-dev

3 years ago

1.0.4-unisa

3 years ago

1.0.0-unisa

3 years ago

1.1.2-test

3 years ago

1.0.0-test-unisa

3 years ago

1.1.1-test

3 years ago

1.0.3-unisa

3 years ago

1.0.1-unisa

3 years ago

1.0.2-unisa

3 years ago

1.1.0-dev

3 years ago

1.0.4

3 years ago

1.0.0-dev

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago