Skip to content

User Interface#

The Automation Business Scenario leverages the Cortex UI to also be able to run scenarios.

Screenshot showing a welcome screen for the Cortex user interface, displaying a prompt to enter input.

By selecting a scenario from the dropdown and pressing the arrow icon it will start a new scenario.

Screenshot showing a dropdown menu with scenario options and an arrow icon, used to initiate a new scenario in Cortex.

The user can then interact with the scenario by using the typing in the response box and submitting an answer.

Screenshot showing a dropdown menu with scenario options and an arrow icon, as part of the Cortex user interface.

When submitting a response it will show in the chat and it will execute the next step of the scenario. The response box can have multiple types. Depending on what is configured for that scenario step.

businessscenario_ui_response_enum.png

No Scenarios#

If there are no scenarios available for a given scope, the chatbot will inform the user and show the url to where he can create new scenarios.

Screenshot showing a UI with a chatbot response indicating no available scenarios and a URL to create new ones.

Header Buttons#

The Cortex UI will provide two buttons to interact:

  • Restart - Will restart the scenario choice and keep all previous history
  • Clean - Will restart the scenario choice and delete all previous history

Start and End Behavior#

The welcome and end message are controlled by configuration entries.

Welcome#

The welcome message is configured in the configuration entry /Cmf/System/Configuration/ConnectIoT/BusinessScenarioStartBehavior/. It configures the message to show if there are available business scenarios in messages. It also allows to configure a behavior for when there aren't scenarios.

Default message:

{
    "messages":[],
    "noBusinessScenario":[
        {
            "type":12,
            "text":"No available Business Scenario for this Scope. To add new scenarios go to:",
            "urls":[
                {
                    "name":"AutomationBusinessScenario",
                    "url":"/Automation/AutomationBusinessScenario"
                }
            ]
        }
    ]
}

End#

The end message is configured in the configuration entry /Cmf/System/Configuration/ConnectIoT/BusinessScenarioEndBehavior/.

Default message:

{
    "messages":["You reached the end of the selected automation business scenario."]
}