3.3.5-unipa • Published 4 months ago

@cloudbot-cx/chat-frontend v3.3.5-unipa

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
4 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
chatIdXapp id firebase
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
triggerCardPrivacyPrivacy text on trigger card (text or html)
usertokenAuthentication token to access customer services

Multilanguage

It is possible to use bot with multi language. If you want use only a language you can insert on array language menu in remote config the language code:

languageMenu: ['it']
welcomeMessageIt: string
triggerCardTitleIt: string
triggerCardBodyIt: string
privacyCardTextIt: string

If you want use other language you must configure variables of other language

languageMenu: ['it', 'en']
welcomeMessageIt: string
welcomeMessageEn: string
triggerCardTitleIt: string
triggerCardTitleEn: string
triggerCardBodyIt: string
privacyCardTextIt: string
privacyCardTextEn: string

If you don't want to show language menu set 'languageMenuFeature' to false otherwise you must set it true.

languageMenuFeature: boolean

Remember: if you don't set multilanguage variables the bot use variables passed as props in index.html

3.3.5-unipa

4 months ago

3.3.2-asmel

5 months ago

3.3.4-unipa

5 months ago

3.3.1-unipa

5 months ago

3.3.3-unipa

5 months ago

3.3.2-unipa

5 months ago

3.3.1-asmel

5 months ago

3.3.0-asmel

5 months ago

3.1.2-unipa

8 months ago

3.1.5-unipa

8 months ago

3.2.3-unipa

7 months ago

3.0.0-cloudbot

10 months ago

3.0.7-unipa

10 months ago

3.2.0-unipa

8 months ago

3.1.1-unipa

8 months ago

3.0.6-unipa

10 months ago

3.2.0-asmel

6 months ago

3.1.4-unipa

8 months ago

3.1.8-unipa

8 months ago

3.0.0-asmel

7 months ago

3.2.5-unipa

6 months ago

3.2.2-unipa

7 months ago

1.0.7-carabinieri

10 months ago

3.0.9-unipa

8 months ago

1.0.8-carabinieri

10 months ago

3.1.0-unipa

8 months ago

3.1.7-unipa

8 months ago

1.0.9-carabinieri

10 months ago

3.2.1-unipa

7 months ago

3.1.9-unipa

8 months ago

3.1.3-unipa

8 months ago

3.0.8-unipa

8 months ago

3.1.6-unipa

8 months ago

1.0.6-carabinieri

11 months ago

3.0.4-unipa

11 months ago

3.0.0-unipa

12 months ago

3.0.1-unisa

11 months ago

3.0.2-unisa

11 months ago

3.0.3-unipa

12 months ago

3.0.2-unipa

12 months ago

3.0.5-unipa

11 months ago

3.0.0-unisa

11 months ago

3.0.5-unipa-dev

11 months ago

3.0.0-unisa-dev

11 months ago

3.0.1-unipa

12 months ago

2.0.5-prod

1 year ago

2.0.2-prod

1 year ago

2.0.4-prod

1 year ago

2.0.1-prod

1 year ago

2.0.0-prod

1 year ago

2.0.3-prod

1 year ago

2.0.6-prod

1 year ago

2.0.0

1 year ago

1.0.4-dev-aitec

1 year ago

0.0.1-dev-c

1 year ago

0.0.2-dev-amat

1 year ago

0.0.3-dev-amat

1 year ago

0.0.2-dev-c

1 year ago

1.0.1-dev-amat

1 year ago

0.0.1-dev-amat

1 year ago

1.1.1-dev

2 years ago

1.1.2-dev

2 years ago

1.0.4-unisa

2 years ago

1.0.0-unisa

2 years ago

1.1.2-test

2 years ago

1.0.0-test-unisa

2 years ago

1.1.1-test

2 years ago

1.0.3-unisa

2 years ago

1.0.1-unisa

2 years ago

1.0.2-unisa

2 years ago

1.1.0-dev

2 years ago

1.0.4

2 years ago

1.0.0-dev

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago