Rule: Demo-Hello-World-with-choice-harsh
loading x elements...

Name: Demo-Hello-World-with-choice-harsh

Version: 1

Discussion Thread

Creator: harshvitra@gmail.com

This Rule is part of the tutorial.
This Rule reacts to demo_hello_world_choice and offers the User the choice whether or not to greet the world.

ID: 604

Created: Nov. 10, 2019, 11:03 a.m.

full definition:

The below is the JSON description of this object.

It is annotated with links to the documentation of each component.

You can hide fields with default values to make things clearer, and copy it to a clipboard to make creating similar Rules and Options easier.

Rule

{ "name" : "Demo-Hello-World-with-choice-harsh", "description" : "This Rule is part of the tutorial.
This Rule reacts to demo_hello_world_choice and offers the User the choice whether or not to greet the world."
, "dependencies" : [

Dependency

{ "symbol" : "demo_hello_world_harsh_vitra" }
], "threshold" : 1.0, "trigger" :

Trigger

{ }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "demo-hello-world-with-choice-1", "name" : "demo-hello-world-with-choice-1", "description" : "This is an Option that presents a choice.", "confidence" : 0.9, "trigger" :

Trigger

{ }
, "display" :

Option Display

{ "must_always_be_shown" : true, "message_components" : [

Text message component

{ "type" : "text", "text" : "Please click the button!" }
] }
, "actions" : [

Create a Message

{ "type" : "create_message", "message_components" : [

Text message component

{ "type" : "text", "text" : "You clicked the button!" }
] }
] }
,

Create an Option

{ "type" : "create_option", "var" : "demo-hello-world-with-choice-2", "name" : "demo-hello-world-with-choice-2", "description" : "This is an Option that presents a choice.", "confidence" : 0.9, "trigger" :

Trigger

{ }
, "display" :

Option Display

{ "must_always_be_shown" : true, "message_components" : [

Text message component

{ "type" : "text", "text" : "Do you want to greet the world?" }
], "buttons" : [

Option Display Submit Button

{ "text" : "Greet the World!", "actions" : [

Create a Message

{ "type" : "create_message", "message_components" : [

Text message component

{ "type" : "text", "text" : "Hello World!" }
] }
] }
,

Option Display Submit Button

{ "text" : "Don't greet the World!", "actions" : [

Create a Message

{ "type" : "create_message", "message_components" : [

Text message component

{ "type" : "text", "text" : ":-(" }
] }
] }
] }
, "actions" : [] }
], "existing_variables" : { "demo-hello-world-with-choice-1" :

Variable

{ "type" : "option" }
, "demo-hello-world-with-choice-2" :

Variable

{ "type" : "option" }
} }

Rule

{ "name" : "Demo-Hello-World-with-choice-harsh", "description" : "This Rule is part of the tutorial.
This Rule reacts to demo_hello_world_choice and offers the User the choice whether or not to greet the world."
, "dependencies" : [

Dependency

{ "symbol" : "demo_hello_world_harsh_vitra", "weight" : 1.0, "comment_filter" : null }
], "threshold" : 1.0, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [], "deactivate_if" : {} }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "demo-hello-world-with-choice-1", "name" : "demo-hello-world-with-choice-1", "description" : "This is an Option that presents a choice.", "confidence" : 0.9, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [], "deactivate_if" : {} }
, "display" :

Option Display

{ "must_always_be_shown" : true, "parameter_file_name" : null, "message_components" : [

Text message component

{ "type" : "text", "text" : "Please click the button!" }
], "buttons" : null }
, "actions" : [

Create a Message

{ "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [

Text message component

{ "type" : "text", "text" : "You clicked the button!" }
] }
] }
,

Create an Option

{ "type" : "create_option", "var" : "demo-hello-world-with-choice-2", "name" : "demo-hello-world-with-choice-2", "description" : "This is an Option that presents a choice.", "confidence" : 0.9, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [], "deactivate_if" : {} }
, "display" :

Option Display

{ "must_always_be_shown" : true, "parameter_file_name" : null, "message_components" : [

Text message component

{ "type" : "text", "text" : "Do you want to greet the world?" }
], "buttons" : [

Option Display Submit Button

{ "text" : "Greet the World!", "style" : "primary", "replace_normal_actions" : false, "is_the_default_button" : false, "actions" : [

Create a Message

{ "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [

Text message component

{ "type" : "text", "text" : "Hello World!" }
] }
] }
,

Option Display Submit Button

{ "text" : "Don't greet the World!", "style" : "primary", "replace_normal_actions" : false, "is_the_default_button" : false, "actions" : [

Create a Message

{ "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [

Text message component

{ "type" : "text", "text" : ":-(" }
] }
] }
] }
, "actions" : [] }
], "existing_variables" : { "demo-hello-world-with-choice-1" :

Variable

{ "type" : "option", "value" : null }
, "demo-hello-world-with-choice-2" :

Variable

{ "type" : "option", "value" : null }
} }

all versions of this Rule:

Version 1