Installing and Configuring Clara

Clara can be installed with Docker.

Checking system prerequisites

Before starting to install Clara, you must check the following system prerequisites:

  1. Verify that Docker and Docker Compose are installed, configured, and ready to use. For the required version, see: System Requirements.  

If you don't have Docker and Docker Compose already installed, see: Installing Docker and Docker Compose.

  1. Clara requires some values to be set for ulimit parameter, for Linux OS. See: How to verify and set ulimit parameter.

  2. Verify the available virtual memory. See: How to verify and set the available virtual memory.

  3. If you are installing Clara on RHEL or CentOS distros, SELinux must be set to Permissive or Disabled. See: How to set SELinux to permissive.

  4. Obtain your Clara license entitlement (License Id) through the HCL Cloud License Server (a working internet connection is required). For details, see What is the HCL Software License & Download Portal. The license entitlement and expiration date depend on the type of license you have purchased (if product, bundle, or trial). The License Id must be specified during the installation procedure.

 

 

Installation procedure

To install and configure Clara, run the following procedure.

 

  1. From HCL License Portal download the appropriate Clara installation package:

 

Clara is available with 2 different types of installation packages:

 

 

The online installation requires a working internet connection to reach the Entitled Registry that contains Clara images. Contact your HCL sales representative for the login details required to access the Entitled Registry.

Execute the following command to log in into the Entitled Registry:

docker login -u <your_username> -p <your_entitled_key> hclcr.io

 

Clara images are as follows:

 

 

  1. For the selected installation package (offline or online), extract the content of the tar.gz file(s) into <BUILD_DIR>, a directory of your choice, using one of the extraction tools available on your system or downloadable from the internet. The tool you use must be able to keep the file permissions on the extracted files.

  1. You can properly modify the <BUILD_DIR>/clara/config/Clara-WA.env.TEMPLATE configuration file to set some common properties and customize Clara integration with Slack and Teams messaging tools. See below the sections about Customizing environment files and Integration with Slack and Teams.

Note:

After Clara installation, you can change or complete Clara customization by using Clara Dashboard. For details, see Clara Dashboard.

  1. Open a bash shell and get ready to install Clara.  

  1. From the <BUILD_DIR> directory, run the command:

 

./install.sh  [--load-images] --install  [--install-path <install_path>] --accept-license [--port <port_number>] [--img-repo <img_repo>] --license-id <license_id>

 

where:

 

--load-images is for offline installation only. Its is required to load Clara images into your environment.

--install-path <install_path> is optional if you wan to change the installation directory of your choice (default value is /opt/hcl).

--accept-license is required to accept the HCL Master License Agreement.

--port <port_number>  is optional if you want to change the HTTPS port to use with Clara (default port is 443).

