Skip to content

Commit

Permalink
Utilize smart background worker process delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Oct 18, 2024
1 parent f77b52b commit c05b762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/assistant/bot-api.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"bot":{"name":"ChatGPTAssistant"},"groups":[{"group":{"name":"ChatGPT","is_collapsed":0,"pos":0},"triggers":[{"trigger":{"id":2039,"name":"AskQuestion","actions":"[{\"_id\":\"ocP8-hUCv\",\"type\":\"match_actions\",\"content\":{\"text\":\"\",\"on_start_type\":\"2\"}},{\"_id\":\"gVNO5uwlk\",\"type\":\"typing\",\"content\":{\"text\":\"\",\"delay\":\"2\",\"untill_message\":true}},{\"_id\":\"_tDZ50Hn7\",\"type\":\"conditions\",\"content\":{\"text\":\"\",\"conditions\":[{\"_id\":\"u2EKB8FWj\",\"type\":\"condition\",\"content\":{\"field\":\"\",\"comp\":\"neq\",\"val\":\"\",\"attr\":\"{args.chat.chat_variables_array.chatgpt_thread_id}\"}}],\"attr_options\":{\"callback_match\":\"2040\",\"callback_unmatch\":\"2041\"}}}]","default":1,"default_unknown":1,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2040,"name":"Send Question","actions":"[{\"_id\":\"sYuCpPTxZ\",\"type\":\"restapi\",\"content\":{\"text\":\"SEnd question\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726747731522\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"temp1726748383233\":\"2044\",\"default_trigger\":\"2043\"},\"attr_options\":{\"no_body\":true,\"background_process\":false}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2041,"name":"New thread","actions":"[{\"_id\":\"82zB5bMuC\",\"type\":\"restapi\",\"content\":{\"text\":\"\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726745957949\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"temp1726745995489\":\"2042\",\"default_trigger\":\"2043\"},\"attr_options\":{\"no_body\":true,\"background_process\":false}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2042,"name":"Set thread","actions":"[{\"_id\":\"pBI2z8yql\",\"type\":\"command\",\"content\":{\"text\":\"\",\"command\":\"chatvariable\",\"payload\":\"{\\\"chatgpt_thread_id\\\":\\\"{content_1}\\\"}\"}},{\"_id\":\"eLQO3yI2W\",\"type\":\"predefined\",\"content\":{\"text\":\"\",\"payload\":\"2040\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2043,"name":"Failure","actions":"[{\"_id\":\"scY9K2CDW\",\"type\":\"text\",\"content\":{\"text\":\"{http_code}\\n{http_error}\\n{content_raw}\\n{http_data}\",\"attr_options\":{\"as_system\":true}},\"skip_resp\":false},{\"_id\":\"u5iJ9VlbD\",\"type\":\"text\",\"content\":{\"text\":\"We could not process your query at the moment. You will be transfered to an agent.\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2044,"name":"Wait for job completion","actions":"[{\"_id\":\"04gYUKM9i\",\"type\":\"command\",\"content\":{\"text\":\"\",\"command\":\"metamsg\",\"payload\":\"{\\\"chatgpt_run_id\\\":\\\"{content_1}\\\"}\"}},{\"_id\":\"3Loq7orX9\",\"type\":\"restapi\",\"content\":{\"text\":\"\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726752787283\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"temp1726752930744\":\"2046\",\"default_trigger\":\"2043\",\"temp1726827369212\":\"2048\"},\"attr_options\":{\"no_body\":true}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2045,"name":"Show Response Test","actions":"[{\"_id\":\"zoellXvdi\",\"type\":\"text\",\"content\":{\"text\":\"{content_1}\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2046,"name":"Retrieve Response","actions":"[{\"_id\":\"3Loq7orX9\",\"type\":\"restapi\",\"content\":{\"text\":\"\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726748750099\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"temp1726749349396\":\"2045\",\"default_trigger\":\"2043\"},\"attr_options\":{\"no_body\":true}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2048,"name":"RequiresAction","actions":"[{\"_id\":\"b8rONAeox\",\"type\":\"command\",\"content\":{\"text\":\"\",\"command\":\"metamsg\",\"payload\":\"{\\\"chatgpt_action_id\\\":\\\"{content_1}\\\"}\"}},{\"_id\":\"JOIDjscc7\",\"type\":\"match_actions\",\"content\":{\"text\":\"{content_2}\",\"on_start_type\":\"5\",\"alternative_callback\":\"2051\"}},{\"_id\":\"e4pVpAUQL\",\"type\":\"restapi\",\"content\":{\"text\":\"\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726829474124\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"default_trigger\":\"2050\"},\"attr_options\":{\"no_body\":true,\"as_system\":false}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2050,"name":"Debug","actions":"[{\"_id\":\"WoS1q_WDN\",\"type\":\"text\",\"content\":{\"text\":\"{http_code}\\n{http_error}\\n{content_raw}\\n{http_data}\",\"attr_options\":{\"as_system\":true}},\"skip_resp\":true}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2051,"name":"Function not found","actions":"[{\"_id\":\"QPFzpdFm3\",\"type\":\"text\",\"content\":{\"text\":\"You have defined function in ChatGPT but it's not supported in LHC.\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]}]},{"group":{"name":"Internal triggers sample","is_collapsed":0,"pos":0},"triggers":[{"trigger":{"id":2047,"name":"Forgot password","actions":"[{\"_id\":\"Ndz-vlfZ2\",\"type\":\"text\",\"content\":{\"text\":\"If you forgot password use this link.\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[{"pattern":"forgot && password","pattern_exc":"","configuration":"{}","type":2,"on_start_type":2,"priority":0,"skip":0}],"payloads":[]},{"trigger":{"id":2049,"name":"Paid support","actions":"[{\"_id\":\"DrG3fOGhl\",\"type\":\"text\",\"content\":{\"text\":\"Paid support price requested.\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[{"pattern":"paid_support_price","pattern_exc":"","configuration":"{\"only_these\":true}","type":2,"on_start_type":0,"priority":0,"skip":0}],"payloads":[]}]}]}
{"bot":{"name":"ChatGPTAssistant"},"groups":[{"group":{"name":"ChatGPT","is_collapsed":0,"pos":0},"triggers":[{"trigger":{"id":2039,"name":"AskQuestion","actions":"[{\"_id\":\"ocP8-hUCv\",\"type\":\"match_actions\",\"content\":{\"text\":\"\",\"on_start_type\":\"2\"}},{\"_id\":\"gVNO5uwlk\",\"type\":\"typing\",\"content\":{\"text\":\"\",\"delay\":\"2\",\"untill_message\":true}},{\"_id\":\"_tDZ50Hn7\",\"type\":\"conditions\",\"content\":{\"text\":\"\",\"conditions\":[{\"_id\":\"u2EKB8FWj\",\"type\":\"condition\",\"content\":{\"field\":\"\",\"comp\":\"neq\",\"val\":\"\",\"attr\":\"{args.chat.chat_variables_array.chatgpt_thread_id}\"}}],\"attr_options\":{\"callback_match\":\"2040\",\"callback_unmatch\":\"2041\"}}}]","default":1,"default_unknown":1,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2040,"name":"Send Question","actions":"[{\"_id\":\"sYuCpPTxZ\",\"type\":\"restapi\",\"content\":{\"text\":\"Send question\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726747731522\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"temp1726748383233\":\"2044\",\"default_trigger\":\"2043\"},\"attr_options\":{\"no_body\":true,\"background_process_delegate\":true}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2041,"name":"New thread","actions":"[{\"_id\":\"82zB5bMuC\",\"type\":\"restapi\",\"content\":{\"text\":\"\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726745957949\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"temp1726745995489\":\"2042\",\"default_trigger\":\"2043\"},\"attr_options\":{\"no_body\":true,\"background_process_delegate\":true}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2042,"name":"Set thread","actions":"[{\"_id\":\"pBI2z8yql\",\"type\":\"command\",\"content\":{\"text\":\"\",\"command\":\"chatvariable\",\"payload\":\"{\\\"chatgpt_thread_id\\\":\\\"{content_1}\\\"}\"}},{\"_id\":\"eLQO3yI2W\",\"type\":\"predefined\",\"content\":{\"text\":\"\",\"payload\":\"2040\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2043,"name":"Failure","actions":"[{\"_id\":\"scY9K2CDW\",\"type\":\"text\",\"content\":{\"text\":\"{http_code}\\n{http_error}\\n{content_raw}\\n{http_data}\",\"attr_options\":{\"as_system\":true}},\"skip_resp\":false},{\"_id\":\"u5iJ9VlbD\",\"type\":\"text\",\"content\":{\"text\":\"We could not process your query at the moment. You will be transfered to an agent.\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2044,"name":"Wait for job completion","actions":"[{\"_id\":\"04gYUKM9i\",\"type\":\"command\",\"content\":{\"text\":\"\",\"command\":\"metamsg\",\"payload\":\"{\\\"chatgpt_run_id\\\":\\\"{content_1}\\\"}\"}},{\"_id\":\"3Loq7orX9\",\"type\":\"restapi\",\"content\":{\"text\":\"\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726752787283\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"temp1726752930744\":\"2046\",\"default_trigger\":\"2043\",\"temp1726827369212\":\"2048\"},\"attr_options\":{\"background_process_delegate\":true,\"no_body\":true}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2045,"name":"Show Response Test","actions":"[{\"_id\":\"zoellXvdi\",\"type\":\"text\",\"content\":{\"text\":\"{content_1}\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2046,"name":"Retrieve Response","actions":"[{\"_id\":\"3Loq7orX9\",\"type\":\"restapi\",\"content\":{\"text\":\"\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726748750099\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"temp1726749349396\":\"2045\",\"default_trigger\":\"2043\"},\"attr_options\":{\"no_body\":true,\"background_process_delegate\":true}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2048,"name":"RequiresAction","actions":"[{\"_id\":\"b8rONAeox\",\"type\":\"command\",\"content\":{\"text\":\"\",\"command\":\"metamsg\",\"payload\":\"{\\\"chatgpt_action_id\\\":\\\"{content_1}\\\"}\"}},{\"_id\":\"JOIDjscc7\",\"type\":\"match_actions\",\"content\":{\"text\":\"{content_2}\",\"on_start_type\":\"5\",\"alternative_callback\":\"2051\"}},{\"_id\":\"e4pVpAUQL\",\"type\":\"restapi\",\"content\":{\"text\":\"\",\"rest_api\":\"77\",\"rest_api_method\":\"temp1726829474124\",\"rest_api_method_params\":[],\"rest_api_method_output\":{\"default_trigger\":\"2050\"},\"attr_options\":{\"no_body\":true,\"as_system\":false,\"background_process_delegate\":true}}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2050,"name":"Debug","actions":"[{\"_id\":\"WoS1q_WDN\",\"type\":\"text\",\"content\":{\"text\":\"{http_code}\\n{http_error}\\n{content_raw}\\n{http_data}\",\"attr_options\":{\"as_system\":true}},\"skip_resp\":true}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]},{"trigger":{"id":2051,"name":"Function not found","actions":"[{\"_id\":\"QPFzpdFm3\",\"type\":\"text\",\"content\":{\"text\":\"You have defined function in ChatGPT but it's not supported in LHC.\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[],"payloads":[]}]},{"group":{"name":"Internal triggers sample","is_collapsed":0,"pos":0},"triggers":[{"trigger":{"id":2047,"name":"Forgot password","actions":"[{\"_id\":\"Ndz-vlfZ2\",\"type\":\"text\",\"content\":{\"text\":\"If you forgot password use this link.\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[{"pattern":"forgot && password","pattern_exc":"","configuration":"{}","type":2,"on_start_type":2,"priority":0,"skip":0}],"payloads":[]},{"trigger":{"id":2049,"name":"Paid support","actions":"[{\"_id\":\"DrG3fOGhl\",\"type\":\"text\",\"content\":{\"text\":\"Paid support price requested.\"}}]","default":0,"default_unknown":0,"default_always":0,"default_unknown_btn":0,"as_argument":0,"in_progress":0},"events":[{"pattern":"paid_support_price","pattern_exc":"","configuration":"{\"only_these\":true}","type":2,"on_start_type":0,"priority":0,"skip":0}],"payloads":[]}]}]}

0 comments on commit c05b762

Please sign in to comment.