Skip to main content Skip to complementary content

Asking Qlik Answers assistant about password policies and updating its knowledge base with tQlikOutput to change its answers

The following Job aims at updating a knowledge base with a new password policy file using the tQlikOutput component. This knowledge base is located in a specific space in Qlik Cloud and is used in an AI-based Qlik Answers assistant to get answers to questions regarding password policies and other company guidelines.

Before you begin

This scenario uses Qlik Answers capabilities and its AI-based assistant. For more information, read the corresponding Qlik Answers documentation.

Prerequisites

Procedure

  1. In Qlik Cloud: Make sure you have:
    1. created a knowledge base that contains the company policies.
      Knowledge base in Qlik Cloud that contains 5 company policies regarding device usage, anti-bribery, password guidelines, remote access, and vacations.
      Knowledge bases provide the unstructured data that assistants use to generate responses to user questions. For more information, see Working with knowledge bases.
    2. created an assistant that uses the data in the knowledge base.
      Assistant in Qlik Cloud that answers the question 'What’s the company’s remote work policy?'.
      Assistants offer an interface to interact with a range of data sources through natural language questions. For more information, see Working with assistants.
  2. In Talend Studio: Drag and drop the following component from the Palette: tQlikOutput.

    The tQlikOutput component is a standalone component that does not require input components in the Job.

Asking a question to the assistant about password guidelines in Qlik Cloud

Procedure

  1. In Qlik Cloud, go to the space where you have created your knowledge base and open the assistant.
  2. Ask the assistant about the password guidelines: How often should I change my password?.

    The assistant answers that passwords should be changed every 90 days according to the company policy.

    Assistant in Qlik Cloud that answers the question 'How often should I change my password?'.
  3. Click View 1 source below the answer to display the data used by the assistant to answer the question.

    In this use case, the PasswordGuidelines.txt file has been used to answer the question.

    Source used by the assistant in Qlik Cloud to answer the question about the password policy.

Updating password guidelines using the tQlikOutput component in the Studio

Procedure

  1. Double-click the tQlikOutput component to display its Component view.
  2. Enter the URL address of your Qlik Cloud account in the Tenant URL field, as well as the API key to access it in the API key field.
    Basic settings view of the tQlikOutput configuration.
  3. In the Action list, select Overwrite, as you want to overwrite the previous password policy with a new one.
  4. In the Local file field, enter the path to the updated password policy file you want to upload in your Qlik Cloud account. In this scenario it is called PasswordGuidelinesV2.txt.
  5. In the Remote file name field, enter the name of the existing file as it is displayed in Qlik Cloud. In this scenario it is called PasswordGuidelines.txt.
  6. Click next to the Space field to display the available spaces in your Qlik Cloud account, and select the space in which the file to be updated is located. In this scenario it is called Company policies.

    After you select the space name from the list, its identifier will be displayed in the field.

    Dialog box showing the available spaces in Qlik Cloud.
  7. Click next to the Knowledge base field to display the available knowledge bases in your Qlik Cloud account, and select the knowledge base that contains the file to be updated. In this scenario it is called Company policies KB.

    After you select the knowledge base name from the list, its identifier will be displayed in the field.

    Dialog box showing the available knowledge bases in Qlik Cloud.

Executing the Job in the Studio and testing the updated knowledge base file on Qlik Cloud

Procedure

  1. In Talend Studio: Press Ctrl + S to save your Job, then press F6 to execute it.
    The Run console shows that the Job has been executed successfully.
    Run console showing that the Job has been executed successfully.
  2. In Qlik Cloud: Open the assistant again, and check that the PasswordGuidelines.txt file in the Company policies KB knowledge base has been updated and re-indexed.
    Knowledge base in Qlik Cloud showing that the password guidelines file has been updated 6 minutes ago.
  3. Open the corresponding assistant again, and ask the same question you previously asked: How often should I change my password?.
    Assistant in Qlik Cloud that answers the question 'How often should I change my password?'.

    The assistant takes the updated information into account, and this time it answers that passwords should be changed every 60 days.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!