Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Drag and drop Capture Feedback on the canvas.

  2. On the properties panel, select the type of feedback in the Feedback Prompt

    1. For Text type:

      1. Add the feedback question specific to the skill in the Message field.

    2. For Quick Replies:

      1. Add the response questions.

      2. You may add a follow-up action or skill in Payload to automatically trigger an action based on the feedback response selected by the end user.

      3. Click on the tag icon on the option and add the required action or skill in the ‘Value.’

  3. Add a Post Feedback Message. The message is triggered once the response to the survey is received.

Script

The Script block empowers skill developers to add custom scripts to their skills, enabling handling complex scenarios such as performing calculations, data manipulations, or implementing other custom logic. It provides flexibility and capability of your skills by allowing you to inject JavaScript directly into your conversation flow. Using scripts, you can perform complex processing and set or clear context attributes.

To use a script in the conversation, follow the below steps:

  1. Drag and drop the Script on the canvas.

    image-20240619-190629.pngImage Added
  2. On the properties panel, add the script to the script block.

    image-20240619-191059.pngImage Added

  3. Click on the maximize button on the screen to view the script pop-up.

Info

Use the following syntax to use existing attributes in the script

To refer to the value of a context variables:

  • contextAttributes.getAttribute("@{global.global1}")

  • contextAttributes.getAttribute("@{local.local1}")

To set a context attribute:

  • contextAttributes.setGlobalAttribute("global1", 123)

  • contextAttributes.setLocalAttribute("local1", 123)

To clear attributes:

  • contextAttributes.clearGlobalAttribute("global1”)

  • contextAttributes.clearLocalAttribute("local1")

  • contextAttributes.clearAllGlobalAttributes()

End

The 'End' block signifies the conclusion of a flow within the skill. When the skill execution reaches the End block, it signals the end of the skill's execution, triggering the Global Survey based on the specified configuration. While the End block is not mandatory, reaching a control without a subsequent node also marks the end of the skill execution and automatically accounts for the Survey, following the global configuration. To disable the survey for a specific path in the skill, you can incorporate the End Block accordingly.

...

  1. Drag and drop the 'AI Task' conversation step on the skill.

  2. On the properties panel, select Existing to execute the OOTB tasks or Adhoc to add a new request for Generative AI.

  3. For an Existing Task:

    1. Select the Task Category.

    2. Select Sub Category.

    3. Select the required Task.
      Note: Only the prompt which have Visible in AI Prompt checked will be available here.

  4. Now click on Test Response to verify if the selected task generates the information required in the skill.

  5. The AI Task Response Validation screen is used toverify the AI task and configurations. Here, you can validate the response of the AI task by providing values to the input parameters of the selected task.

    1. Task Category, Subcategory, and Task section to select the task. The section is populated based on the selection in the Properties panel. You may test and change the task as required.

    2. The Task Description section provides information on the task being executed.

    3. Map Task Input Parameters lists all the input parameters required for the task. You can assign a value or use an attribute to refer to the value available in the attribute.

    4. Now click on Test to verify the response of the AI Task.

    5. When an attribute is used while mapping an input parameter, Assign Test values for each attribute. These values are used to test the task. Add the test values and click Test.

    6. The system executes the task using the test values.

  6. For an Adhoc task, select 'Adhoc Task' in the properties panel.

  7. Add the task details to be executed in the Task Description field. This is a free text field where you can describe the task to be executed using Generative AI.

  8. Now, Click on Test Response.

  9. On the AI Task Response Validation screen, validate the response of the AI task.

  10. Task Description indicates the action to be performed in the step.

  11. Click on Test and validate the response in Test Response. Refine the Task description to ensure it generates the information as required.

...