Name: Demo-Hello-World-with-choice-harsh
Version: 1
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.
{
"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" : [ { "symbol" : "demo_hello_world_harsh_vitra", "weight" : 1.0, "comment_filter" : null } ], "threshold" : 1.0, "trigger" : { "repeat" : "never", "arguments" : [], "deactivate_if" : {} }, "actions" : [ { "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" : { "repeat" : "never", "arguments" : [], "deactivate_if" : {} }, "display" : { "must_always_be_shown" : true, "parameter_file_name" : null, "message_components" : [ { "type" : "text", "text" : "Please click the button!" } ], "buttons" : null }, "actions" : [ { "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [ { "type" : "text", "text" : "You clicked the button!" } ] } ] }, { "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" : { "repeat" : "never", "arguments" : [], "deactivate_if" : {} }, "display" : { "must_always_be_shown" : true, "parameter_file_name" : null, "message_components" : [ { "type" : "text", "text" : "Do you want to greet the world?" } ], "buttons" : [ { "text" : "Greet the World!", "style" : "primary", "replace_normal_actions" : false, "is_the_default_button" : false, "actions" : [ { "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [ { "type" : "text", "text" : "Hello World!" } ] } ] }, { "text" : "Don't greet the World!", "style" : "primary", "replace_normal_actions" : false, "is_the_default_button" : false, "actions" : [ { "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [ { "type" : "text", "text" : ":-(" } ] } ] } ] }, "actions" : [] } ], "existing_variables" : { "demo-hello-world-with-choice-1" : { "type" : "option", "value" : null }, "demo-hello-world-with-choice-2" : { "type" : "option", "value" : null } } }
This Rule reacts to demo_hello_world_choice and offers the User the choice whether or not to greet the world.", "dependencies" : [ { "symbol" : "demo_hello_world_harsh_vitra", "weight" : 1.0, "comment_filter" : null } ], "threshold" : 1.0, "trigger" : { "repeat" : "never", "arguments" : [], "deactivate_if" : {} }, "actions" : [ { "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" : { "repeat" : "never", "arguments" : [], "deactivate_if" : {} }, "display" : { "must_always_be_shown" : true, "parameter_file_name" : null, "message_components" : [ { "type" : "text", "text" : "Please click the button!" } ], "buttons" : null }, "actions" : [ { "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [ { "type" : "text", "text" : "You clicked the button!" } ] } ] }, { "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" : { "repeat" : "never", "arguments" : [], "deactivate_if" : {} }, "display" : { "must_always_be_shown" : true, "parameter_file_name" : null, "message_components" : [ { "type" : "text", "text" : "Do you want to greet the world?" } ], "buttons" : [ { "text" : "Greet the World!", "style" : "primary", "replace_normal_actions" : false, "is_the_default_button" : false, "actions" : [ { "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [ { "type" : "text", "text" : "Hello World!" } ] } ] }, { "text" : "Don't greet the World!", "style" : "primary", "replace_normal_actions" : false, "is_the_default_button" : false, "actions" : [ { "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [ { "type" : "text", "text" : ":-(" } ] } ] } ] }, "actions" : [] } ], "existing_variables" : { "demo-hello-world-with-choice-1" : { "type" : "option", "value" : null }, "demo-hello-world-with-choice-2" : { "type" : "option", "value" : null } } }
all versions of this Rule:
Version 1