Rule: Recognize-task-to-convert-file-to-excel
loading x elements...

Name: Recognize-task-to-convert-file-to-excel

Version: 7

Discussion Thread

Creator: initial_tools

Hardcoded Priority (supersedes the rating): 4.1

This Rule has moderator approval.

This Rule calls Interact_ask_user_if_they_want_file_conversion

When (1) the keyword 'convert' comes up as a user_input_keyword and (2) 'excel' comes up as a ?user_input_command_keyword and (3) a file is uploaded by the user, THEN runs Interact_ask_user_if_they_want_file_conversion.

ID: 328

Created: April 9, 2019, 4:57 p.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" : "Recognize-task-to-convert-file-to-excel", "description" : "This Rule calls Interact_ask_user_if_they_want_file_conversion

When (1) the keyword 'convert' comes up as a user_input_keyword and (2) 'excel' comes up as a ?user_input_command_keyword and (3) a file is uploaded by the user, THEN runs Interact_ask_user_if_they_want_file_conversion.
"
, "dependencies" : [

Dependency

{ "symbol" : "user_input_keyword", "comment_filter" : "convert" }
,

Dependency

{ "symbol" : "?user_input_command_keyword", "comment_filter" : "excel" }
], "threshold" : 2.0, "trigger" :

Trigger

{ "repeat" : [ "theFile" ], "arguments" : [

Tag filter (for search)

{ "type" : "tag", "symbol" : "user_input_keyword", "comment" : "convert", "arguments" : { "0" :

File filter

{ "type" : "file", "_comment" : "We need to remember in what step the user made his request, to ensure that we only capture the other keywords if they were created in that same step", "var" : "theRequest" }
} }
,

Tag filter (for search)

{ "type" : "tag", "created_in_same_event_as" : "theRequest", "symbol" : "?user_input_command_keyword", "comment" : "excel" }
,

File filter (for search)

{ "type" : "file", "var" : "theFile", "targeted_by" : [

Tag filter (for search)

{ "type" : "tag", "symbol" : "?user_input_uploaded_file" }
] }
] }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "recognize-task-to-convert-file-to-excel", "name" : "recognize-task-to-convert-file-to-excel", "description" : "Run Interact_ask_user_if_they_want_file_conversion.", "confidence" : 1000.0, "trigger" :

Trigger

{ }
, "actions" : [

Create a Tag

{ "type" : "create_tag", "var" : "nameOfRequireTag", "symbol" : "metadata", "comment" : "require_format_excel" }
,

Create a Tag

{ "type" : "create_tag", "var" : "readableName", "symbol" : "metadata", "comment" : "Excel" }
,

Create a Tag

{ "type" : "create_tag", "var" : "matchingFileEndings", "symbol" : "metadata", "comment" : ".xlsx" }
,

Execute a Program

{ "type" : "execute_program", "program" : "Interact_ask_user_if_they_want_file_conversion", "arguments" : { "the_file" :

Variable

{ "type" : "variable", "var" : "theFile" }
, "readable_name" :

Variable

{ "type" : "variable", "var" : "readableName" }
, "matching_file_endings" :

Variable

{ "type" : "variable", "var" : "matchingFileEndings" }
, "symbol_name_of_require_tag" :

Variable

{ "type" : "variable", "var" : "nameOfRequireTag" }
} }
] }
], "existing_variables" : { "theFile" :

Variable

{ "type" : "file" }
, "theRequest" :

Variable

{ "type" : "file" }
, "recognize-task-to-convert-file-to-excel" :

Variable

{ "type" : "option" }
} }

Rule

{ "name" : "Recognize-task-to-convert-file-to-excel", "description" : "This Rule calls Interact_ask_user_if_they_want_file_conversion

When (1) the keyword 'convert' comes up as a user_input_keyword and (2) 'excel' comes up as a ?user_input_command_keyword and (3) a file is uploaded by the user, THEN runs Interact_ask_user_if_they_want_file_conversion.
"
, "dependencies" : [

Dependency

{ "symbol" : "user_input_keyword", "weight" : 1.0, "comment_filter" : "convert" }
,

Dependency

{ "symbol" : "?user_input_command_keyword", "weight" : 1.0, "comment_filter" : "excel" }
], "threshold" : 2.0, "trigger" :

Trigger

{ "repeat" : [ "theFile" ], "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : null, "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_keyword", "comment" : "convert", "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" :

File filter

{ "type" : "file", "_comment" : "We need to remember in what step the user made his request, to ensure that we only capture the other keywords if they were created in that same step", "var" : "theRequest", "role" : "required", "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "name_matches" : null }
} }
,

Tag filter (for search)

{ "type" : "tag", "var" : null, "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : "theRequest", "created_later_than" : null, "is_reserved" : null, "symbol" : "?user_input_command_keyword", "comment" : "excel", "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" : {} }
,

File filter (for search)

{ "type" : "file", "var" : "theFile", "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [

Tag filter (for search)

{ "type" : "tag", "var" : null, "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" : {} }
], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "name_matches" : null }
], "deactivate_if" : {} }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "recognize-task-to-convert-file-to-excel", "name" : "recognize-task-to-convert-file-to-excel", "description" : "Run Interact_ask_user_if_they_want_file_conversion.", "confidence" : 1000.0, "trigger" :

Trigger

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

Create a Tag

{ "type" : "create_tag", "var" : "nameOfRequireTag", "symbol" : "metadata", "comment" : "require_format_excel", "weight" : null, "arguments" : [], "mark_with" : [] }
,

Create a Tag

{ "type" : "create_tag", "var" : "readableName", "symbol" : "metadata", "comment" : "Excel", "weight" : null, "arguments" : [], "mark_with" : [] }
,

Create a Tag

{ "type" : "create_tag", "var" : "matchingFileEndings", "symbol" : "metadata", "comment" : ".xlsx", "weight" : null, "arguments" : [], "mark_with" : [] }
,

Execute a Program

{ "type" : "execute_program", "var" : null, "program" : "Interact_ask_user_if_they_want_file_conversion", "arguments" : { "the_file" :

Variable

{ "type" : "variable", "nullable" : false, "var" : "theFile" }
, "readable_name" :

Variable

{ "type" : "variable", "nullable" : false, "var" : "readableName" }
, "matching_file_endings" :

Variable

{ "type" : "variable", "nullable" : false, "var" : "matchingFileEndings" }
, "symbol_name_of_require_tag" :

Variable

{ "type" : "variable", "nullable" : false, "var" : "nameOfRequireTag" }
}, "argument_lists" : {} }
] }
], "existing_variables" : { "theFile" :

Variable

{ "type" : "file", "value" : null }
, "theRequest" :

Variable

{ "type" : "file", "value" : null }
, "recognize-task-to-convert-file-to-excel" :

Variable

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

all versions of this Rule:

Version 7

Version 6 (deleted)

Version 5 (deleted)

Version 4 (deleted)

Version 3 (deleted)

Version 2 (deleted)

Version 1 (deleted)