Skip to content

User Interface#

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

businessscenario_UI

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

businessscenario_ui_start

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

businessscenario_ui_response

When submitting a response it will show in the chat and executes the next step of the scenario. The response box can have multiple types, depending on what is configured for that 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 where to create new scenarios.

businessscenario_ui_no_scenario

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."]
}