Rule: Demo-data-exploration-using-example-file
loading x elements...

Name: Demo-data-exploration-using-example-file

Version: 21

Discussion Thread

Creator: floriandietz@elody.com

This works alongside Demo-data-exploration and offers the use of DemoDataExplorationUsingExampleFile as an example

ID: 421

Created: June 24, 2019, 8:29 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-data-exploration-using-example-file", "description" : "This works alongside Demo-data-exploration and offers the use of DemoDataExplorationUsingExampleFile as an example", "dependencies" : [

Dependency

{ "symbol" : "demo_data_exploration" }
,

Dependency

{ "symbol" : "demo_data_exploration_using_example_file" }
], "threshold" : 2.0, "trigger" :

Trigger

{ "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "theTask", "symbol" : "task_obtain_file_from_user" }
,

Tag filter (for search)

{ "type" : "tag", "var" : "theRequirement", "symbol" : "require_a_file", "arguments" : { "0" :

Tag filter

{ "type" : "tag", "equals" : "theTask" }
} }
] }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "demo-data-exploration-using-example-file-1", "name" : "demo-data-exploration-using-example-file-1", "confidence" : 995, "trigger" :

Trigger

{ "_comment" : "Only use this Option if the user hasn't uploaded a file and the task_obtain_file_from_user is unsolved.", "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "userUploadedAFile", "role" : "excluded", "symbol" : "?user_input_uploaded_file" }
], "deactivate_if" : { "theTask" : ["is_finished"], "userUploadedAFile" : ["match"] } }
, "actions" : [

Create a Tag

{ "type" : "create_tag", "_comment" : "Temporarily overwrite the highlighting on the file upload button.", "var" : "fileUploadingTag1", "symbol" : "!scenario_chat_file_input_status", "comment" : "enabled" }
,

Create an Option

{ "type" : "create_option", "_comment" : "The confidence is set to 0.99 so that Elody will ask explicitly by default, but will execute the Option automatically if the user's security parameters even slightly indicate to skip unnecessary questions.", "var" : "interact-demo-data-exploration-using-example-file", "name" : "interact-demo-data-exploration-using-example-file", "confidence" : 0.99, "trigger" :

Trigger

{ "_comment" : "Only use this Option if the user hasn't uploaded a file and the task_obtain_file_from_user is unsolved.", "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "userUploadedAFile", "role" : "excluded", "symbol" : "?user_input_uploaded_file" }
], "deactivate_if" : { "theTask" : ["is_finished"], "userUploadedAFile" : ["match"] } }
, "display" :

Option Display

{ "message_components" : [

HTML component

{ "type" : "html", "html" : "<p>We have prepared an example file to demonstrate some of the different things our automated data exploration can do.</p>" }
], "buttons" : [

Option Display Submit Button

{ "text" : "Yes, use the example file", "style" : "cta", "is_the_default_button" : true, "actions" : [

Create a Tag

{ "type" : "create_tag", "_comment" : "Deactivate file uploading.", "var" : "fileUploadingTag2", "symbol" : "!scenario_chat_file_input_status", "comment" : "disabled" }
,

Execute a Program

{ "type" : "execute_program", "var" : "theProgramExecution", "program" : "DemoDataExplorationUsingExampleFile" }
,

Create an Option

{ "type" : "create_option", "var" : "postprocess-demo-data-exploration-using-example-file", "name" : "postprocess-demo-data-exploration-using-example-file", "confidence" : 9999.0, "trigger" :

Trigger

{ "arguments" : [

File filter (for search)

{ "type" : "file", "var" : "thePandasFile", "search_type" : "first", "created_by" : "theProgramExecution" }
,

File filter (for search)

{ "type" : "file", "var" : "theCsvFile", "created_by" : "theProgramExecution" }
], "deactivate_if" : { "theTask" : ["is_finished"], "userUploadedAFile" : ["match"] } }
, "actions" : [

Create a Message

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

HTML component

{ "type" : "html", "html" : "The example file is being analyzed. Click the below buttons to download it, so you can have a look yourself." }
,

Downloadable File

{ "type" : "downloadable_file", "scenario_history" : true, "scenario_history_title" : "Example file (as CSV file)", "text" : "Download the example file as a CSV file.", "file" :

Variable

{ "type" : "variable", "var" : "theCsvFile" }
}
,

Downloadable File

{ "type" : "downloadable_file", "scenario_history" : true, "scenario_history_title" : "Example file (as pickled pandas file)", "text" : "Download the example file as a pickled Pandas DataFrame.", "file" :

Variable

{ "type" : "variable", "var" : "thePandasFile" }
}
] }
,

Create a Tag

{ "type" : "create_tag", "symbol" : "!provide", "arguments" : [

Variable

{ "type" : "variable", "var" : "theRequirement" }
,

Variable

{ "type" : "variable", "var" : "thePandasFile" }
] }
] }
] }
,

Option Display Submit Button

{ "text" : "No, I want to try a file of my own." }
] }
, "actions" : [

Create a Tag

{ "type" : "create_tag", "_comment" : "Nullify the previous fileUploadingTag.", "symbol" : "!nullify", "arguments" : [

Variable

{ "type" : "variable", "var" : "fileUploadingTag1" }
] }
] }
,