--img-repo <img_repo> is for online installation only. It is optional if you want to specify an Entitled Registry prefix different from the default prefix (hclcr.io/solutions/clara/.

--license-id <license_id> is required to set Clara License Id.

 

    By default, before starting the installation, Clara checks the installation prerequisites. If you want to skip this check, add the --noprereq parameter. For details, see the install.sh command usage.

 

  1. The installation script checks the prerequisites, runs the installation process, and verifies its successful completion.

 

 

Post installation steps

When the installation is completed, you can access:

 where:

 

Clara Dashboard can also be accessed from the drop-down menu of Clara chat window.

 

The installation script generates two Clara users:

 

As you start chatting with Clara, you must:

Go to Clara Dashboard > Environments. For details, see Environments.

 

Use the Keycloak administration console to define new Clara users, new roles, or change default passwords. You can access Keycloak administration console https://<IP:PORT>/keycloak/auth/admin by using the following default credentials:

You can also reach the Keycloak  administration console from Clara Dashboard, by clicking Manage roles in the Account icon drop-down menu on the dashboard header.

To change the Keycloak default password or the default SSL certificates, see Configuring Security.

 

If you want to enable multiple languages with Clara through HCL Translator, see Installing and configuring HCL Translator.

 

After Clara installation, use the Dashboard to complete the following Clara settings:

For details, see Clara Dashboard.

 

To start/stop Clara containers and services, see clara.sh command options.

 

 

Integration with Slack and Teams

To integrate Clara with Slack and Teams  messaging tools, you must run the following steps:

 

  1. Install Clara on a machine having a public internet connection.

  2. Provide the required Slack and Teams parameters in the  <BUILD_DIR>/clara/config/Clara-WA.env.TEMPLATE configuration file.

  3. Ensure that the email id that you set in Clara Dashboard > Credential Manager for your Clara user, matches the email id  you set on Slack and Teams.

  4. Run some configuration steps for the messaging tools:

 

 

Additional bot events:

app_home_opened

 

Additional scopes:

users.profile:read

users:read.email

 

Interactivity & Shortcuts -> Request URL:

https://<clara_url>/webhooks/slack_auth/webhook

 

Event Subscriptions -> Request URL:

https://<clara_url>/webhooks/slack_auth/webhook

 

      1. On Slack, go to General Information -> Display Information and set the fields as indicated in the App settings table below.

 

 

 

App settings

App name

Clara

Short description

Your Workload Automation Virtual Assistance

Long description

Clara is an Intelligent Virtual Assistant that enhances HCL Workload Automation customer experience with Natural Language Processing (NLP) interactions, enabling customized self-service automation with immediate 24x7 response. HCL Clara is the product expert that users can consult to learn the product capabilities, execute routine tasks and get troubleshooting assistance.

App icon for Teams

 Download Teams_icon.zip

App icon for Slack

 Download Slack_icon.zip

Background color for Teams

#71D9F3

Background color for Slack

#01539B

 

 

You can follow your conversation with Clara even using both channels. For example, you can ask your question to Clara on Slack, and then continue the conversation on Teams.

 

Customizing environment files

Both for Workload Automation and Workload Automation for Z, before starting Clara installation, modify the  <BUILD_DIR>/clara/config/Clara-WA.env.TEMPLATE configuration file to set Clara common properties and optionally configure Clara integration with Slack and Teams messaging tools.

 

Common properties

 NGINX_PORT

 TCP/IP Port to use with Clara [Default: 443]

 NGINX_CERTS

 Path where nginx certificates for Clara are stored [Default: ./certs/nginx]

Properties for Clara integration with Messaging tools (Slack and Teams)

BOTFRAMEWORK_APP_ID

 ID for Clara Teams account

BOTFRAMEWORK_APP_PASSWORD

 Password for Clara Teams account

SLACK_TOKEN

The token generated by the Slack bot

SLACK_CHANNEL

The Slack bot channel ID

SLACK_SIGNING_SECRET

The Slack unique string for Clara.

Properties for source docker images

 IMG_PREFIX

 Clara docker image repo prefix when images are not available locally. [Default: hclcr.io/solutions/clara/]

 TAG

 Tag for Clara docker images based on Clara version, optional. [Default: 2.0.0.0]

 

After Clara installation, if a re-configuration is needed to integrate Clara with Slack or Teams messaging tools, you must modify the .env file created during the installation process and located in the folder <BUILD_DIR>/clara. Then, run the following command to activate the updates:

clara.sh --up --nc

 

 

 

 

install.sh command

 install.sh [options]

 

OPTIONS:

 

   -h                                                                     Show this message

 

   -c, --prereq                                                     Prerequisites (skip any other option if present)

 

   --noprereq                                                      Pass this parameter to skip all OS prereq checks

 

   --load-images                                                 Load Clara images from HCL_CLARA_IMAGES.tar.gz

 

   --install [--install-path <install_path>]            Install Clara

                                                                             Add --install-path <path> to change path from /opt/hcl

   

   --accept-license                                               Pass this parameter to accept the HCL Master License Agreement

   

   --port <port_number>                                       Pass this parameter to overwrite the HTTPS Port to use with Clara. 

                                                                               Default HTTPS port for Clara is 443.

 

   --img-repo  <img_repo>                                  Set source repo prefix for Clara images when they are not available

                                                                               locally. Example: --img-repo example.com/clara/

 

   --license-id  <license_id>                                Set Clara license ID. Example: --license-id XXXXXXX

 

 

Steps:

 

    1. Check Clara prerequisites. Run the command:

       ./install.sh -c

 

    2. Load Clara images (run only if you need to import new images for an offline installation). Run the command:

       ./install.sh --load-images

 

    3. Install Clara. Run the command:

       ./install.sh --install [--install-path /opt/hcl] --accept-license --noprereq

 

 

 

 

clara.sh command

clara.sh [options]

 

OPTIONS:

 

Help:

   -h                      Help

 

To control Clara services:

   

   --up [up options]                 Create and start Clara container

        where [up options] can be:

        [--nc]                               Specify --nc to get the new configuration from the .env file

 

   --down  [--vol]                      Stop and remove Clara containers and network

                                                Specify --vol to remove also persistent volumes

   --start                                   Start Clara services

 

   --stop                                   Stop Clara services

 

  --restart                                 Restart (stop and start) Clara containers

   

   --join-net                             Link Clara network to WA network when they are both running on the same network

 

   --remove                             Print commands to clean-up Clara containers, persistent volumes and network manually

   

   --print-urls                           Print Clara URLS

 

 

 Examples:

 

    First Clara start-up:

      ./clara.sh --up

 

    Stop Clara containers:

      ./clara.sh --stop

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Leave feedback