LogoLogo
  • About Hala.ai
  • Getting started with Hala
  • Hala Web Chat
  • Hala Platform
  • Platform Key concepts
    • Dashboard
      • Skills usage and chat history
    • User Management
    • Skills Kit
      • Dialog nodes
      • Conditions
      • Actions
      • Context
      • Output
        • Text
        • Text random
        • Quick reply
        • Video
        • Images
        • Forms
        • Tables (beta)
      • Behavior
    • Intents
    • Entities
    • Pre-built content
    • Context variables
    • Integrations
      • SAP (via Web Services)
      • ServiceNow
      • REST API
    • Actions
      • SAP (via Web Services)
      • ServiceNow
      • REST API
  • How to
    • Create a simple skill
    • Create a more complex skill
    • Create skill for SAP
    • Create skill for ServiceNow
    • Create the weather skill
    • Create skill with forms
  • help
    • Changelog
    • Support
    • Service Plan
  • reference
    • Articles
      • How AI empower sustainable growth of the organizations
      • How the Conversational AI Analytics will transform the business
      • Digital Skills as a Service (DSaaS)
      • Emerging Technologies and Enterprise Software
      • Identify the potential for automation
      • Few reasons to empower your ERP with Digital Assistant
      • AI Technology VS Value
      • SAP AMS Market Overview
Powered by GitBook
On this page
  • Overview
  • Accessing objects in output
  • Expert mode in JSON format

Was this helpful?

  1. Platform Key concepts
  2. Skills Kit
  3. Output

Text

Last Updated: 25.10.2019

PreviousOutputNextText random

Last updated 5 years ago

Was this helpful?

Overview

If you want to provide a text response, enter the text that you want to display to the user.

To work with the text, you have additional options available in the top right corner. You can make the text bold, Italic, Underline text and add a bulleted list or ordered list.

Accessing objects in output

You can access next objects in the output:

Object

Description

context.context_name

The output text will include the information stored in the context variable.

entity.entity_name.value

The output text will include information about the entity that was mentioned by the user during the conversation.

To include a context variable value in the response, use the syntax {{context.variable_name}} to specify it. For example, in the system by default, you have the context variable user.firstName and user.lastName. You can use these context variables or any of your custom context variables in the output.

Your response of the node can look like this:

The end-user will get next response in the chat:

You can also access entities by using the same approach. For accessing entities you need to use next syntax {{entity.name_of_the_entity.value}}. For example, you ask the user to provide the status for the creation of a new incident, and the end-users send the next text: "the status is urgent." After this, you want to get the confirmation for creation of incident, and you need access the entity value to get the confirmation from the user:

The end-user will get next response in the chat:

Expert mode in JSON format

You can use the expert mode to specify the output text. The expert mode becomes available by pressing the button next to the word "Output."

Here are a few examples of using the expert mode.

[
  {
    "type": "text",
    "value": "Could you please describe your problem"
  }
]

and example with accessing the objects:

[
  {
    "type": "text",
    "value": "Confirm the creation of the new incident:"
  },
  {
    "type": "text",
    "value": "Description: {{context.short_description}}"
  },
  {
    "type": "text",
    "value": "Status: {{entity.status.value}}"
  }
]

Access the Expert mode