Create an Option

{ "type" : "create_option", "_comment" : "After a file has been uploaded, deactivate the file uploading Tag if that hasn't happened already.", "var" : "demo-data-exploration-using-example-file-cleanup", "name" : "demo-data-exploration-using-example-file-cleanup", "confidence" : 9999, "trigger" :

Trigger

{ "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "userUploadedAFile", "symbol" : "?user_input_uploaded_file" }
], "deactivate_if" : { "theTask" : ["is_finished"] } }
, "actions" : [

Create a Tag

{ "type" : "create_tag", "_comment" : "Nullify the previous fileUploadingTag.", "symbol" : "!nullify", "arguments" : [

Variable

{ "type" : "variable", "var" : "fileUploadingTag1" }
] }
] }
] }
], "existing_variables" : { "theTask" :

Variable

{ "type" : "tag" }
, "theRequirement" :

Variable

{ "type" : "tag" }
, "demo-data-exploration-using-example-file-1" :

Variable

{ "type" : "option" }
} }

Rule

{ "name" : "Demo-data-exploration-using-example-file", "description" : "This works alongside Demo-data-exploration and offers the use of DemoDataExplorationUsingExampleFile as an example", "dependencies" : [

Dependency

{ "symbol" : "demo_data_exploration", "weight" : 1.0, "comment_filter" : null }
,

Dependency

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

Trigger

{ "repeat" : "never", "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "theTask", "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "task_obtain_file_from_user", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
,

Tag filter (for search)

{ "type" : "tag", "var" : "theRequirement", "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "require_a_file", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : { "0" :

Tag filter

{ "type" : "tag", "var" : null, "role" : "required", "targeted_by" : [], "equals" : "theTask", "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : null, "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
} }
], "deactivate_if" : {} }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "demo-data-exploration-using-example-file-1", "name" : "demo-data-exploration-using-example-file-1", "description" : null, "confidence" : 995, "trigger" :

Trigger

{ "_comment" : "Only use this Option if the user hasn't uploaded a file and the task_obtain_file_from_user is unsolved.", "repeat" : "never", "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "userUploadedAFile", "role" : "excluded", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "?user_input_uploaded_file", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
], "deactivate_if" : { "theTask" : ["is_finished"], "userUploadedAFile" : ["match"] } }
, "display" : null, "actions" : [

Create a Tag

{ "type" : "create_tag", "_comment" : "Temporarily overwrite the highlighting on the file upload button.", "var" : "fileUploadingTag1", "symbol" : "!scenario_chat_file_input_status", "comment" : "enabled", "weight" : null, "arguments" : [], "mark_with" : [] }
,

Create an Option

{ "type" : "create_option", "_comment" : "The confidence is set to 0.99 so that Elody will ask explicitly by default, but will execute the Option automatically if the user's security parameters even slightly indicate to skip unnecessary questions.", "var" : "interact-demo-data-exploration-using-example-file", "name" : "interact-demo-data-exploration-using-example-file", "description" : null, "confidence" : 0.99, "trigger" :

Trigger

{ "_comment" : "Only use this Option if the user hasn't uploaded a file and the task_obtain_file_from_user is unsolved.", "repeat" : "never", "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "userUploadedAFile", "role" : "excluded", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "?user_input_uploaded_file", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
], "deactivate_if" : { "theTask" : ["is_finished"], "userUploadedAFile" : ["match"] } }
, "display" :

Option Display

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

HTML component

{ "type" : "html", "scenario_history" : false, "scenario_history_title" : null, "scenario_history_description" : null, "html" : "<p>We have prepared an example file to demonstrate some of the different things our automated data exploration can do.</p>", "external_domains" : [] }
], "buttons" : [

Option Display Submit Button

{ "text" : "Yes, use the example file", "style" : "cta", "replace_normal_actions" : false, "is_the_default_button" : true, "actions" : [

Create a Tag

{ "type" : "create_tag", "_comment" : "Deactivate file uploading.", "var" : "fileUploadingTag2", "symbol" : "!scenario_chat_file_input_status", "comment" : "disabled", "weight" : null, "arguments" : [], "mark_with" : [] }
,

Execute a Program

{ "type" : "execute_program", "var" : "theProgramExecution", "program" : "DemoDataExplorationUsingExampleFile", "arguments" : {}, "argument_lists" : {} }
,

Create an Option

{ "type" : "create_option", "var" : "postprocess-demo-data-exploration-using-example-file", "name" : "postprocess-demo-data-exploration-using-example-file", "description" : null, "confidence" : 9999.0, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [

File filter (for search)

{ "type" : "file", "var" : "thePandasFile", "role" : "required", "search_type" : "first", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : "theProgramExecution", "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "name_matches" : null }
,

File filter (for search)

{ "type" : "file", "var" : "theCsvFile", "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : "theProgramExecution", "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "name_matches" : null }
], "deactivate_if" : { "theTask" : ["is_finished"], "userUploadedAFile" : ["match"] } }
, "display" : null, "actions" : [

Create a Message

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

HTML component

{ "type" : "html", "scenario_history" : false, "scenario_history_title" : null, "scenario_history_description" : null, "html" : "The example file is being analyzed. Click the below buttons to download it, so you can have a look yourself.", "external_domains" : [] }
,

Downloadable File

{ "type" : "downloadable_file", "scenario_history" : true, "scenario_history_title" : "Example file (as CSV file)", "scenario_history_description" : null, "text" : "Download the example file as a CSV file.", "file" :

Variable

{ "type" : "variable", "nullable" : false, "var" : "theCsvFile" }
}
,

Downloadable File

{ "type" : "downloadable_file", "scenario_history" : true, "scenario_history_title" : "Example file (as pickled pandas file)", "scenario_history_description" : null, "text" : "Download the example file as a pickled Pandas DataFrame.", "file" :

Variable

{ "type" : "variable", "nullable" : false, "var" : "thePandasFile" }
}
] }
,

Create a Tag

{ "type" : "create_tag", "var" : null, "symbol" : "!provide", "comment" : null, "weight" : null, "arguments" : [

Variable

{ "type" : "variable", "nullable" : false, "var" : "theRequirement" }
,

Variable

{ "type" : "variable", "nullable" : false, "var" : "thePandasFile" }
], "mark_with" : [] }
] }
] }
,

