Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
5.5 kB
3
Indexable
Never
update scenario set scenario_content = '{"12a46cec-5e24-4a59-aa88-6a662e3d469d":{"name":"12a46cec-5e24-4a59-aa88-6a662e3d469d","ports":["IN","no_input","no_matches_condition"],"properties":{"input_type":{"speech_recognition_language":{"speech_max":"30","speech_timeout":"1.0"},"start_speech_recognition_at":{"type":"after_the_end"},"type":"speech"},"number_of_loops":"1","ports":[],"say_or_play_message":{"text_to_say":"{{widgets.call_bot_nlp_api_1.TextTTS}}","type":"say"},"stop_gathering_after_n_seconds":"9","widget_name":"gather_input_on_call_1"},"transitions":[{"condition":{},"event":"no_input","next":"ade6e977-23a5-471b-b543-9e224f0a4efb"},{"condition":{},"event":"no_matches_condition","next":"75c09193-ce54-4e3e-abab-db9b9c38a278"}],"type":"gather-input-on-call"},"15c1ee3e-320a-43eb-8517-9835737f211d":{"name":"15c1ee3e-320a-43eb-8517-9835737f211d","ports":["IN","chat","end","action","forward","fail"],"properties":{"api_url":"http://service-nlp-rasa-226:6226/webhooks/rest_custom/webhook","message":"{{callbot.api}}","meta_data":[{"key":"audio_url","value":"{{widgets.gather_input_on_call_1.AudioURL}}"}],"type":"chat","widget_name":"call_bot_nlp_api_1"},"transitions":[{"condition":{},"event":"chat","next":"12a46cec-5e24-4a59-aa88-6a662e3d469d"},{"condition":{},"event":"end","next":"a10ba91e-f4db-42a6-85e2-86c2ab7b8910"},{"condition":{},"event":"fail","next":"aa5e6b6d-d2ef-46a1-b9f7-85b225c0b569"},{"condition":{},"event":"forward","next":"1e0182a1-4329-433c-9b42-8cc32bad1895"},{"condition":{},"event":"action","next":"d107dcf7-8c45-4125-80bf-29fe193633fb"}],"type":"callbot-nlp-api"},"16fe74f0-975c-472a-8d10-2665db72427a":{"name":"16fe74f0-975c-472a-8d10-2665db72427a","ports":["IN","no_input"],"properties":{"variables":[{"key":"callbot.api","value":"alo"}],"widget_name":"set_variables_1"},"transitions":[{"condition":{},"event":"no_input","next":"15c1ee3e-320a-43eb-8517-9835737f211d"}],"type":"set-variables"},"1e0182a1-4329-433c-9b42-8cc32bad1895":{"name":"1e0182a1-4329-433c-9b42-8cc32bad1895","ports":["IN","no_input"],"properties":{"number_of_loops":"1","say_or_play_message":{"text_to_say":"{{widgets.call_bot_nlp_api_1.TextTTS}}","type":"say"},"widget_name":"play_or_say_3"},"transitions":[{"condition":{},"event":"no_input","next":"ae1cdf6f-1f9c-451c-ae0e-f58faec429c5"}],"type":"say-play"},"75c09193-ce54-4e3e-abab-db9b9c38a278":{"name":"75c09193-ce54-4e3e-abab-db9b9c38a278","ports":["IN","no_input"],"properties":{"variables":[{"key":"callbot.api","value":"{{widgets.gather_input_on_call_1.SpeechResult}}"}],"widget_name":"set_variables_3"},"transitions":[{"condition":{},"event":"no_input","next":"15c1ee3e-320a-43eb-8517-9835737f211d"}],"type":"set-variables"},"787787b1-f402-44c2-b5da-4796fae4584c":{"name":"787787b1-f402-44c2-b5da-4796fae4584c","ports":["IN"],"transitions":[],"type":"scenario-end"},"85d4bf5d-e475-4dbf-b8fc-10c4291af46a":{"name":"85d4bf5d-e475-4dbf-b8fc-10c4291af46a","ports":["START"],"properties":{"callback_url":"","speech_recognition":{"language":"vi","speech_model":"open_domain"},"text_to_speech":{"language":"vi","voice":"18"},"variables":[{"key":"CALLBOT_TYPE","value":"RASA"},{"key":"CALLBOT_RASA_ENDPOINT","value":"service-nlp-rasa-226:6226"}]},"transitions":[{"condition":{},"event":"START","next":"16fe74f0-975c-472a-8d10-2665db72427a"}],"type":"trigger"},"8d793014-9685-46dc-a871-6dc8068f2ad6":{"name":"8d793014-9685-46dc-a871-6dc8068f2ad6","ports":["IN","no_input"],"properties":{"variables":[{"key":"callbot.api","value":"ok"}],"widget_name":"set_variables_2"},"transitions":[{"condition":{},"event":"no_input","next":"15c1ee3e-320a-43eb-8517-9835737f211d"}],"type":"set-variables"},"a10ba91e-f4db-42a6-85e2-86c2ab7b8910":{"name":"a10ba91e-f4db-42a6-85e2-86c2ab7b8910","ports":["IN","no_input"],"properties":{"number_of_loops":"1","say_or_play_message":{"text_to_say":"{{widgets.call_bot_nlp_api_1.TextTTS}}","type":"say"},"widget_name":"play_or_say_1"},"transitions":[{"condition":{},"event":"no_input","next":"787787b1-f402-44c2-b5da-4796fae4584c"}],"type":"say-play"},"aa5e6b6d-d2ef-46a1-b9f7-85b225c0b569":{"name":"aa5e6b6d-d2ef-46a1-b9f7-85b225c0b569","ports":["IN","no_input"],"properties":{"number_of_loops":"1","say_or_play_message":{"text_to_say":"Kết nối hệ thống bị lỗi, xin vui lòng thử lại sau","type":"say"},"widget_name":"play_or_say_2"},"transitions":[{"condition":{},"event":"no_input","next":"787787b1-f402-44c2-b5da-4796fae4584c"}],"type":"say-play"},"ade6e977-23a5-471b-b543-9e224f0a4efb":{"name":"ade6e977-23a5-471b-b543-9e224f0a4efb","ports":["IN","no_input"],"properties":{"variables":[{"key":"callbot.api","value":"<silence>"}],"widget_name":"set_variables_4"},"transitions":[{"condition":{},"event":"no_input","next":"15c1ee3e-320a-43eb-8517-9835737f211d"}],"type":"set-variables"},"ae1cdf6f-1f9c-451c-ae0e-f58faec429c5":{"name":"ae1cdf6f-1f9c-451c-ae0e-f58faec429c5","ports":["IN","no_input"],"properties":{"caller_id":"sip:0123456789@10.1.39.178:5060","connect_call_to":"connect_to_sip_endpoint","widget_name":"connect_call_to_1"},"transitions":[],"type":"connect-call-to"},"d107dcf7-8c45-4125-80bf-29fe193633fb":{"name":"d107dcf7-8c45-4125-80bf-29fe193633fb","ports":["IN","no_input"],"properties":{"number_of_loops":"1","say_or_play_message":{"text_to_say":"{{widgets.call_bot_nlp_api_1.TextTTS}}","type":"say"},"widget_name":"play_or_say_4"},"transitions":[{"condition":{},"event":"no_input","next":"8d793014-9685-46dc-a871-6dc8068f2ad6"}],"type":"say-play"}}' where scenario_id = 7;