EN  | 

ES
/Quick Integration Guide /Chat /Web

Chat web - with javascript

quick integration guide

Estimated integration time: 10 minutes.

If you use npm click here.


To implement our web chat on your page you need:

Importante: channelKey value is unique and personal.

<script src="../indigitall-web-chat.js"
 charset="utf-8" 
 onload=
 "WebChat.init({
    channelKey: your_channel_key,

    <!--custom data-->

    externalCode: 'your_external_code',
    titleChat: 'your_title_chat',
    botName: 'your_bot_name',
    defaultUsername: 'your_default_user_name',
    primaryColor: 'your_primaryColor',
    backgroundChatColor: 'your_background_chat_color',
    backgroundBarColor: 'your_background_bar_color',
    messagePlaceholder: 'your_message_place_holder',
    zIndex: your_z_index,
    openFileText: 'your_text_open_file'
    fullscreen: false,
    defaultChatIconResource: 'your_chat-bubble',
    logLevel: WebChat.LogLevel.your_level,
    infoContactTopBarTitle: 'your_title_top_bar_info_contact',
    welcomeLabel:
        {
            title: 'your_title_welcome_label',
            body: 'your_body_welcome_label',
            icon: 'icon_welcome_label',
            backgrounColor: 'your_color_welcome_label',
            textColor: 'your_text_color_welcome_label',
            closeIcon: 'your_close_icon_welcome_label',
            closeIconBackGroundColor: 'your_backgrounColor_close_icon_welcome_label',
            delay: 'your_delay_to_show_welcome_label'
        },
    chatAutoOpenTime: your_chat_auto_open_time_in_seconds,
    clearMessages: true,
    welcomeEvent: 'your_event'
    })">
</script>


The following fields are custom. If they are not added, the Chat will show the default values.

Functionalities

You can check if the welcome event has been fired with this method:


let isEmitted = indigitallChat.isWelcomeEmitted();


If you want to send a message custom you can use this method:


indigitallChat.setCustomEvent("Your_event");


You can also control the action of deleting messages with this method:


indigitallChat.clearAllMessages()


How to upload files to your server or access them?

You can do it through FTP or from your server's control panel (cPanel, directAdmin, etc) among other ways. Below you will find an explanatory video of the process. In less than 10 minutes, you should have it.

You can ask your hosting provider or your trusted programmer for help by sending these instructions.


Changelog

[1.5.0] - 03/2022

Added

[1.4.2] - 02/2022

Fixes

[1.4.1] - 02/2022

Fixes

[1.4.0] - 01/2022

Added

[1.3.2] - 11/2021

Fixes

[1.3.1] - 11/2021

Fixes

[1.3.0] - 11/2021

Added

[1.2.0] - 06/2021

Added

[1.1.1] - 01/2021

Added

[1.1.0] - 01/2021

Added

[1.0.0] - 11/2020

Added

Contact us