"extendedAttributes":"{\"showType\":\"next\",\"nodeId\":\"Actions_8758719561772293\",\"title\":\"Reason of cancellatiion\",\"triggerBtnName\":\"Submit\",\"actionType\":\"ChatBotOrderOperationReason\",\"x\":686,\"y\":212}",
"inner":[
{
"robId":"cjhg9iuein687habss50",
"objName":"ChatBotMulReply",
"objType":"string",
"objValue":"{\"contentList\":\"Just in case we get disconnected, please provide your name and email address, thanks.\",\"attachmentList\":[]}",
"showType":"mulInput",
"showKind":"chatBotReply",
"extendedAttributes":"{\"title\":\"Reason of cancellatiion\",\"nodeId\":\"Actions_8758719561772293\",\"triggerBtnName\":\"Submit\",\"actionType\":\"ChatBotOrderOperationReason\",\"x\":686,\"y\":212}"
},
{
"robId":"cq19pg773uvprfk5v68g",
"objName":"ChatBotOrderOperationReason",
"objType":"string",
"objValue":"[{\"key\":\"CUSTOMER\",\"value\":\"The customer wanted to cancel the order.\",\"checked\":false},{\"key\":\"DECLINED\",\"value\":\"Payment was declined.\",\"checked\":false},{\"key\":\"FRAUD\",\"value\":\"The order was fraudulent.\",\"checked\":false},{\"key\":\"INVENTORY\",\"value\":\"There was insufficient inventory.\",\"checked\":false},{\"key\":\"OTHER\",\"value\":\"The order was canceled for an unlisted reason.\",\"checked\":false},{\"key\":\"STAFF\",\"value\":\"Staff made an error.\",\"checked\":false}]",
"showType":"",
"showKind":"",
"extendedAttributes":"{\"title\":\"Reason of cancellatiion\",\"nodeId\":\"Actions_8758719561772293\",\"triggerBtnName\":\"Submit\",\"actionType\":\"ChatBotOrderOperationReason\",\"x\":686,\"y\":212}"
"objValue":"{\"contentList\":\"Hi👋~ Please check with our return policy and make sure you are eligible for the return.\\n\",\"attachmentList\":[],\"productList\":[],\"faqList\":[]}",
orderflow_order_select_sql=f'select * from `user_order` where email = "{orderflowData.email}" and user_id = {orderflowData.shopId} order by id desc limit 10'
orderflow_select_sql=f'select MAX(rule_id), event_id from `rule_define` where brand_id = {orderflowData.brandId} and status = 1 and child_rule = 0 and rule_cate = 2 group by event_id'
orderflow_select_sql=f'select * from `rule_define` where brand_id = {orderflowData.brandId} and status != 3 and tpl_id = "{orderflowData.orderflow_parent_template_id}" and child_rule = 0 and rule_cate = 2'
orderflow_insert_sql=f"""INSERT INTO willdesk.rule_define (rule_id,tpl_id,brand_id,event_id,rule_name,rule_describe,rule_dsl,rule_raw,sorts,parent_ruleid,child_rule,dsl_version,json_version,rule_cate,status,create_at,update_at) VALUES