Option Display Submit Button

{ "text" : "No, I want to try a file of my own.", "style" : "primary", "replace_normal_actions" : false, "is_the_default_button" : false, "actions" : [] }
] }
, "actions" : [

Create a Tag

{ "type" : "create_tag", "_comment" : "Nullify the previous fileUploadingTag.", "var" : null, "symbol" : "!nullify", "comment" : null, "weight" : null, "arguments" : [

Variable

{ "type" : "variable", "nullable" : false, "var" : "fileUploadingTag1" }
], "mark_with" : [] }
] }
,

Create an Option

{ "type" : "create_option", "_comment" : "After a file has been uploaded, deactivate the file uploading Tag if that hasn't happened already.", "var" : "demo-data-exploration-using-example-file-cleanup", "name" : "demo-data-exploration-using-example-file-cleanup", "description" : null, "confidence" : 9999, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "userUploadedAFile", "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "?user_input_uploaded_file", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
], "deactivate_if" : { "theTask" : ["is_finished"] } }
, "display" : null, "actions" : [

Create a Tag

{ "type" : "create_tag", "_comment" : "Nullify the previous fileUploadingTag.", "var" : null, "symbol" : "!nullify", "comment" : null, "weight" : null, "arguments" : [

Variable

{ "type" : "variable", "nullable" : false, "var" : "fileUploadingTag1" }
], "mark_with" : [] }
] }
] }
], "existing_variables" : { "theTask" :

Variable

{ "type" : "tag", "value" : null }
, "theRequirement" :

Variable

{ "type" : "tag", "value" : null }
, "demo-data-exploration-using-example-file-1" :

Variable

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

all versions of this Rule:

Version 21

Version 20 (deleted)

Version 19 (deleted)

Version 18 (deleted)

Version 17 (deleted)

Version 16 (deleted)

Version 15 (deleted)

Version 14 (deleted)

Version 13 (deleted)

Version 12 (deleted)

Version 11 (deleted)

Version 10 (deleted)

Version 9 (deleted)

Version 8 (deleted)

Version 7 (deleted)

Version 6 (deleted)

Version 5 (deleted)

Version 4 (deleted)

Version 3 (deleted)

Version 2 (deleted)

Version 1 (deleted)