[{"data":1,"prerenderedAt":7137},["Reactive",2],{"blogPostList":3,"blogCategory":7117},[4,182,6419,6774,6842,7085],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"_empty":7,"title":9,"description":10,"author":11,"dates":12,"body":14,"_type":177,"_id":178,"_source":179,"_file":180,"_extension":181},"/blog/hci/comp4621-1st","hci",false,"","Group project 1 - Clever Washer on the campus","Diary for COMP4621 Project 1. We worked on the washing machines inside our hall, such that our fellow schoolmates wash clothes efficiently.","@Leung King Suen, Oscar",{"published":13},"26-2-2022",{"type":15,"children":16,"toc":166},"root",[17,26,32,37,43,48,54,59,65,70,79,88,90,96,101,107,112,120,125,126,131,139,144,145,150,156,161],{"type":18,"tag":19,"props":20,"children":22},"element","h2",{"id":21},"where-we-started",[23],{"type":24,"value":25},"text","Where we started?",{"type":18,"tag":27,"props":28,"children":29},"p",{},[30],{"type":24,"value":31},"We have asked the pain point of living in campus to some of our friends and among ourselves. Their feedback was the like the queuing problems in the library and the canteen, as weel as the laundry problems.",{"type":18,"tag":27,"props":33,"children":34},{},[35],{"type":24,"value":36},"Therefore, We have decided to make an app design with the idea of 'Smart Laudry'. The reason behind this is that, we found ourselves all have the idea to improve the laudry rooms on campus. The thing is, everytime a student goes down to laudry rooms, he found no machines available, and have to either wait or go back to his room with no luck. Another thing is, many students they just forgot to take their clothes out even the washing is finished anyway.",{"type":18,"tag":19,"props":38,"children":40},{"id":39},"the-persona-pov",[41],{"type":24,"value":42},"the Persona POV",{"type":18,"tag":27,"props":44,"children":45},{},[46],{"type":24,"value":47},"Think of a persona, we got a busy student, he has many deadlines coming, there's not really much time left, how can he even bother with washing clothes?? He suggested should be a better solution to this! He want to know the status of all washer/dryer in his hall in advance, so he can go to laundry room without wasting his time checking the availability. Also, he wants the other students to take all their clothes out of their washer immediately, so he can use their machines.",{"type":18,"tag":19,"props":49,"children":51},{"id":50},"our-decision",[52],{"type":24,"value":53},"Our Decision",{"type":18,"tag":27,"props":55,"children":56},{},[57],{"type":24,"value":58},"We decide to show the realtime status of the machines, students could queue on the machines that are about to complete. It will be presented in a app, student also get their notification for completion of the clothes via mobile app. Altogether with other functionalities.",{"type":18,"tag":19,"props":60,"children":62},{"id":61},"in-developement-my-learning",[63],{"type":24,"value":64},"In developement, My learning",{"type":18,"tag":27,"props":66,"children":67},{},[68],{"type":24,"value":69},"I joined the task on making the apps on a website called 'figma'. We tried to implement some of the UX/UI designs feature here. Including a dark theme + round corner design. Let's see what's in our app.\r\nyou can see the basic design theme of our app, including the washer list, timer, the blue lines are for the control/function flow(more on that later).",{"type":18,"tag":27,"props":71,"children":72},{},[73],{"type":18,"tag":74,"props":75,"children":78},"img",{"alt":76,"src":77},"Figma Design","/img/4621_1/p11.jpg",[],{"type":18,"tag":80,"props":81,"children":86},"figcaption",{"className":82},[83,84,85],"text-center","italic","font-medium",[87],{"type":24,"value":76},{"type":24,"value":89}," \n",{"type":18,"tag":19,"props":91,"children":93},{"id":92},"the-challenge",[94],{"type":24,"value":95},"the Challenge",{"type":18,"tag":27,"props":97,"children":98},{},[99],{"type":24,"value":100},"The real challenge, however, comes when arranging that many elements inside figma. So we have 3 peoples working together on this. But we all agreed that when it comes to editing the figma elements, it's very complicated. The objects have different depth, layering, makes it very hard to click, edit. Luckily, we group the things in a organise manner, making it a lot easier to change, the downside though, is we need more time to explain it to other members on the organisation.",{"type":18,"tag":19,"props":102,"children":104},{"id":103},"gettings-hands-on",[105],{"type":24,"value":106},"Gettings hands on",{"type":18,"tag":27,"props":108,"children":109},{},[110],{"type":24,"value":111},"One thing about Figma which is good though (thanks you to Elizabeth for recommending such tool) is the ability to implement simple flows.\r\nFor example, we have designed many sub menus, tips, and other funcitons inside our app. How to we navigate inside these functions, we think by using a menu(or 'Hamberger' if you prefer that name). The menu will have 4 elements, and the user can interact with them.",{"type":18,"tag":27,"props":113,"children":114},{},[115],{"type":18,"tag":74,"props":116,"children":119},{"alt":117,"src":118},"Page Flow","/img/4621_1/p12.jpg",[],{"type":18,"tag":80,"props":121,"children":123},{"className":122},[83,84,85],[124],{"type":24,"value":117},{"type":24,"value":89},{"type":18,"tag":27,"props":127,"children":128},{},[129],{"type":24,"value":130},"Yeah...The blue lines are very messy, but they are the backbone of our functionalities. The blue link are the flows of our control. It's like, if we press one of the button, it will follow the lines from that button, to the page we *point to.",{"type":18,"tag":27,"props":132,"children":133},{},[134],{"type":18,"tag":74,"props":135,"children":138},{"alt":136,"src":137},"Transition Settings","/img/4621_1/p13.jpg",[],{"type":18,"tag":80,"props":140,"children":142},{"className":141},[83,84,85],[143],{"type":24,"value":136},{"type":24,"value":89},{"type":18,"tag":27,"props":146,"children":147},{},[148],{"type":24,"value":149},"The functionalities are mostly done via linking pages together with this flow function shown in the picture. Also, we had a hard time tuning the rounded corner elements and the relative position of elements.",{"type":18,"tag":19,"props":151,"children":153},{"id":152},"experiences",[154],{"type":24,"value":155},"Experiences",{"type":18,"tag":27,"props":157,"children":158},{},[159],{"type":24,"value":160},"In my opinion, I think making a balance of intuitive control to the user and the aesthetics of elements&color scheme is a interesting topic. You can make the colors contrasting very well, that will make the whole app ery intuitive to the users because they know the elements are different things from the fact that they have different colors. But, that will destroy whole balance in color scheme, aesthetics area of the app will be ruined. On the other hand, using coherance, paired color is good, but it is not so inituitive to users, or epressing our intended idea by that color&shape. So in this case, different shapes are needed to indicate the elements are different. But then we have to think again our shape scheme (Remember the rounded-corner thing I mentioned before?)",{"type":18,"tag":27,"props":162,"children":163},{},[164],{"type":24,"value":165},"Anyway, It is a fun group project at the end. I know how to balance my own idea in the functionalities of the app, with our teammates, after working with them. Adding too much complex functionalities on a simple app (which is our start point) can sometimes be a bad thing (not to mention whether our tech allows it), but, too least function also makes it not attractive. Here co-operation is great for such situation, we can discuss and found a balance sweet point with each of our own reasonings.",{"title":8,"searchDepth":167,"depth":167,"links":168},3,[169,171,172,173,174,175,176],{"id":21,"depth":170,"text":25},2,{"id":39,"depth":170,"text":42},{"id":50,"depth":170,"text":53},{"id":61,"depth":170,"text":64},{"id":92,"depth":170,"text":95},{"id":103,"depth":170,"text":106},{"id":152,"depth":170,"text":155},"markdown","content:blog:hci:comp4621-1st.md","content","blog/hci/comp4621-1st.md","md",{"_path":183,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"_empty":7,"title":184,"description":185,"author":11,"dates":186,"body":188,"_type":177,"_id":6417,"_source":179,"_file":6418,"_extension":181},"/blog/hci/comp4621-2nd","Group project 2 - Self Quarantine Chatbot","Diary for COMP4621 Project 2",{"published":187},"30-03-2022",{"type":15,"children":189,"toc":6402},[190,196,201,206,211,217,222,230,235,239,244,249,254,260,269,280,285,309,314,320,325,332,339,344,392,397,757,762,767,1141,1146,1506,1512,1517,2890,2895,3438,3443,4351,4357,4362,4367,5046,5051,5712,5718,5726,5731,5736,6084,6089,6319,6324,6329,6337,6342,6348,6353,6358,6366,6371,6377,6382,6387,6392,6397],{"type":18,"tag":19,"props":191,"children":193},{"id":192},"where-did-the-idea-came-from",[194],{"type":24,"value":195},"Where did the idea came from?",{"type":18,"tag":27,"props":197,"children":198},{},[199],{"type":24,"value":200},"When I first about that, the project is about a quarantine robot, I don't know what is really about maybe only some vague ideas, but not know exactly how the robot should do.",{"type":18,"tag":27,"props":202,"children":203},{},[204],{"type":24,"value":205},"So I decided to ask my friends about it. I have some friends study aboared. And when they come back to Hong Kong, they will have to be quarantine for 14 days. They said the quarantine process is very boring. There's not much they can do in the quarantine room. Moreover, they said because they can't do exercises in the room, so they will get fatter later on.",{"type":18,"tag":27,"props":207,"children":208},{},[209],{"type":24,"value":210},"And, Luckily, one of our groupmate elizabeth is a exchange student, she also shared about her own experiences in the quarantine, which mostly matched the feedback from above.",{"type":18,"tag":19,"props":212,"children":214},{"id":213},"ideas-are-evolving",[215],{"type":24,"value":216},"Ideas are evolving",{"type":18,"tag":27,"props":218,"children":219},{},[220],{"type":24,"value":221},"We firstly created the mindmap about the robot functions in Google slides, which is a rather simple version and later on we decided we would move them to mindmeister(same as lastime)",{"type":18,"tag":27,"props":223,"children":224},{},[225],{"type":18,"tag":74,"props":226,"children":229},{"alt":227,"src":228},"Mindmap","/img/4621_2/p21.jpg",[],{"type":18,"tag":80,"props":231,"children":233},{"className":232},[83,84,85],[234],{"type":24,"value":227},{"type":18,"tag":27,"props":236,"children":237},{},[238],{"type":24,"value":221},{"type":18,"tag":27,"props":240,"children":241},{},[242],{"type":24,"value":243},"To explain this in a simple way. I think the robot should have some entertainment features to keep user happy during the whole quarantine process. It would suggest some musics, workout youtube videos. Moreover, it should tell users some jokes to cheer the user up, and it would give some random images to make the user's quarantine life more elements. At last, I wish to implement a mini-wordle. (But that didn't work).",{"type":18,"tag":27,"props":245,"children":246},{},[247],{"type":24,"value":248},"It should also have informational features. We are also targetting it as a personal assistant. So it can return time information, weather information.",{"type":18,"tag":27,"props":250,"children":251},{},[252],{"type":24,"value":253},"At last, it is a quarantine robot. So it should have some functions related to covid19, right? We think, it should provide latest covid informations, as well as 'what user should do' if the user is confirmed positive, or felt unwell. At last, as in quarantine, it is eazy so lose the sense of dates, time. So There a quarantine progress, the user can inquire the quarantine progress.",{"type":18,"tag":19,"props":255,"children":257},{"id":256},"storyboarding",[258],{"type":24,"value":259},"Storyboarding",{"type":18,"tag":261,"props":262,"children":263},"blockquote",{},[264],{"type":18,"tag":27,"props":265,"children":266},{},[267],{"type":24,"value":268},"What could happen, will happen",{"type":18,"tag":27,"props":270,"children":271},{},[272,274],{"type":24,"value":273},"This is the least thing I want to declare as my work, but, fine, I drew this ",{"type":18,"tag":275,"props":276,"children":277},"em",{},[278],{"type":24,"value":279},"masterpiece",{"type":18,"tag":27,"props":281,"children":282},{},[283],{"type":24,"value":284},"I want to express that, the user got into quarantine hotel, but he felt very bored, watched all youtube videos, and when he feels unwell, no one could help him. But then he found the quarantine chatbot, then suddenly his problem were solved. and his felt very good. Lastly at the end of the quarantine He felt love with the robot, and he don't want to leave anymore.",{"type":18,"tag":27,"props":286,"children":287},{},[288,293,295,299,300,304,305],{"type":18,"tag":74,"props":289,"children":292},{"alt":290,"src":291},"the Storyboard","/img/4621_2/storyboard1.png",[],{"type":24,"value":294},"\r\n",{"type":18,"tag":74,"props":296,"children":298},{"alt":290,"src":297},"/img/4621_2/storyboard2.jpg",[],{"type":24,"value":294},{"type":18,"tag":74,"props":301,"children":303},{"alt":290,"src":302},"/img/4621_2/storyboard3.jpg",[],{"type":24,"value":294},{"type":18,"tag":74,"props":306,"children":308},{"alt":290,"src":307},"/img/4621_2/storyboard4.jpg",[],{"type":18,"tag":80,"props":310,"children":312},{"className":311},[83,84,85],[313],{"type":24,"value":290},{"type":18,"tag":19,"props":315,"children":317},{"id":316},"code",[318],{"type":24,"value":319},"Code",{"type":18,"tag":27,"props":321,"children":322},{},[323],{"type":24,"value":324},"We have 3 people working on the code works. I was incharge of implementing some entertainment functions. Also, I try to make the robot as humanly as possible.",{"type":18,"tag":326,"props":327,"children":329},"h3",{"id":328},"python-actionpy",[330],{"type":24,"value":331},"Python Action.py",{"type":18,"tag":333,"props":334,"children":336},"h4",{"id":335},"getting-imagestexts-from-online-apis",[337],{"type":24,"value":338},"Getting images/texts from online APIs",{"type":18,"tag":27,"props":340,"children":341},{},[342],{"type":24,"value":343},"For the robot to return more interesting content to us, it would have to run things in python, which is done by implementing custom actions inside action.py. For example, In order to return images from the website, it would have to GET images from the APIs. I have not work with an APIs in Python before(not in any languages...) But with the help from teammates, I can pull the image and texts from the web. The format pulled are a python dictionary, so I can do",{"type":18,"tag":316,"props":345,"children":350},{"className":346,"code":348,"language":349,"meta":8},[347],"language-python","something = data['attribute']\n","python",[351],{"type":18,"tag":352,"props":353,"children":354},"pre",{},[355],{"type":18,"tag":316,"props":356,"children":357},{"__ignoreMap":8},[358],{"type":18,"tag":359,"props":360,"children":363},"span",{"class":361,"line":362},"line",1,[364,370,376,381,387],{"type":18,"tag":359,"props":365,"children":367},{"class":366},"ct-048248",[368],{"type":24,"value":369},"something ",{"type":18,"tag":359,"props":371,"children":373},{"class":372},"ct-491639",[374],{"type":24,"value":375},"=",{"type":18,"tag":359,"props":377,"children":378},{"class":366},[379],{"type":24,"value":380}," data[",{"type":18,"tag":359,"props":382,"children":384},{"class":383},"ct-604220",[385],{"type":24,"value":386},"'attribute'",{"type":18,"tag":359,"props":388,"children":389},{"class":366},[390],{"type":24,"value":391},"]",{"type":18,"tag":27,"props":393,"children":394},{},[395],{"type":24,"value":396},"to pull the things I want. Here is a implementation of the program custom action to pull cat images from some random images API.",{"type":18,"tag":316,"props":398,"children":401},{"className":399,"code":400,"language":349,"meta":8},[347],"class ActionGetCatImg(Action):\r\n    def name(self) -> Text:\r\n        return \"action_cat_img\"\r\n\r\n    def run(self, dispatcher, tracker, domain):\r\n        request = json.loads(\r\n            requests.get(\"https://some-random-api.ml/img/cat\").text\r\n        )\r\n        link = request[\"link\"]\r\n        dispatcher.utter_message(text=f\"Look how cute she is...😸😸😸\")\r\n        dispatcher.utter_message(image=link)\r\n        return []\n",[402],{"type":18,"tag":352,"props":403,"children":404},{},[405],{"type":18,"tag":316,"props":406,"children":407},{"__ignoreMap":8},[408,443,481,504,513,575,603,631,640,668,710,740],{"type":18,"tag":359,"props":409,"children":410},{"class":361,"line":362},[411,417,422,428,433,438],{"type":18,"tag":359,"props":412,"children":414},{"class":413},"ct-527673",[415],{"type":24,"value":416},"class",{"type":18,"tag":359,"props":418,"children":419},{"class":366},[420],{"type":24,"value":421}," ",{"type":18,"tag":359,"props":423,"children":425},{"class":424},"ct-230043",[426],{"type":24,"value":427},"ActionGetCatImg",{"type":18,"tag":359,"props":429,"children":430},{"class":366},[431],{"type":24,"value":432},"(",{"type":18,"tag":359,"props":434,"children":435},{"class":424},[436],{"type":24,"value":437},"Action",{"type":18,"tag":359,"props":439,"children":440},{"class":366},[441],{"type":24,"value":442},"):\n",{"type":18,"tag":359,"props":444,"children":445},{"class":361,"line":170},[446,451,456,460,466,470,476],{"type":18,"tag":359,"props":447,"children":448},{"class":366},[449],{"type":24,"value":450},"    ",{"type":18,"tag":359,"props":452,"children":453},{"class":413},[454],{"type":24,"value":455},"def",{"type":18,"tag":359,"props":457,"children":458},{"class":366},[459],{"type":24,"value":421},{"type":18,"tag":359,"props":461,"children":463},{"class":462},"ct-578036",[464],{"type":24,"value":465},"name",{"type":18,"tag":359,"props":467,"children":468},{"class":366},[469],{"type":24,"value":432},{"type":18,"tag":359,"props":471,"children":473},{"class":472},"ct-230042",[474],{"type":24,"value":475},"self",{"type":18,"tag":359,"props":477,"children":478},{"class":366},[479],{"type":24,"value":480},") -> Text:\n",{"type":18,"tag":359,"props":482,"children":483},{"class":361,"line":167},[484,489,495,499],{"type":18,"tag":359,"props":485,"children":486},{"class":366},[487],{"type":24,"value":488},"        ",{"type":18,"tag":359,"props":490,"children":492},{"class":491},"ct-527674",[493],{"type":24,"value":494},"return",{"type":18,"tag":359,"props":496,"children":497},{"class":366},[498],{"type":24,"value":421},{"type":18,"tag":359,"props":500,"children":501},{"class":383},[502],{"type":24,"value":503},"\"action_cat_img\"\n",{"type":18,"tag":359,"props":505,"children":507},{"class":361,"line":506},4,[508],{"type":18,"tag":359,"props":509,"children":510},{},[511],{"type":24,"value":512},"\n",{"type":18,"tag":359,"props":514,"children":516},{"class":361,"line":515},5,[517,521,525,529,534,538,542,547,553,557,562,566,571],{"type":18,"tag":359,"props":518,"children":519},{"class":366},[520],{"type":24,"value":450},{"type":18,"tag":359,"props":522,"children":523},{"class":413},[524],{"type":24,"value":455},{"type":18,"tag":359,"props":526,"children":527},{"class":366},[528],{"type":24,"value":421},{"type":18,"tag":359,"props":530,"children":531},{"class":462},[532],{"type":24,"value":533},"run",{"type":18,"tag":359,"props":535,"children":536},{"class":366},[537],{"type":24,"value":432},{"type":18,"tag":359,"props":539,"children":540},{"class":472},[541],{"type":24,"value":475},{"type":18,"tag":359,"props":543,"children":544},{"class":366},[545],{"type":24,"value":546},", ",{"type":18,"tag":359,"props":548,"children":550},{"class":549},"ct-980423",[551],{"type":24,"value":552},"dispatcher",{"type":18,"tag":359,"props":554,"children":555},{"class":366},[556],{"type":24,"value":546},{"type":18,"tag":359,"props":558,"children":559},{"class":549},[560],{"type":24,"value":561},"tracker",{"type":18,"tag":359,"props":563,"children":564},{"class":366},[565],{"type":24,"value":546},{"type":18,"tag":359,"props":567,"children":568},{"class":549},[569],{"type":24,"value":570},"domain",{"type":18,"tag":359,"props":572,"children":573},{"class":366},[574],{"type":24,"value":442},{"type":18,"tag":359,"props":576,"children":578},{"class":361,"line":577},6,[579,584,588,593,598],{"type":18,"tag":359,"props":580,"children":581},{"class":366},[582],{"type":24,"value":583},"        request ",{"type":18,"tag":359,"props":585,"children":586},{"class":372},[587],{"type":24,"value":375},{"type":18,"tag":359,"props":589,"children":590},{"class":366},[591],{"type":24,"value":592}," json.",{"type":18,"tag":359,"props":594,"children":595},{"class":462},[596],{"type":24,"value":597},"loads",{"type":18,"tag":359,"props":599,"children":600},{"class":366},[601],{"type":24,"value":602},"(\n",{"type":18,"tag":359,"props":604,"children":606},{"class":361,"line":605},7,[607,612,617,621,626],{"type":18,"tag":359,"props":608,"children":609},{"class":366},[610],{"type":24,"value":611},"            requests.",{"type":18,"tag":359,"props":613,"children":614},{"class":462},[615],{"type":24,"value":616},"get",{"type":18,"tag":359,"props":618,"children":619},{"class":366},[620],{"type":24,"value":432},{"type":18,"tag":359,"props":622,"children":623},{"class":383},[624],{"type":24,"value":625},"\"https://some-random-api.ml/img/cat\"",{"type":18,"tag":359,"props":627,"children":628},{"class":366},[629],{"type":24,"value":630},").text\n",{"type":18,"tag":359,"props":632,"children":634},{"class":361,"line":633},8,[635],{"type":18,"tag":359,"props":636,"children":637},{"class":366},[638],{"type":24,"value":639},"        )\n",{"type":18,"tag":359,"props":641,"children":643},{"class":361,"line":642},9,[644,649,653,658,663],{"type":18,"tag":359,"props":645,"children":646},{"class":366},[647],{"type":24,"value":648},"        link ",{"type":18,"tag":359,"props":650,"children":651},{"class":372},[652],{"type":24,"value":375},{"type":18,"tag":359,"props":654,"children":655},{"class":366},[656],{"type":24,"value":657}," request[",{"type":18,"tag":359,"props":659,"children":660},{"class":383},[661],{"type":24,"value":662},"\"link\"",{"type":18,"tag":359,"props":664,"children":665},{"class":366},[666],{"type":24,"value":667},"]\n",{"type":18,"tag":359,"props":669,"children":671},{"class":361,"line":670},10,[672,677,682,686,691,695,700,705],{"type":18,"tag":359,"props":673,"children":674},{"class":366},[675],{"type":24,"value":676},"        dispatcher.",{"type":18,"tag":359,"props":678,"children":679},{"class":462},[680],{"type":24,"value":681},"utter_message",{"type":18,"tag":359,"props":683,"children":684},{"class":366},[685],{"type":24,"value":432},{"type":18,"tag":359,"props":687,"children":689},{"class":688},"ct-815944",[690],{"type":24,"value":24},{"type":18,"tag":359,"props":692,"children":693},{"class":372},[694],{"type":24,"value":375},{"type":18,"tag":359,"props":696,"children":697},{"class":413},[698],{"type":24,"value":699},"f",{"type":18,"tag":359,"props":701,"children":702},{"class":383},[703],{"type":24,"value":704},"\"Look how cute she is...😸😸😸\"",{"type":18,"tag":359,"props":706,"children":707},{"class":366},[708],{"type":24,"value":709},")\n",{"type":18,"tag":359,"props":711,"children":713},{"class":361,"line":712},11,[714,718,722,726,731,735],{"type":18,"tag":359,"props":715,"children":716},{"class":366},[717],{"type":24,"value":676},{"type":18,"tag":359,"props":719,"children":720},{"class":462},[721],{"type":24,"value":681},{"type":18,"tag":359,"props":723,"children":724},{"class":366},[725],{"type":24,"value":432},{"type":18,"tag":359,"props":727,"children":728},{"class":688},[729],{"type":24,"value":730},"image",{"type":18,"tag":359,"props":732,"children":733},{"class":372},[734],{"type":24,"value":375},{"type":18,"tag":359,"props":736,"children":737},{"class":366},[738],{"type":24,"value":739},"link)\n",{"type":18,"tag":359,"props":741,"children":743},{"class":361,"line":742},12,[744,748,752],{"type":18,"tag":359,"props":745,"children":746},{"class":366},[747],{"type":24,"value":488},{"type":18,"tag":359,"props":749,"children":750},{"class":491},[751],{"type":24,"value":494},{"type":18,"tag":359,"props":753,"children":754},{"class":366},[755],{"type":24,"value":756}," []",{"type":18,"tag":27,"props":758,"children":759},{},[760],{"type":24,"value":761},"In this class, def name is for rasa to recognise this class, it return the custom action name. So the rasa knows if the bot were to run 'action_cat_img', it would run this class. And def run function is the actual implementation of the custom actions. I think the first function is like a identifier, the second one is like the actual body. The implementation is the same for returning dog images.",{"type":18,"tag":27,"props":763,"children":764},{},[765],{"type":24,"value":766},"Below is more complicated example. But it is similar, What I am trying to do is to pull travel images.",{"type":18,"tag":316,"props":768,"children":771},{"className":769,"code":770,"language":349,"meta":8},[347],"class ActionGetScenicImg(Action):\r\n    def name(self) -> Text:\r\n        return \"action_scenic_img\"\r\n\r\n    def run(self, dispatcher, tracker, domain):\r\n        request = json.loads(\r\n            requests.get(\"https://pixabay.com/api/?key=26374413-8b2996e47a5dc876f623bbab4&category=travel&image_type=photo&pretty=true&per_page=3\").text\r\n        )\r\n        image_group = request[\"hits\"]\r\n        image0=image_group[0][\"largeImageURL\"]\r\n        image1=image_group[1][\"largeImageURL\"]\r\n        dispatcher.utter_message(image=image0)\r\n        dispatcher.utter_message(image=image1)\r\n        return []\n",[772],{"type":18,"tag":352,"props":773,"children":774},{},[775],{"type":18,"tag":316,"props":776,"children":777},{"__ignoreMap":8},[778,806,837,857,864,919,942,966,973,998,1035,1068,1096,1125],{"type":18,"tag":359,"props":779,"children":780},{"class":361,"line":362},[781,785,789,794,798,802],{"type":18,"tag":359,"props":782,"children":783},{"class":413},[784],{"type":24,"value":416},{"type":18,"tag":359,"props":786,"children":787},{"class":366},[788],{"type":24,"value":421},{"type":18,"tag":359,"props":790,"children":791},{"class":424},[792],{"type":24,"value":793},"ActionGetScenicImg",{"type":18,"tag":359,"props":795,"children":796},{"class":366},[797],{"type":24,"value":432},{"type":18,"tag":359,"props":799,"children":800},{"class":424},[801],{"type":24,"value":437},{"type":18,"tag":359,"props":803,"children":804},{"class":366},[805],{"type":24,"value":442},{"type":18,"tag":359,"props":807,"children":808},{"class":361,"line":170},[809,813,817,821,825,829,833],{"type":18,"tag":359,"props":810,"children":811},{"class":366},[812],{"type":24,"value":450},{"type":18,"tag":359,"props":814,"children":815},{"class":413},[816],{"type":24,"value":455},{"type":18,"tag":359,"props":818,"children":819},{"class":366},[820],{"type":24,"value":421},{"type":18,"tag":359,"props":822,"children":823},{"class":462},[824],{"type":24,"value":465},{"type":18,"tag":359,"props":826,"children":827},{"class":366},[828],{"type":24,"value":432},{"type":18,"tag":359,"props":830,"children":831},{"class":472},[832],{"type":24,"value":475},{"type":18,"tag":359,"props":834,"children":835},{"class":366},[836],{"type":24,"value":480},{"type":18,"tag":359,"props":838,"children":839},{"class":361,"line":167},[840,844,848,852],{"type":18,"tag":359,"props":841,"children":842},{"class":366},[843],{"type":24,"value":488},{"type":18,"tag":359,"props":845,"children":846},{"class":491},[847],{"type":24,"value":494},{"type":18,"tag":359,"props":849,"children":850},{"class":366},[851],{"type":24,"value":421},{"type":18,"tag":359,"props":853,"children":854},{"class":383},[855],{"type":24,"value":856},"\"action_scenic_img\"\n",{"type":18,"tag":359,"props":858,"children":859},{"class":361,"line":506},[860],{"type":18,"tag":359,"props":861,"children":862},{},[863],{"type":24,"value":512},{"type":18,"tag":359,"props":865,"children":866},{"class":361,"line":515},[867,871,875,879,883,887,891,895,899,903,907,911,915],{"type":18,"tag":359,"props":868,"children":869},{"class":366},[870],{"type":24,"value":450},{"type":18,"tag":359,"props":872,"children":873},{"class":413},[874],{"type":24,"value":455},{"type":18,"tag":359,"props":876,"children":877},{"class":366},[878],{"type":24,"value":421},{"type":18,"tag":359,"props":880,"children":881},{"class":462},[882],{"type":24,"value":533},{"type":18,"tag":359,"props":884,"children":885},{"class":366},[886],{"type":24,"value":432},{"type":18,"tag":359,"props":888,"children":889},{"class":472},[890],{"type":24,"value":475},{"type":18,"tag":359,"props":892,"children":893},{"class":366},[894],{"type":24,"value":546},{"type":18,"tag":359,"props":896,"children":897},{"class":549},[898],{"type":24,"value":552},{"type":18,"tag":359,"props":900,"children":901},{"class":366},[902],{"type":24,"value":546},{"type":18,"tag":359,"props":904,"children":905},{"class":549},[906],{"type":24,"value":561},{"type":18,"tag":359,"props":908,"children":909},{"class":366},[910],{"type":24,"value":546},{"type":18,"tag":359,"props":912,"children":913},{"class":549},[914],{"type":24,"value":570},{"type":18,"tag":359,"props":916,"children":917},{"class":366},[918],{"type":24,"value":442},{"type":18,"tag":359,"props":920,"children":921},{"class":361,"line":577},[922,926,930,934,938],{"type":18,"tag":359,"props":923,"children":924},{"class":366},[925],{"type":24,"value":583},{"type":18,"tag":359,"props":927,"children":928},{"class":372},[929],{"type":24,"value":375},{"type":18,"tag":359,"props":931,"children":932},{"class":366},[933],{"type":24,"value":592},{"type":18,"tag":359,"props":935,"children":936},{"class":462},[937],{"type":24,"value":597},{"type":18,"tag":359,"props":939,"children":940},{"class":366},[941],{"type":24,"value":602},{"type":18,"tag":359,"props":943,"children":944},{"class":361,"line":605},[945,949,953,957,962],{"type":18,"tag":359,"props":946,"children":947},{"class":366},[948],{"type":24,"value":611},{"type":18,"tag":359,"props":950,"children":951},{"class":462},[952],{"type":24,"value":616},{"type":18,"tag":359,"props":954,"children":955},{"class":366},[956],{"type":24,"value":432},{"type":18,"tag":359,"props":958,"children":959},{"class":383},[960],{"type":24,"value":961},"\"https://pixabay.com/api/?key=26374413-8b2996e47a5dc876f623bbab4&category=travel&image_type=photo&pretty=true&per_page=3\"",{"type":18,"tag":359,"props":963,"children":964},{"class":366},[965],{"type":24,"value":630},{"type":18,"tag":359,"props":967,"children":968},{"class":361,"line":633},[969],{"type":18,"tag":359,"props":970,"children":971},{"class":366},[972],{"type":24,"value":639},{"type":18,"tag":359,"props":974,"children":975},{"class":361,"line":642},[976,981,985,989,994],{"type":18,"tag":359,"props":977,"children":978},{"class":366},[979],{"type":24,"value":980},"        image_group ",{"type":18,"tag":359,"props":982,"children":983},{"class":372},[984],{"type":24,"value":375},{"type":18,"tag":359,"props":986,"children":987},{"class":366},[988],{"type":24,"value":657},{"type":18,"tag":359,"props":990,"children":991},{"class":383},[992],{"type":24,"value":993},"\"hits\"",{"type":18,"tag":359,"props":995,"children":996},{"class":366},[997],{"type":24,"value":667},{"type":18,"tag":359,"props":999,"children":1000},{"class":361,"line":670},[1001,1006,1010,1015,1021,1026,1031],{"type":18,"tag":359,"props":1002,"children":1003},{"class":366},[1004],{"type":24,"value":1005},"        image0",{"type":18,"tag":359,"props":1007,"children":1008},{"class":372},[1009],{"type":24,"value":375},{"type":18,"tag":359,"props":1011,"children":1012},{"class":366},[1013],{"type":24,"value":1014},"image_group[",{"type":18,"tag":359,"props":1016,"children":1018},{"class":1017},"ct-980424",[1019],{"type":24,"value":1020},"0",{"type":18,"tag":359,"props":1022,"children":1023},{"class":366},[1024],{"type":24,"value":1025},"][",{"type":18,"tag":359,"props":1027,"children":1028},{"class":383},[1029],{"type":24,"value":1030},"\"largeImageURL\"",{"type":18,"tag":359,"props":1032,"children":1033},{"class":366},[1034],{"type":24,"value":667},{"type":18,"tag":359,"props":1036,"children":1037},{"class":361,"line":712},[1038,1043,1047,1051,1056,1060,1064],{"type":18,"tag":359,"props":1039,"children":1040},{"class":366},[1041],{"type":24,"value":1042},"        image1",{"type":18,"tag":359,"props":1044,"children":1045},{"class":372},[1046],{"type":24,"value":375},{"type":18,"tag":359,"props":1048,"children":1049},{"class":366},[1050],{"type":24,"value":1014},{"type":18,"tag":359,"props":1052,"children":1053},{"class":1017},[1054],{"type":24,"value":1055},"1",{"type":18,"tag":359,"props":1057,"children":1058},{"class":366},[1059],{"type":24,"value":1025},{"type":18,"tag":359,"props":1061,"children":1062},{"class":383},[1063],{"type":24,"value":1030},{"type":18,"tag":359,"props":1065,"children":1066},{"class":366},[1067],{"type":24,"value":667},{"type":18,"tag":359,"props":1069,"children":1070},{"class":361,"line":742},[1071,1075,1079,1083,1087,1091],{"type":18,"tag":359,"props":1072,"children":1073},{"class":366},[1074],{"type":24,"value":676},{"type":18,"tag":359,"props":1076,"children":1077},{"class":462},[1078],{"type":24,"value":681},{"type":18,"tag":359,"props":1080,"children":1081},{"class":366},[1082],{"type":24,"value":432},{"type":18,"tag":359,"props":1084,"children":1085},{"class":688},[1086],{"type":24,"value":730},{"type":18,"tag":359,"props":1088,"children":1089},{"class":372},[1090],{"type":24,"value":375},{"type":18,"tag":359,"props":1092,"children":1093},{"class":366},[1094],{"type":24,"value":1095},"image0)\n",{"type":18,"tag":359,"props":1097,"children":1099},{"class":361,"line":1098},13,[1100,1104,1108,1112,1116,1120],{"type":18,"tag":359,"props":1101,"children":1102},{"class":366},[1103],{"type":24,"value":676},{"type":18,"tag":359,"props":1105,"children":1106},{"class":462},[1107],{"type":24,"value":681},{"type":18,"tag":359,"props":1109,"children":1110},{"class":366},[1111],{"type":24,"value":432},{"type":18,"tag":359,"props":1113,"children":1114},{"class":688},[1115],{"type":24,"value":730},{"type":18,"tag":359,"props":1117,"children":1118},{"class":372},[1119],{"type":24,"value":375},{"type":18,"tag":359,"props":1121,"children":1122},{"class":366},[1123],{"type":24,"value":1124},"image1)\n",{"type":18,"tag":359,"props":1126,"children":1128},{"class":361,"line":1127},14,[1129,1133,1137],{"type":18,"tag":359,"props":1130,"children":1131},{"class":366},[1132],{"type":24,"value":488},{"type":18,"tag":359,"props":1134,"children":1135},{"class":491},[1136],{"type":24,"value":494},{"type":18,"tag":359,"props":1138,"children":1139},{"class":366},[1140],{"type":24,"value":756},{"type":18,"tag":27,"props":1142,"children":1143},{},[1144],{"type":24,"value":1145},"Similarly, Pulling text jokes",{"type":18,"tag":316,"props":1147,"children":1150},{"className":1148,"code":1149,"language":349,"meta":8},[347],"class ActionGeek(Action):\r\n    def name(self) -> Text:\r\n        return \"action_geek\"\r\n\r\n    def run(self, dispatcher, tracker, domain):\r\n        request = json.loads(\r\n            requests.get(\"http://quotes.stormconsultancy.co.uk/random.json\").text\r\n        )\r\n        author = request[\"author\"]\r\n        quote = request[\"quote\"]\r\n        ##permalink = request[\"permalink\"]\r\n\r\n        message = \"'\" + quote + \"'\"## \" - [\" + author + \"]\" ##(\" + permalink + \")\"\r\n        dispatcher.utter_message(message)\r\n        return []\n",[1151],{"type":18,"tag":352,"props":1152,"children":1153},{},[1154],{"type":18,"tag":316,"props":1155,"children":1156},{"__ignoreMap":8},[1157,1185,1216,1236,1243,1298,1321,1345,1352,1377,1402,1415,1422,1474,1490],{"type":18,"tag":359,"props":1158,"children":1159},{"class":361,"line":362},[1160,1164,1168,1173,1177,1181],{"type":18,"tag":359,"props":1161,"children":1162},{"class":413},[1163],{"type":24,"value":416},{"type":18,"tag":359,"props":1165,"children":1166},{"class":366},[1167],{"type":24,"value":421},{"type":18,"tag":359,"props":1169,"children":1170},{"class":424},[1171],{"type":24,"value":1172},"ActionGeek",{"type":18,"tag":359,"props":1174,"children":1175},{"class":366},[1176],{"type":24,"value":432},{"type":18,"tag":359,"props":1178,"children":1179},{"class":424},[1180],{"type":24,"value":437},{"type":18,"tag":359,"props":1182,"children":1183},{"class":366},[1184],{"type":24,"value":442},{"type":18,"tag":359,"props":1186,"children":1187},{"class":361,"line":170},[1188,1192,1196,1200,1204,1208,1212],{"type":18,"tag":359,"props":1189,"children":1190},{"class":366},[1191],{"type":24,"value":450},{"type":18,"tag":359,"props":1193,"children":1194},{"class":413},[1195],{"type":24,"value":455},{"type":18,"tag":359,"props":1197,"children":1198},{"class":366},[1199],{"type":24,"value":421},{"type":18,"tag":359,"props":1201,"children":1202},{"class":462},[1203],{"type":24,"value":465},{"type":18,"tag":359,"props":1205,"children":1206},{"class":366},[1207],{"type":24,"value":432},{"type":18,"tag":359,"props":1209,"children":1210},{"class":472},[1211],{"type":24,"value":475},{"type":18,"tag":359,"props":1213,"children":1214},{"class":366},[1215],{"type":24,"value":480},{"type":18,"tag":359,"props":1217,"children":1218},{"class":361,"line":167},[1219,1223,1227,1231],{"type":18,"tag":359,"props":1220,"children":1221},{"class":366},[1222],{"type":24,"value":488},{"type":18,"tag":359,"props":1224,"children":1225},{"class":491},[1226],{"type":24,"value":494},{"type":18,"tag":359,"props":1228,"children":1229},{"class":366},[1230],{"type":24,"value":421},{"type":18,"tag":359,"props":1232,"children":1233},{"class":383},[1234],{"type":24,"value":1235},"\"action_geek\"\n",{"type":18,"tag":359,"props":1237,"children":1238},{"class":361,"line":506},[1239],{"type":18,"tag":359,"props":1240,"children":1241},{},[1242],{"type":24,"value":512},{"type":18,"tag":359,"props":1244,"children":1245},{"class":361,"line":515},[1246,1250,1254,1258,1262,1266,1270,1274,1278,1282,1286,1290,1294],{"type":18,"tag":359,"props":1247,"children":1248},{"class":366},[1249],{"type":24,"value":450},{"type":18,"tag":359,"props":1251,"children":1252},{"class":413},[1253],{"type":24,"value":455},{"type":18,"tag":359,"props":1255,"children":1256},{"class":366},[1257],{"type":24,"value":421},{"type":18,"tag":359,"props":1259,"children":1260},{"class":462},[1261],{"type":24,"value":533},{"type":18,"tag":359,"props":1263,"children":1264},{"class":366},[1265],{"type":24,"value":432},{"type":18,"tag":359,"props":1267,"children":1268},{"class":472},[1269],{"type":24,"value":475},{"type":18,"tag":359,"props":1271,"children":1272},{"class":366},[1273],{"type":24,"value":546},{"type":18,"tag":359,"props":1275,"children":1276},{"class":549},[1277],{"type":24,"value":552},{"type":18,"tag":359,"props":1279,"children":1280},{"class":366},[1281],{"type":24,"value":546},{"type":18,"tag":359,"props":1283,"children":1284},{"class":549},[1285],{"type":24,"value":561},{"type":18,"tag":359,"props":1287,"children":1288},{"class":366},[1289],{"type":24,"value":546},{"type":18,"tag":359,"props":1291,"children":1292},{"class":549},[1293],{"type":24,"value":570},{"type":18,"tag":359,"props":1295,"children":1296},{"class":366},[1297],{"type":24,"value":442},{"type":18,"tag":359,"props":1299,"children":1300},{"class":361,"line":577},[1301,1305,1309,1313,1317],{"type":18,"tag":359,"props":1302,"children":1303},{"class":366},[1304],{"type":24,"value":583},{"type":18,"tag":359,"props":1306,"children":1307},{"class":372},[1308],{"type":24,"value":375},{"type":18,"tag":359,"props":1310,"children":1311},{"class":366},[1312],{"type":24,"value":592},{"type":18,"tag":359,"props":1314,"children":1315},{"class":462},[1316],{"type":24,"value":597},{"type":18,"tag":359,"props":1318,"children":1319},{"class":366},[1320],{"type":24,"value":602},{"type":18,"tag":359,"props":1322,"children":1323},{"class":361,"line":605},[1324,1328,1332,1336,1341],{"type":18,"tag":359,"props":1325,"children":1326},{"class":366},[1327],{"type":24,"value":611},{"type":18,"tag":359,"props":1329,"children":1330},{"class":462},[1331],{"type":24,"value":616},{"type":18,"tag":359,"props":1333,"children":1334},{"class":366},[1335],{"type":24,"value":432},{"type":18,"tag":359,"props":1337,"children":1338},{"class":383},[1339],{"type":24,"value":1340},"\"http://quotes.stormconsultancy.co.uk/random.json\"",{"type":18,"tag":359,"props":1342,"children":1343},{"class":366},[1344],{"type":24,"value":630},{"type":18,"tag":359,"props":1346,"children":1347},{"class":361,"line":633},[1348],{"type":18,"tag":359,"props":1349,"children":1350},{"class":366},[1351],{"type":24,"value":639},{"type":18,"tag":359,"props":1353,"children":1354},{"class":361,"line":642},[1355,1360,1364,1368,1373],{"type":18,"tag":359,"props":1356,"children":1357},{"class":366},[1358],{"type":24,"value":1359},"        author ",{"type":18,"tag":359,"props":1361,"children":1362},{"class":372},[1363],{"type":24,"value":375},{"type":18,"tag":359,"props":1365,"children":1366},{"class":366},[1367],{"type":24,"value":657},{"type":18,"tag":359,"props":1369,"children":1370},{"class":383},[1371],{"type":24,"value":1372},"\"author\"",{"type":18,"tag":359,"props":1374,"children":1375},{"class":366},[1376],{"type":24,"value":667},{"type":18,"tag":359,"props":1378,"children":1379},{"class":361,"line":670},[1380,1385,1389,1393,1398],{"type":18,"tag":359,"props":1381,"children":1382},{"class":366},[1383],{"type":24,"value":1384},"        quote ",{"type":18,"tag":359,"props":1386,"children":1387},{"class":372},[1388],{"type":24,"value":375},{"type":18,"tag":359,"props":1390,"children":1391},{"class":366},[1392],{"type":24,"value":657},{"type":18,"tag":359,"props":1394,"children":1395},{"class":383},[1396],{"type":24,"value":1397},"\"quote\"",{"type":18,"tag":359,"props":1399,"children":1400},{"class":366},[1401],{"type":24,"value":667},{"type":18,"tag":359,"props":1403,"children":1404},{"class":361,"line":712},[1405,1409],{"type":18,"tag":359,"props":1406,"children":1407},{"class":366},[1408],{"type":24,"value":488},{"type":18,"tag":359,"props":1410,"children":1412},{"class":1411},"ct-277366",[1413],{"type":24,"value":1414},"##permalink = request[\"permalink\"]\n",{"type":18,"tag":359,"props":1416,"children":1417},{"class":361,"line":742},[1418],{"type":18,"tag":359,"props":1419,"children":1420},{},[1421],{"type":24,"value":512},{"type":18,"tag":359,"props":1423,"children":1424},{"class":361,"line":1098},[1425,1430,1434,1438,1443,1447,1452,1457,1461,1465,1469],{"type":18,"tag":359,"props":1426,"children":1427},{"class":366},[1428],{"type":24,"value":1429},"        message ",{"type":18,"tag":359,"props":1431,"children":1432},{"class":372},[1433],{"type":24,"value":375},{"type":18,"tag":359,"props":1435,"children":1436},{"class":366},[1437],{"type":24,"value":421},{"type":18,"tag":359,"props":1439,"children":1440},{"class":383},[1441],{"type":24,"value":1442},"\"'\"",{"type":18,"tag":359,"props":1444,"children":1445},{"class":366},[1446],{"type":24,"value":421},{"type":18,"tag":359,"props":1448,"children":1449},{"class":372},[1450],{"type":24,"value":1451},"+",{"type":18,"tag":359,"props":1453,"children":1454},{"class":366},[1455],{"type":24,"value":1456}," quote ",{"type":18,"tag":359,"props":1458,"children":1459},{"class":372},[1460],{"type":24,"value":1451},{"type":18,"tag":359,"props":1462,"children":1463},{"class":366},[1464],{"type":24,"value":421},{"type":18,"tag":359,"props":1466,"children":1467},{"class":383},[1468],{"type":24,"value":1442},{"type":18,"tag":359,"props":1470,"children":1471},{"class":1411},[1472],{"type":24,"value":1473},"## \" - [\" + author + \"]\" ##(\" + permalink + \")\"\n",{"type":18,"tag":359,"props":1475,"children":1476},{"class":361,"line":1127},[1477,1481,1485],{"type":18,"tag":359,"props":1478,"children":1479},{"class":366},[1480],{"type":24,"value":676},{"type":18,"tag":359,"props":1482,"children":1483},{"class":462},[1484],{"type":24,"value":681},{"type":18,"tag":359,"props":1486,"children":1487},{"class":366},[1488],{"type":24,"value":1489},"(message)\n",{"type":18,"tag":359,"props":1491,"children":1493},{"class":361,"line":1492},15,[1494,1498,1502],{"type":18,"tag":359,"props":1495,"children":1496},{"class":366},[1497],{"type":24,"value":488},{"type":18,"tag":359,"props":1499,"children":1500},{"class":491},[1501],{"type":24,"value":494},{"type":18,"tag":359,"props":1503,"children":1504},{"class":366},[1505],{"type":24,"value":756},{"type":18,"tag":333,"props":1507,"children":1509},{"id":1508},"dealing-with-time-storing-printing",[1510],{"type":24,"value":1511},"Dealing with time/ storing/ printing",{"type":18,"tag":27,"props":1513,"children":1514},{},[1515],{"type":24,"value":1516},"In this part, I try to make the bot greet to the time of the day, say good morning good afternoon and good evening. also return a time , date in a organised, user friendly format ⬇️.",{"type":18,"tag":316,"props":1518,"children":1521},{"className":1519,"code":1520,"language":349,"meta":8},[347],"class GreetTimeofDay(Action):\r\n    def name(self) -> Text:\r\n        return \"action_greet_timeofday\"\r\n    def run(self, dispatcher: CollectingDispatcher,\r\n                tracker: Tracker,\r\n                domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:\r\n\r\n            dt=datetime.datetime.now()\r\n            if dt.hour \u003C 12:\r\n                dispatcher.utter_message(text=f\"Good Morning!\")\r\n            elif (dt.hour >= 12) and (dt.hour \u003C5):\r\n                dispatcher.utter_message(text=f\"Good Afternoon!\")\r\n            else:\r\n                dispatcher.utter_message(text=f\"Good Evening!\")\r\n\r\n            return []\r\n\r\nclass ReturnDate(Action):\r\n    def name(self) -> Text:\r\n        return \"action_show_time\"\r\n    def run(self, dispatcher: CollectingDispatcher,\r\n                tracker: Tracker,\r\n                domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:\r\n\r\n            dt=datetime.datetime.now()\r\n            fullmonth=dt.strftime(\"%B\")\r\n            fullweekday=dt.strftime(\"%A\")\r\n            if ((dt.hour//10)\u003C1) and ((dt.minute//10)\u003C1):\r\n                dispatcher.utter_message(text=f\"Today is {fullweekday} {dt.day}th of {fullmonth}, the time now is 0{dt.hour}:0{dt.minute}.\")\r\n            elif (dt.minute//10)\u003C1:\r\n                dispatcher.utter_message(text=f\"Today is {fullweekday} {dt.day}th of {fullmonth}, the time now is {dt.hour}:0{dt.minute}.\")\r\n            elif (dt.hour//10)\u003C1:\r\n                dispatcher.utter_message(text=f\"Today is {fullweekday} {dt.day}th of {fullmonth}, the time now is 0{dt.hour}:{dt.minute}.\")\r\n            else:\r\n                dispatcher.utter_message(text=f\"Today is {fullweekday} {dt.day}th of {fullmonth}, the time now is {dt.hour}:{dt.minute}.\")\r\n            return []\n",[1522],{"type":18,"tag":352,"props":1523,"children":1524},{},[1525],{"type":18,"tag":316,"props":1526,"children":1527},{"__ignoreMap":8},[1528,1556,1587,1607,1647,1664,1680,1687,1714,1751,1788,1845,1881,1897,1933,1940,1957,1965,1994,2026,2047,2087,2103,2119,2127,2151,2187,2221,2298,2426,2467,2584,2625,2742,2758,2874],{"type":18,"tag":359,"props":1529,"children":1530},{"class":361,"line":362},[1531,1535,1539,1544,1548,1552],{"type":18,"tag":359,"props":1532,"children":1533},{"class":413},[1534],{"type":24,"value":416},{"type":18,"tag":359,"props":1536,"children":1537},{"class":366},[1538],{"type":24,"value":421},{"type":18,"tag":359,"props":1540,"children":1541},{"class":424},[1542],{"type":24,"value":1543},"GreetTimeofDay",{"type":18,"tag":359,"props":1545,"children":1546},{"class":366},[1547],{"type":24,"value":432},{"type":18,"tag":359,"props":1549,"children":1550},{"class":424},[1551],{"type":24,"value":437},{"type":18,"tag":359,"props":1553,"children":1554},{"class":366},[1555],{"type":24,"value":442},{"type":18,"tag":359,"props":1557,"children":1558},{"class":361,"line":170},[1559,1563,1567,1571,1575,1579,1583],{"type":18,"tag":359,"props":1560,"children":1561},{"class":366},[1562],{"type":24,"value":450},{"type":18,"tag":359,"props":1564,"children":1565},{"class":413},[1566],{"type":24,"value":455},{"type":18,"tag":359,"props":1568,"children":1569},{"class":366},[1570],{"type":24,"value":421},{"type":18,"tag":359,"props":1572,"children":1573},{"class":462},[1574],{"type":24,"value":465},{"type":18,"tag":359,"props":1576,"children":1577},{"class":366},[1578],{"type":24,"value":432},{"type":18,"tag":359,"props":1580,"children":1581},{"class":472},[1582],{"type":24,"value":475},{"type":18,"tag":359,"props":1584,"children":1585},{"class":366},[1586],{"type":24,"value":480},{"type":18,"tag":359,"props":1588,"children":1589},{"class":361,"line":167},[1590,1594,1598,1602],{"type":18,"tag":359,"props":1591,"children":1592},{"class":366},[1593],{"type":24,"value":488},{"type":18,"tag":359,"props":1595,"children":1596},{"class":491},[1597],{"type":24,"value":494},{"type":18,"tag":359,"props":1599,"children":1600},{"class":366},[1601],{"type":24,"value":421},{"type":18,"tag":359,"props":1603,"children":1604},{"class":383},[1605],{"type":24,"value":1606},"\"action_greet_timeofday\"\n",{"type":18,"tag":359,"props":1608,"children":1609},{"class":361,"line":506},[1610,1614,1618,1622,1626,1630,1634,1638,1642],{"type":18,"tag":359,"props":1611,"children":1612},{"class":366},[1613],{"type":24,"value":450},{"type":18,"tag":359,"props":1615,"children":1616},{"class":413},[1617],{"type":24,"value":455},{"type":18,"tag":359,"props":1619,"children":1620},{"class":366},[1621],{"type":24,"value":421},{"type":18,"tag":359,"props":1623,"children":1624},{"class":462},[1625],{"type":24,"value":533},{"type":18,"tag":359,"props":1627,"children":1628},{"class":366},[1629],{"type":24,"value":432},{"type":18,"tag":359,"props":1631,"children":1632},{"class":472},[1633],{"type":24,"value":475},{"type":18,"tag":359,"props":1635,"children":1636},{"class":366},[1637],{"type":24,"value":546},{"type":18,"tag":359,"props":1639,"children":1640},{"class":549},[1641],{"type":24,"value":552},{"type":18,"tag":359,"props":1643,"children":1644},{"class":366},[1645],{"type":24,"value":1646},": CollectingDispatcher,\n",{"type":18,"tag":359,"props":1648,"children":1649},{"class":361,"line":515},[1650,1655,1659],{"type":18,"tag":359,"props":1651,"children":1652},{"class":366},[1653],{"type":24,"value":1654},"                ",{"type":18,"tag":359,"props":1656,"children":1657},{"class":549},[1658],{"type":24,"value":561},{"type":18,"tag":359,"props":1660,"children":1661},{"class":366},[1662],{"type":24,"value":1663},": Tracker,\n",{"type":18,"tag":359,"props":1665,"children":1666},{"class":361,"line":577},[1667,1671,1675],{"type":18,"tag":359,"props":1668,"children":1669},{"class":366},[1670],{"type":24,"value":1654},{"type":18,"tag":359,"props":1672,"children":1673},{"class":549},[1674],{"type":24,"value":570},{"type":18,"tag":359,"props":1676,"children":1677},{"class":366},[1678],{"type":24,"value":1679},": Dict[Text, Any]) -> List[Dict[Text, Any]]:\n",{"type":18,"tag":359,"props":1681,"children":1682},{"class":361,"line":605},[1683],{"type":18,"tag":359,"props":1684,"children":1685},{},[1686],{"type":24,"value":512},{"type":18,"tag":359,"props":1688,"children":1689},{"class":361,"line":633},[1690,1695,1699,1704,1709],{"type":18,"tag":359,"props":1691,"children":1692},{"class":366},[1693],{"type":24,"value":1694},"            dt",{"type":18,"tag":359,"props":1696,"children":1697},{"class":372},[1698],{"type":24,"value":375},{"type":18,"tag":359,"props":1700,"children":1701},{"class":366},[1702],{"type":24,"value":1703},"datetime.datetime.",{"type":18,"tag":359,"props":1705,"children":1706},{"class":462},[1707],{"type":24,"value":1708},"now",{"type":18,"tag":359,"props":1710,"children":1711},{"class":366},[1712],{"type":24,"value":1713},"()\n",{"type":18,"tag":359,"props":1715,"children":1716},{"class":361,"line":642},[1717,1722,1727,1732,1737,1741,1746],{"type":18,"tag":359,"props":1718,"children":1719},{"class":366},[1720],{"type":24,"value":1721},"            ",{"type":18,"tag":359,"props":1723,"children":1724},{"class":491},[1725],{"type":24,"value":1726},"if",{"type":18,"tag":359,"props":1728,"children":1729},{"class":366},[1730],{"type":24,"value":1731}," dt.hour ",{"type":18,"tag":359,"props":1733,"children":1734},{"class":372},[1735],{"type":24,"value":1736},"\u003C",{"type":18,"tag":359,"props":1738,"children":1739},{"class":366},[1740],{"type":24,"value":421},{"type":18,"tag":359,"props":1742,"children":1743},{"class":1017},[1744],{"type":24,"value":1745},"12",{"type":18,"tag":359,"props":1747,"children":1748},{"class":366},[1749],{"type":24,"value":1750},":\n",{"type":18,"tag":359,"props":1752,"children":1753},{"class":361,"line":670},[1754,1759,1763,1767,1771,1775,1779,1784],{"type":18,"tag":359,"props":1755,"children":1756},{"class":366},[1757],{"type":24,"value":1758},"                dispatcher.",{"type":18,"tag":359,"props":1760,"children":1761},{"class":462},[1762],{"type":24,"value":681},{"type":18,"tag":359,"props":1764,"children":1765},{"class":366},[1766],{"type":24,"value":432},{"type":18,"tag":359,"props":1768,"children":1769},{"class":688},[1770],{"type":24,"value":24},{"type":18,"tag":359,"props":1772,"children":1773},{"class":372},[1774],{"type":24,"value":375},{"type":18,"tag":359,"props":1776,"children":1777},{"class":413},[1778],{"type":24,"value":699},{"type":18,"tag":359,"props":1780,"children":1781},{"class":383},[1782],{"type":24,"value":1783},"\"Good Morning!\"",{"type":18,"tag":359,"props":1785,"children":1786},{"class":366},[1787],{"type":24,"value":709},{"type":18,"tag":359,"props":1789,"children":1790},{"class":361,"line":712},[1791,1795,1800,1805,1810,1814,1818,1823,1828,1832,1836,1841],{"type":18,"tag":359,"props":1792,"children":1793},{"class":366},[1794],{"type":24,"value":1721},{"type":18,"tag":359,"props":1796,"children":1797},{"class":491},[1798],{"type":24,"value":1799},"elif",{"type":18,"tag":359,"props":1801,"children":1802},{"class":366},[1803],{"type":24,"value":1804}," (dt.hour ",{"type":18,"tag":359,"props":1806,"children":1807},{"class":372},[1808],{"type":24,"value":1809},">=",{"type":18,"tag":359,"props":1811,"children":1812},{"class":366},[1813],{"type":24,"value":421},{"type":18,"tag":359,"props":1815,"children":1816},{"class":1017},[1817],{"type":24,"value":1745},{"type":18,"tag":359,"props":1819,"children":1820},{"class":366},[1821],{"type":24,"value":1822},") ",{"type":18,"tag":359,"props":1824,"children":1825},{"class":491},[1826],{"type":24,"value":1827},"and",{"type":18,"tag":359,"props":1829,"children":1830},{"class":366},[1831],{"type":24,"value":1804},{"type":18,"tag":359,"props":1833,"children":1834},{"class":372},[1835],{"type":24,"value":1736},{"type":18,"tag":359,"props":1837,"children":1838},{"class":1017},[1839],{"type":24,"value":1840},"5",{"type":18,"tag":359,"props":1842,"children":1843},{"class":366},[1844],{"type":24,"value":442},{"type":18,"tag":359,"props":1846,"children":1847},{"class":361,"line":742},[1848,1852,1856,1860,1864,1868,1872,1877],{"type":18,"tag":359,"props":1849,"children":1850},{"class":366},[1851],{"type":24,"value":1758},{"type":18,"tag":359,"props":1853,"children":1854},{"class":462},[1855],{"type":24,"value":681},{"type":18,"tag":359,"props":1857,"children":1858},{"class":366},[1859],{"type":24,"value":432},{"type":18,"tag":359,"props":1861,"children":1862},{"class":688},[1863],{"type":24,"value":24},{"type":18,"tag":359,"props":1865,"children":1866},{"class":372},[1867],{"type":24,"value":375},{"type":18,"tag":359,"props":1869,"children":1870},{"class":413},[1871],{"type":24,"value":699},{"type":18,"tag":359,"props":1873,"children":1874},{"class":383},[1875],{"type":24,"value":1876},"\"Good Afternoon!\"",{"type":18,"tag":359,"props":1878,"children":1879},{"class":366},[1880],{"type":24,"value":709},{"type":18,"tag":359,"props":1882,"children":1883},{"class":361,"line":1098},[1884,1888,1893],{"type":18,"tag":359,"props":1885,"children":1886},{"class":366},[1887],{"type":24,"value":1721},{"type":18,"tag":359,"props":1889,"children":1890},{"class":491},[1891],{"type":24,"value":1892},"else",{"type":18,"tag":359,"props":1894,"children":1895},{"class":366},[1896],{"type":24,"value":1750},{"type":18,"tag":359,"props":1898,"children":1899},{"class":361,"line":1127},[1900,1904,1908,1912,1916,1920,1924,1929],{"type":18,"tag":359,"props":1901,"children":1902},{"class":366},[1903],{"type":24,"value":1758},{"type":18,"tag":359,"props":1905,"children":1906},{"class":462},[1907],{"type":24,"value":681},{"type":18,"tag":359,"props":1909,"children":1910},{"class":366},[1911],{"type":24,"value":432},{"type":18,"tag":359,"props":1913,"children":1914},{"class":688},[1915],{"type":24,"value":24},{"type":18,"tag":359,"props":1917,"children":1918},{"class":372},[1919],{"type":24,"value":375},{"type":18,"tag":359,"props":1921,"children":1922},{"class":413},[1923],{"type":24,"value":699},{"type":18,"tag":359,"props":1925,"children":1926},{"class":383},[1927],{"type":24,"value":1928},"\"Good Evening!\"",{"type":18,"tag":359,"props":1930,"children":1931},{"class":366},[1932],{"type":24,"value":709},{"type":18,"tag":359,"props":1934,"children":1935},{"class":361,"line":1492},[1936],{"type":18,"tag":359,"props":1937,"children":1938},{},[1939],{"type":24,"value":512},{"type":18,"tag":359,"props":1941,"children":1943},{"class":361,"line":1942},16,[1944,1948,1952],{"type":18,"tag":359,"props":1945,"children":1946},{"class":366},[1947],{"type":24,"value":1721},{"type":18,"tag":359,"props":1949,"children":1950},{"class":491},[1951],{"type":24,"value":494},{"type":18,"tag":359,"props":1953,"children":1954},{"class":366},[1955],{"type":24,"value":1956}," []\n",{"type":18,"tag":359,"props":1958,"children":1960},{"class":361,"line":1959},17,[1961],{"type":18,"tag":359,"props":1962,"children":1963},{},[1964],{"type":24,"value":512},{"type":18,"tag":359,"props":1966,"children":1968},{"class":361,"line":1967},18,[1969,1973,1977,1982,1986,1990],{"type":18,"tag":359,"props":1970,"children":1971},{"class":413},[1972],{"type":24,"value":416},{"type":18,"tag":359,"props":1974,"children":1975},{"class":366},[1976],{"type":24,"value":421},{"type":18,"tag":359,"props":1978,"children":1979},{"class":424},[1980],{"type":24,"value":1981},"ReturnDate",{"type":18,"tag":359,"props":1983,"children":1984},{"class":366},[1985],{"type":24,"value":432},{"type":18,"tag":359,"props":1987,"children":1988},{"class":424},[1989],{"type":24,"value":437},{"type":18,"tag":359,"props":1991,"children":1992},{"class":366},[1993],{"type":24,"value":442},{"type":18,"tag":359,"props":1995,"children":1997},{"class":361,"line":1996},19,[1998,2002,2006,2010,2014,2018,2022],{"type":18,"tag":359,"props":1999,"children":2000},{"class":366},[2001],{"type":24,"value":450},{"type":18,"tag":359,"props":2003,"children":2004},{"class":413},[2005],{"type":24,"value":455},{"type":18,"tag":359,"props":2007,"children":2008},{"class":366},[2009],{"type":24,"value":421},{"type":18,"tag":359,"props":2011,"children":2012},{"class":462},[2013],{"type":24,"value":465},{"type":18,"tag":359,"props":2015,"children":2016},{"class":366},[2017],{"type":24,"value":432},{"type":18,"tag":359,"props":2019,"children":2020},{"class":472},[2021],{"type":24,"value":475},{"type":18,"tag":359,"props":2023,"children":2024},{"class":366},[2025],{"type":24,"value":480},{"type":18,"tag":359,"props":2027,"children":2029},{"class":361,"line":2028},20,[2030,2034,2038,2042],{"type":18,"tag":359,"props":2031,"children":2032},{"class":366},[2033],{"type":24,"value":488},{"type":18,"tag":359,"props":2035,"children":2036},{"class":491},[2037],{"type":24,"value":494},{"type":18,"tag":359,"props":2039,"children":2040},{"class":366},[2041],{"type":24,"value":421},{"type":18,"tag":359,"props":2043,"children":2044},{"class":383},[2045],{"type":24,"value":2046},"\"action_show_time\"\n",{"type":18,"tag":359,"props":2048,"children":2050},{"class":361,"line":2049},21,[2051,2055,2059,2063,2067,2071,2075,2079,2083],{"type":18,"tag":359,"props":2052,"children":2053},{"class":366},[2054],{"type":24,"value":450},{"type":18,"tag":359,"props":2056,"children":2057},{"class":413},[2058],{"type":24,"value":455},{"type":18,"tag":359,"props":2060,"children":2061},{"class":366},[2062],{"type":24,"value":421},{"type":18,"tag":359,"props":2064,"children":2065},{"class":462},[2066],{"type":24,"value":533},{"type":18,"tag":359,"props":2068,"children":2069},{"class":366},[2070],{"type":24,"value":432},{"type":18,"tag":359,"props":2072,"children":2073},{"class":472},[2074],{"type":24,"value":475},{"type":18,"tag":359,"props":2076,"children":2077},{"class":366},[2078],{"type":24,"value":546},{"type":18,"tag":359,"props":2080,"children":2081},{"class":549},[2082],{"type":24,"value":552},{"type":18,"tag":359,"props":2084,"children":2085},{"class":366},[2086],{"type":24,"value":1646},{"type":18,"tag":359,"props":2088,"children":2090},{"class":361,"line":2089},22,[2091,2095,2099],{"type":18,"tag":359,"props":2092,"children":2093},{"class":366},[2094],{"type":24,"value":1654},{"type":18,"tag":359,"props":2096,"children":2097},{"class":549},[2098],{"type":24,"value":561},{"type":18,"tag":359,"props":2100,"children":2101},{"class":366},[2102],{"type":24,"value":1663},{"type":18,"tag":359,"props":2104,"children":2106},{"class":361,"line":2105},23,[2107,2111,2115],{"type":18,"tag":359,"props":2108,"children":2109},{"class":366},[2110],{"type":24,"value":1654},{"type":18,"tag":359,"props":2112,"children":2113},{"class":549},[2114],{"type":24,"value":570},{"type":18,"tag":359,"props":2116,"children":2117},{"class":366},[2118],{"type":24,"value":1679},{"type":18,"tag":359,"props":2120,"children":2122},{"class":361,"line":2121},24,[2123],{"type":18,"tag":359,"props":2124,"children":2125},{},[2126],{"type":24,"value":512},{"type":18,"tag":359,"props":2128,"children":2130},{"class":361,"line":2129},25,[2131,2135,2139,2143,2147],{"type":18,"tag":359,"props":2132,"children":2133},{"class":366},[2134],{"type":24,"value":1694},{"type":18,"tag":359,"props":2136,"children":2137},{"class":372},[2138],{"type":24,"value":375},{"type":18,"tag":359,"props":2140,"children":2141},{"class":366},[2142],{"type":24,"value":1703},{"type":18,"tag":359,"props":2144,"children":2145},{"class":462},[2146],{"type":24,"value":1708},{"type":18,"tag":359,"props":2148,"children":2149},{"class":366},[2150],{"type":24,"value":1713},{"type":18,"tag":359,"props":2152,"children":2154},{"class":361,"line":2153},26,[2155,2160,2164,2169,2174,2178,2183],{"type":18,"tag":359,"props":2156,"children":2157},{"class":366},[2158],{"type":24,"value":2159},"            fullmonth",{"type":18,"tag":359,"props":2161,"children":2162},{"class":372},[2163],{"type":24,"value":375},{"type":18,"tag":359,"props":2165,"children":2166},{"class":366},[2167],{"type":24,"value":2168},"dt.",{"type":18,"tag":359,"props":2170,"children":2171},{"class":462},[2172],{"type":24,"value":2173},"strftime",{"type":18,"tag":359,"props":2175,"children":2176},{"class":366},[2177],{"type":24,"value":432},{"type":18,"tag":359,"props":2179,"children":2180},{"class":383},[2181],{"type":24,"value":2182},"\"%B\"",{"type":18,"tag":359,"props":2184,"children":2185},{"class":366},[2186],{"type":24,"value":709},{"type":18,"tag":359,"props":2188,"children":2190},{"class":361,"line":2189},27,[2191,2196,2200,2204,2208,2212,2217],{"type":18,"tag":359,"props":2192,"children":2193},{"class":366},[2194],{"type":24,"value":2195},"            fullweekday",{"type":18,"tag":359,"props":2197,"children":2198},{"class":372},[2199],{"type":24,"value":375},{"type":18,"tag":359,"props":2201,"children":2202},{"class":366},[2203],{"type":24,"value":2168},{"type":18,"tag":359,"props":2205,"children":2206},{"class":462},[2207],{"type":24,"value":2173},{"type":18,"tag":359,"props":2209,"children":2210},{"class":366},[2211],{"type":24,"value":432},{"type":18,"tag":359,"props":2213,"children":2214},{"class":383},[2215],{"type":24,"value":2216},"\"%A\"",{"type":18,"tag":359,"props":2218,"children":2219},{"class":366},[2220],{"type":24,"value":709},{"type":18,"tag":359,"props":2222,"children":2224},{"class":361,"line":2223},28,[2225,2229,2233,2238,2243,2248,2253,2257,2261,2265,2269,2274,2278,2282,2286,2290,2294],{"type":18,"tag":359,"props":2226,"children":2227},{"class":366},[2228],{"type":24,"value":1721},{"type":18,"tag":359,"props":2230,"children":2231},{"class":491},[2232],{"type":24,"value":1726},{"type":18,"tag":359,"props":2234,"children":2235},{"class":366},[2236],{"type":24,"value":2237}," ((dt.hour",{"type":18,"tag":359,"props":2239,"children":2240},{"class":372},[2241],{"type":24,"value":2242},"//",{"type":18,"tag":359,"props":2244,"children":2245},{"class":1017},[2246],{"type":24,"value":2247},"10",{"type":18,"tag":359,"props":2249,"children":2250},{"class":366},[2251],{"type":24,"value":2252},")",{"type":18,"tag":359,"props":2254,"children":2255},{"class":372},[2256],{"type":24,"value":1736},{"type":18,"tag":359,"props":2258,"children":2259},{"class":1017},[2260],{"type":24,"value":1055},{"type":18,"tag":359,"props":2262,"children":2263},{"class":366},[2264],{"type":24,"value":1822},{"type":18,"tag":359,"props":2266,"children":2267},{"class":491},[2268],{"type":24,"value":1827},{"type":18,"tag":359,"props":2270,"children":2271},{"class":366},[2272],{"type":24,"value":2273}," ((dt.minute",{"type":18,"tag":359,"props":2275,"children":2276},{"class":372},[2277],{"type":24,"value":2242},{"type":18,"tag":359,"props":2279,"children":2280},{"class":1017},[2281],{"type":24,"value":2247},{"type":18,"tag":359,"props":2283,"children":2284},{"class":366},[2285],{"type":24,"value":2252},{"type":18,"tag":359,"props":2287,"children":2288},{"class":372},[2289],{"type":24,"value":1736},{"type":18,"tag":359,"props":2291,"children":2292},{"class":1017},[2293],{"type":24,"value":1055},{"type":18,"tag":359,"props":2295,"children":2296},{"class":366},[2297],{"type":24,"value":442},{"type":18,"tag":359,"props":2299,"children":2301},{"class":361,"line":2300},29,[2302,2306,2310,2314,2318,2322,2326,2331,2336,2341,2346,2350,2354,2359,2363,2368,2372,2377,2381,2386,2390,2395,2399,2404,2408,2413,2417,2422],{"type":18,"tag":359,"props":2303,"children":2304},{"class":366},[2305],{"type":24,"value":1758},{"type":18,"tag":359,"props":2307,"children":2308},{"class":462},[2309],{"type":24,"value":681},{"type":18,"tag":359,"props":2311,"children":2312},{"class":366},[2313],{"type":24,"value":432},{"type":18,"tag":359,"props":2315,"children":2316},{"class":688},[2317],{"type":24,"value":24},{"type":18,"tag":359,"props":2319,"children":2320},{"class":372},[2321],{"type":24,"value":375},{"type":18,"tag":359,"props":2323,"children":2324},{"class":413},[2325],{"type":24,"value":699},{"type":18,"tag":359,"props":2327,"children":2328},{"class":383},[2329],{"type":24,"value":2330},"\"Today is ",{"type":18,"tag":359,"props":2332,"children":2333},{"class":1017},[2334],{"type":24,"value":2335},"{",{"type":18,"tag":359,"props":2337,"children":2338},{"class":366},[2339],{"type":24,"value":2340},"fullweekday",{"type":18,"tag":359,"props":2342,"children":2343},{"class":1017},[2344],{"type":24,"value":2345},"}",{"type":18,"tag":359,"props":2347,"children":2348},{"class":383},[2349],{"type":24,"value":421},{"type":18,"tag":359,"props":2351,"children":2352},{"class":1017},[2353],{"type":24,"value":2335},{"type":18,"tag":359,"props":2355,"children":2356},{"class":366},[2357],{"type":24,"value":2358},"dt.day",{"type":18,"tag":359,"props":2360,"children":2361},{"class":1017},[2362],{"type":24,"value":2345},{"type":18,"tag":359,"props":2364,"children":2365},{"class":383},[2366],{"type":24,"value":2367},"th of ",{"type":18,"tag":359,"props":2369,"children":2370},{"class":1017},[2371],{"type":24,"value":2335},{"type":18,"tag":359,"props":2373,"children":2374},{"class":366},[2375],{"type":24,"value":2376},"fullmonth",{"type":18,"tag":359,"props":2378,"children":2379},{"class":1017},[2380],{"type":24,"value":2345},{"type":18,"tag":359,"props":2382,"children":2383},{"class":383},[2384],{"type":24,"value":2385},", the time now is 0",{"type":18,"tag":359,"props":2387,"children":2388},{"class":1017},[2389],{"type":24,"value":2335},{"type":18,"tag":359,"props":2391,"children":2392},{"class":366},[2393],{"type":24,"value":2394},"dt.hour",{"type":18,"tag":359,"props":2396,"children":2397},{"class":1017},[2398],{"type":24,"value":2345},{"type":18,"tag":359,"props":2400,"children":2401},{"class":383},[2402],{"type":24,"value":2403},":0",{"type":18,"tag":359,"props":2405,"children":2406},{"class":1017},[2407],{"type":24,"value":2335},{"type":18,"tag":359,"props":2409,"children":2410},{"class":366},[2411],{"type":24,"value":2412},"dt.minute",{"type":18,"tag":359,"props":2414,"children":2415},{"class":1017},[2416],{"type":24,"value":2345},{"type":18,"tag":359,"props":2418,"children":2419},{"class":383},[2420],{"type":24,"value":2421},".\"",{"type":18,"tag":359,"props":2423,"children":2424},{"class":366},[2425],{"type":24,"value":709},{"type":18,"tag":359,"props":2427,"children":2429},{"class":361,"line":2428},30,[2430,2434,2438,2443,2447,2451,2455,2459,2463],{"type":18,"tag":359,"props":2431,"children":2432},{"class":366},[2433],{"type":24,"value":1721},{"type":18,"tag":359,"props":2435,"children":2436},{"class":491},[2437],{"type":24,"value":1799},{"type":18,"tag":359,"props":2439,"children":2440},{"class":366},[2441],{"type":24,"value":2442}," (dt.minute",{"type":18,"tag":359,"props":2444,"children":2445},{"class":372},[2446],{"type":24,"value":2242},{"type":18,"tag":359,"props":2448,"children":2449},{"class":1017},[2450],{"type":24,"value":2247},{"type":18,"tag":359,"props":2452,"children":2453},{"class":366},[2454],{"type":24,"value":2252},{"type":18,"tag":359,"props":2456,"children":2457},{"class":372},[2458],{"type":24,"value":1736},{"type":18,"tag":359,"props":2460,"children":2461},{"class":1017},[2462],{"type":24,"value":1055},{"type":18,"tag":359,"props":2464,"children":2465},{"class":366},[2466],{"type":24,"value":1750},{"type":18,"tag":359,"props":2468,"children":2470},{"class":361,"line":2469},31,[2471,2475,2479,2483,2487,2491,2495,2499,2503,2507,2511,2515,2519,2523,2527,2531,2535,2539,2543,2548,2552,2556,2560,2564,2568,2572,2576,2580],{"type":18,"tag":359,"props":2472,"children":2473},{"class":366},[2474],{"type":24,"value":1758},{"type":18,"tag":359,"props":2476,"children":2477},{"class":462},[2478],{"type":24,"value":681},{"type":18,"tag":359,"props":2480,"children":2481},{"class":366},[2482],{"type":24,"value":432},{"type":18,"tag":359,"props":2484,"children":2485},{"class":688},[2486],{"type":24,"value":24},{"type":18,"tag":359,"props":2488,"children":2489},{"class":372},[2490],{"type":24,"value":375},{"type":18,"tag":359,"props":2492,"children":2493},{"class":413},[2494],{"type":24,"value":699},{"type":18,"tag":359,"props":2496,"children":2497},{"class":383},[2498],{"type":24,"value":2330},{"type":18,"tag":359,"props":2500,"children":2501},{"class":1017},[2502],{"type":24,"value":2335},{"type":18,"tag":359,"props":2504,"children":2505},{"class":366},[2506],{"type":24,"value":2340},{"type":18,"tag":359,"props":2508,"children":2509},{"class":1017},[2510],{"type":24,"value":2345},{"type":18,"tag":359,"props":2512,"children":2513},{"class":383},[2514],{"type":24,"value":421},{"type":18,"tag":359,"props":2516,"children":2517},{"class":1017},[2518],{"type":24,"value":2335},{"type":18,"tag":359,"props":2520,"children":2521},{"class":366},[2522],{"type":24,"value":2358},{"type":18,"tag":359,"props":2524,"children":2525},{"class":1017},[2526],{"type":24,"value":2345},{"type":18,"tag":359,"props":2528,"children":2529},{"class":383},[2530],{"type":24,"value":2367},{"type":18,"tag":359,"props":2532,"children":2533},{"class":1017},[2534],{"type":24,"value":2335},{"type":18,"tag":359,"props":2536,"children":2537},{"class":366},[2538],{"type":24,"value":2376},{"type":18,"tag":359,"props":2540,"children":2541},{"class":1017},[2542],{"type":24,"value":2345},{"type":18,"tag":359,"props":2544,"children":2545},{"class":383},[2546],{"type":24,"value":2547},", the time now is ",{"type":18,"tag":359,"props":2549,"children":2550},{"class":1017},[2551],{"type":24,"value":2335},{"type":18,"tag":359,"props":2553,"children":2554},{"class":366},[2555],{"type":24,"value":2394},{"type":18,"tag":359,"props":2557,"children":2558},{"class":1017},[2559],{"type":24,"value":2345},{"type":18,"tag":359,"props":2561,"children":2562},{"class":383},[2563],{"type":24,"value":2403},{"type":18,"tag":359,"props":2565,"children":2566},{"class":1017},[2567],{"type":24,"value":2335},{"type":18,"tag":359,"props":2569,"children":2570},{"class":366},[2571],{"type":24,"value":2412},{"type":18,"tag":359,"props":2573,"children":2574},{"class":1017},[2575],{"type":24,"value":2345},{"type":18,"tag":359,"props":2577,"children":2578},{"class":383},[2579],{"type":24,"value":2421},{"type":18,"tag":359,"props":2581,"children":2582},{"class":366},[2583],{"type":24,"value":709},{"type":18,"tag":359,"props":2585,"children":2587},{"class":361,"line":2586},32,[2588,2592,2596,2601,2605,2609,2613,2617,2621],{"type":18,"tag":359,"props":2589,"children":2590},{"class":366},[2591],{"type":24,"value":1721},{"type":18,"tag":359,"props":2593,"children":2594},{"class":491},[2595],{"type":24,"value":1799},{"type":18,"tag":359,"props":2597,"children":2598},{"class":366},[2599],{"type":24,"value":2600}," (dt.hour",{"type":18,"tag":359,"props":2602,"children":2603},{"class":372},[2604],{"type":24,"value":2242},{"type":18,"tag":359,"props":2606,"children":2607},{"class":1017},[2608],{"type":24,"value":2247},{"type":18,"tag":359,"props":2610,"children":2611},{"class":366},[2612],{"type":24,"value":2252},{"type":18,"tag":359,"props":2614,"children":2615},{"class":372},[2616],{"type":24,"value":1736},{"type":18,"tag":359,"props":2618,"children":2619},{"class":1017},[2620],{"type":24,"value":1055},{"type":18,"tag":359,"props":2622,"children":2623},{"class":366},[2624],{"type":24,"value":1750},{"type":18,"tag":359,"props":2626,"children":2628},{"class":361,"line":2627},33,[2629,2633,2637,2641,2645,2649,2653,2657,2661,2665,2669,2673,2677,2681,2685,2689,2693,2697,2701,2705,2709,2713,2717,2722,2726,2730,2734,2738],{"type":18,"tag":359,"props":2630,"children":2631},{"class":366},[2632],{"type":24,"value":1758},{"type":18,"tag":359,"props":2634,"children":2635},{"class":462},[2636],{"type":24,"value":681},{"type":18,"tag":359,"props":2638,"children":2639},{"class":366},[2640],{"type":24,"value":432},{"type":18,"tag":359,"props":2642,"children":2643},{"class":688},[2644],{"type":24,"value":24},{"type":18,"tag":359,"props":2646,"children":2647},{"class":372},[2648],{"type":24,"value":375},{"type":18,"tag":359,"props":2650,"children":2651},{"class":413},[2652],{"type":24,"value":699},{"type":18,"tag":359,"props":2654,"children":2655},{"class":383},[2656],{"type":24,"value":2330},{"type":18,"tag":359,"props":2658,"children":2659},{"class":1017},[2660],{"type":24,"value":2335},{"type":18,"tag":359,"props":2662,"children":2663},{"class":366},[2664],{"type":24,"value":2340},{"type":18,"tag":359,"props":2666,"children":2667},{"class":1017},[2668],{"type":24,"value":2345},{"type":18,"tag":359,"props":2670,"children":2671},{"class":383},[2672],{"type":24,"value":421},{"type":18,"tag":359,"props":2674,"children":2675},{"class":1017},[2676],{"type":24,"value":2335},{"type":18,"tag":359,"props":2678,"children":2679},{"class":366},[2680],{"type":24,"value":2358},{"type":18,"tag":359,"props":2682,"children":2683},{"class":1017},[2684],{"type":24,"value":2345},{"type":18,"tag":359,"props":2686,"children":2687},{"class":383},[2688],{"type":24,"value":2367},{"type":18,"tag":359,"props":2690,"children":2691},{"class":1017},[2692],{"type":24,"value":2335},{"type":18,"tag":359,"props":2694,"children":2695},{"class":366},[2696],{"type":24,"value":2376},{"type":18,"tag":359,"props":2698,"children":2699},{"class":1017},[2700],{"type":24,"value":2345},{"type":18,"tag":359,"props":2702,"children":2703},{"class":383},[2704],{"type":24,"value":2385},{"type":18,"tag":359,"props":2706,"children":2707},{"class":1017},[2708],{"type":24,"value":2335},{"type":18,"tag":359,"props":2710,"children":2711},{"class":366},[2712],{"type":24,"value":2394},{"type":18,"tag":359,"props":2714,"children":2715},{"class":1017},[2716],{"type":24,"value":2345},{"type":18,"tag":359,"props":2718,"children":2719},{"class":383},[2720],{"type":24,"value":2721},":",{"type":18,"tag":359,"props":2723,"children":2724},{"class":1017},[2725],{"type":24,"value":2335},{"type":18,"tag":359,"props":2727,"children":2728},{"class":366},[2729],{"type":24,"value":2412},{"type":18,"tag":359,"props":2731,"children":2732},{"class":1017},[2733],{"type":24,"value":2345},{"type":18,"tag":359,"props":2735,"children":2736},{"class":383},[2737],{"type":24,"value":2421},{"type":18,"tag":359,"props":2739,"children":2740},{"class":366},[2741],{"type":24,"value":709},{"type":18,"tag":359,"props":2743,"children":2745},{"class":361,"line":2744},34,[2746,2750,2754],{"type":18,"tag":359,"props":2747,"children":2748},{"class":366},[2749],{"type":24,"value":1721},{"type":18,"tag":359,"props":2751,"children":2752},{"class":491},[2753],{"type":24,"value":1892},{"type":18,"tag":359,"props":2755,"children":2756},{"class":366},[2757],{"type":24,"value":1750},{"type":18,"tag":359,"props":2759,"children":2761},{"class":361,"line":2760},35,[2762,2766,2770,2774,2778,2782,2786,2790,2794,2798,2802,2806,2810,2814,2818,2822,2826,2830,2834,2838,2842,2846,2850,2854,2858,2862,2866,2870],{"type":18,"tag":359,"props":2763,"children":2764},{"class":366},[2765],{"type":24,"value":1758},{"type":18,"tag":359,"props":2767,"children":2768},{"class":462},[2769],{"type":24,"value":681},{"type":18,"tag":359,"props":2771,"children":2772},{"class":366},[2773],{"type":24,"value":432},{"type":18,"tag":359,"props":2775,"children":2776},{"class":688},[2777],{"type":24,"value":24},{"type":18,"tag":359,"props":2779,"children":2780},{"class":372},[2781],{"type":24,"value":375},{"type":18,"tag":359,"props":2783,"children":2784},{"class":413},[2785],{"type":24,"value":699},{"type":18,"tag":359,"props":2787,"children":2788},{"class":383},[2789],{"type":24,"value":2330},{"type":18,"tag":359,"props":2791,"children":2792},{"class":1017},[2793],{"type":24,"value":2335},{"type":18,"tag":359,"props":2795,"children":2796},{"class":366},[2797],{"type":24,"value":2340},{"type":18,"tag":359,"props":2799,"children":2800},{"class":1017},[2801],{"type":24,"value":2345},{"type":18,"tag":359,"props":2803,"children":2804},{"class":383},[2805],{"type":24,"value":421},{"type":18,"tag":359,"props":2807,"children":2808},{"class":1017},[2809],{"type":24,"value":2335},{"type":18,"tag":359,"props":2811,"children":2812},{"class":366},[2813],{"type":24,"value":2358},{"type":18,"tag":359,"props":2815,"children":2816},{"class":1017},[2817],{"type":24,"value":2345},{"type":18,"tag":359,"props":2819,"children":2820},{"class":383},[2821],{"type":24,"value":2367},{"type":18,"tag":359,"props":2823,"children":2824},{"class":1017},[2825],{"type":24,"value":2335},{"type":18,"tag":359,"props":2827,"children":2828},{"class":366},[2829],{"type":24,"value":2376},{"type":18,"tag":359,"props":2831,"children":2832},{"class":1017},[2833],{"type":24,"value":2345},{"type":18,"tag":359,"props":2835,"children":2836},{"class":383},[2837],{"type":24,"value":2547},{"type":18,"tag":359,"props":2839,"children":2840},{"class":1017},[2841],{"type":24,"value":2335},{"type":18,"tag":359,"props":2843,"children":2844},{"class":366},[2845],{"type":24,"value":2394},{"type":18,"tag":359,"props":2847,"children":2848},{"class":1017},[2849],{"type":24,"value":2345},{"type":18,"tag":359,"props":2851,"children":2852},{"class":383},[2853],{"type":24,"value":2721},{"type":18,"tag":359,"props":2855,"children":2856},{"class":1017},[2857],{"type":24,"value":2335},{"type":18,"tag":359,"props":2859,"children":2860},{"class":366},[2861],{"type":24,"value":2412},{"type":18,"tag":359,"props":2863,"children":2864},{"class":1017},[2865],{"type":24,"value":2345},{"type":18,"tag":359,"props":2867,"children":2868},{"class":383},[2869],{"type":24,"value":2421},{"type":18,"tag":359,"props":2871,"children":2872},{"class":366},[2873],{"type":24,"value":709},{"type":18,"tag":359,"props":2875,"children":2877},{"class":361,"line":2876},36,[2878,2882,2886],{"type":18,"tag":359,"props":2879,"children":2880},{"class":366},[2881],{"type":24,"value":1721},{"type":18,"tag":359,"props":2883,"children":2884},{"class":491},[2885],{"type":24,"value":494},{"type":18,"tag":359,"props":2887,"children":2888},{"class":366},[2889],{"type":24,"value":756},{"type":18,"tag":27,"props":2891,"children":2892},{},[2893],{"type":24,"value":2894},"In here, I am trying to implement the start quarantine action. Because we need to keep track of the quarantine progress, we need to store the date that the user start quarantine. Rasa comes with entity function to store text or number information. But I thought doing this in python will be faster and more convenient. Which turns out to be true. I store the current date and time the user start quarantine to the dictionary. Then it is stored to the json files locally. By doing so, when rasa restarts, the dates would not lost ⬇️.",{"type":18,"tag":316,"props":2896,"children":2899},{"className":2897,"code":2898,"language":349,"meta":8},[347],"class ActionSetQuarantineDate(Action):\r\n    def name(self) -> Text:\r\n        return \"action_start_quarantine\"\r\n\r\n    def run(self, dispatcher, tracker, domain):\r\n        text = tracker.latest_message['text']\r\n        dt=datetime.datetime.now()\r\n        fullmonth=dt.strftime(\"%B\")\r\n        fullweekday=dt.strftime(\"%A\")\r\n        dictionary={}\r\n        dictionary['date'] = dt.day\r\n        dictionary['month'] = dt.month\r\n        dictionary['year'] = dt.year\r\n        with open(\"output.json\", \"w\") as outfile:\r\n            json.dump(dictionary, outfile)\r\n        dispatcher.utter_message(text=f\"Your quarantine starts now, today is {fullweekday} {dt.day}th of {fullmonth}\")\r\n        ##dispatcher.utter_message(text=f\"{text}\")\r\n        return []\n",[2900],{"type":18,"tag":352,"props":2901,"children":2902},{},[2903],{"type":18,"tag":316,"props":2904,"children":2905},{"__ignoreMap":8},[2906,2934,2965,2985,2992,3047,3073,3097,3129,3161,3178,3205,3230,3255,3308,3326,3411,3423],{"type":18,"tag":359,"props":2907,"children":2908},{"class":361,"line":362},[2909,2913,2917,2922,2926,2930],{"type":18,"tag":359,"props":2910,"children":2911},{"class":413},[2912],{"type":24,"value":416},{"type":18,"tag":359,"props":2914,"children":2915},{"class":366},[2916],{"type":24,"value":421},{"type":18,"tag":359,"props":2918,"children":2919},{"class":424},[2920],{"type":24,"value":2921},"ActionSetQuarantineDate",{"type":18,"tag":359,"props":2923,"children":2924},{"class":366},[2925],{"type":24,"value":432},{"type":18,"tag":359,"props":2927,"children":2928},{"class":424},[2929],{"type":24,"value":437},{"type":18,"tag":359,"props":2931,"children":2932},{"class":366},[2933],{"type":24,"value":442},{"type":18,"tag":359,"props":2935,"children":2936},{"class":361,"line":170},[2937,2941,2945,2949,2953,2957,2961],{"type":18,"tag":359,"props":2938,"children":2939},{"class":366},[2940],{"type":24,"value":450},{"type":18,"tag":359,"props":2942,"children":2943},{"class":413},[2944],{"type":24,"value":455},{"type":18,"tag":359,"props":2946,"children":2947},{"class":366},[2948],{"type":24,"value":421},{"type":18,"tag":359,"props":2950,"children":2951},{"class":462},[2952],{"type":24,"value":465},{"type":18,"tag":359,"props":2954,"children":2955},{"class":366},[2956],{"type":24,"value":432},{"type":18,"tag":359,"props":2958,"children":2959},{"class":472},[2960],{"type":24,"value":475},{"type":18,"tag":359,"props":2962,"children":2963},{"class":366},[2964],{"type":24,"value":480},{"type":18,"tag":359,"props":2966,"children":2967},{"class":361,"line":167},[2968,2972,2976,2980],{"type":18,"tag":359,"props":2969,"children":2970},{"class":366},[2971],{"type":24,"value":488},{"type":18,"tag":359,"props":2973,"children":2974},{"class":491},[2975],{"type":24,"value":494},{"type":18,"tag":359,"props":2977,"children":2978},{"class":366},[2979],{"type":24,"value":421},{"type":18,"tag":359,"props":2981,"children":2982},{"class":383},[2983],{"type":24,"value":2984},"\"action_start_quarantine\"\n",{"type":18,"tag":359,"props":2986,"children":2987},{"class":361,"line":506},[2988],{"type":18,"tag":359,"props":2989,"children":2990},{},[2991],{"type":24,"value":512},{"type":18,"tag":359,"props":2993,"children":2994},{"class":361,"line":515},[2995,2999,3003,3007,3011,3015,3019,3023,3027,3031,3035,3039,3043],{"type":18,"tag":359,"props":2996,"children":2997},{"class":366},[2998],{"type":24,"value":450},{"type":18,"tag":359,"props":3000,"children":3001},{"class":413},[3002],{"type":24,"value":455},{"type":18,"tag":359,"props":3004,"children":3005},{"class":366},[3006],{"type":24,"value":421},{"type":18,"tag":359,"props":3008,"children":3009},{"class":462},[3010],{"type":24,"value":533},{"type":18,"tag":359,"props":3012,"children":3013},{"class":366},[3014],{"type":24,"value":432},{"type":18,"tag":359,"props":3016,"children":3017},{"class":472},[3018],{"type":24,"value":475},{"type":18,"tag":359,"props":3020,"children":3021},{"class":366},[3022],{"type":24,"value":546},{"type":18,"tag":359,"props":3024,"children":3025},{"class":549},[3026],{"type":24,"value":552},{"type":18,"tag":359,"props":3028,"children":3029},{"class":366},[3030],{"type":24,"value":546},{"type":18,"tag":359,"props":3032,"children":3033},{"class":549},[3034],{"type":24,"value":561},{"type":18,"tag":359,"props":3036,"children":3037},{"class":366},[3038],{"type":24,"value":546},{"type":18,"tag":359,"props":3040,"children":3041},{"class":549},[3042],{"type":24,"value":570},{"type":18,"tag":359,"props":3044,"children":3045},{"class":366},[3046],{"type":24,"value":442},{"type":18,"tag":359,"props":3048,"children":3049},{"class":361,"line":577},[3050,3055,3059,3064,3069],{"type":18,"tag":359,"props":3051,"children":3052},{"class":366},[3053],{"type":24,"value":3054},"        text ",{"type":18,"tag":359,"props":3056,"children":3057},{"class":372},[3058],{"type":24,"value":375},{"type":18,"tag":359,"props":3060,"children":3061},{"class":366},[3062],{"type":24,"value":3063}," tracker.latest_message[",{"type":18,"tag":359,"props":3065,"children":3066},{"class":383},[3067],{"type":24,"value":3068},"'text'",{"type":18,"tag":359,"props":3070,"children":3071},{"class":366},[3072],{"type":24,"value":667},{"type":18,"tag":359,"props":3074,"children":3075},{"class":361,"line":605},[3076,3081,3085,3089,3093],{"type":18,"tag":359,"props":3077,"children":3078},{"class":366},[3079],{"type":24,"value":3080},"        dt",{"type":18,"tag":359,"props":3082,"children":3083},{"class":372},[3084],{"type":24,"value":375},{"type":18,"tag":359,"props":3086,"children":3087},{"class":366},[3088],{"type":24,"value":1703},{"type":18,"tag":359,"props":3090,"children":3091},{"class":462},[3092],{"type":24,"value":1708},{"type":18,"tag":359,"props":3094,"children":3095},{"class":366},[3096],{"type":24,"value":1713},{"type":18,"tag":359,"props":3098,"children":3099},{"class":361,"line":633},[3100,3105,3109,3113,3117,3121,3125],{"type":18,"tag":359,"props":3101,"children":3102},{"class":366},[3103],{"type":24,"value":3104},"        fullmonth",{"type":18,"tag":359,"props":3106,"children":3107},{"class":372},[3108],{"type":24,"value":375},{"type":18,"tag":359,"props":3110,"children":3111},{"class":366},[3112],{"type":24,"value":2168},{"type":18,"tag":359,"props":3114,"children":3115},{"class":462},[3116],{"type":24,"value":2173},{"type":18,"tag":359,"props":3118,"children":3119},{"class":366},[3120],{"type":24,"value":432},{"type":18,"tag":359,"props":3122,"children":3123},{"class":383},[3124],{"type":24,"value":2182},{"type":18,"tag":359,"props":3126,"children":3127},{"class":366},[3128],{"type":24,"value":709},{"type":18,"tag":359,"props":3130,"children":3131},{"class":361,"line":642},[3132,3137,3141,3145,3149,3153,3157],{"type":18,"tag":359,"props":3133,"children":3134},{"class":366},[3135],{"type":24,"value":3136},"        fullweekday",{"type":18,"tag":359,"props":3138,"children":3139},{"class":372},[3140],{"type":24,"value":375},{"type":18,"tag":359,"props":3142,"children":3143},{"class":366},[3144],{"type":24,"value":2168},{"type":18,"tag":359,"props":3146,"children":3147},{"class":462},[3148],{"type":24,"value":2173},{"type":18,"tag":359,"props":3150,"children":3151},{"class":366},[3152],{"type":24,"value":432},{"type":18,"tag":359,"props":3154,"children":3155},{"class":383},[3156],{"type":24,"value":2216},{"type":18,"tag":359,"props":3158,"children":3159},{"class":366},[3160],{"type":24,"value":709},{"type":18,"tag":359,"props":3162,"children":3163},{"class":361,"line":670},[3164,3169,3173],{"type":18,"tag":359,"props":3165,"children":3166},{"class":366},[3167],{"type":24,"value":3168},"        dictionary",{"type":18,"tag":359,"props":3170,"children":3171},{"class":372},[3172],{"type":24,"value":375},{"type":18,"tag":359,"props":3174,"children":3175},{"class":366},[3176],{"type":24,"value":3177},"{}\n",{"type":18,"tag":359,"props":3179,"children":3180},{"class":361,"line":712},[3181,3186,3191,3196,3200],{"type":18,"tag":359,"props":3182,"children":3183},{"class":366},[3184],{"type":24,"value":3185},"        dictionary[",{"type":18,"tag":359,"props":3187,"children":3188},{"class":383},[3189],{"type":24,"value":3190},"'date'",{"type":18,"tag":359,"props":3192,"children":3193},{"class":366},[3194],{"type":24,"value":3195},"] ",{"type":18,"tag":359,"props":3197,"children":3198},{"class":372},[3199],{"type":24,"value":375},{"type":18,"tag":359,"props":3201,"children":3202},{"class":366},[3203],{"type":24,"value":3204}," dt.day\n",{"type":18,"tag":359,"props":3206,"children":3207},{"class":361,"line":742},[3208,3212,3217,3221,3225],{"type":18,"tag":359,"props":3209,"children":3210},{"class":366},[3211],{"type":24,"value":3185},{"type":18,"tag":359,"props":3213,"children":3214},{"class":383},[3215],{"type":24,"value":3216},"'month'",{"type":18,"tag":359,"props":3218,"children":3219},{"class":366},[3220],{"type":24,"value":3195},{"type":18,"tag":359,"props":3222,"children":3223},{"class":372},[3224],{"type":24,"value":375},{"type":18,"tag":359,"props":3226,"children":3227},{"class":366},[3228],{"type":24,"value":3229}," dt.month\n",{"type":18,"tag":359,"props":3231,"children":3232},{"class":361,"line":1098},[3233,3237,3242,3246,3250],{"type":18,"tag":359,"props":3234,"children":3235},{"class":366},[3236],{"type":24,"value":3185},{"type":18,"tag":359,"props":3238,"children":3239},{"class":383},[3240],{"type":24,"value":3241},"'year'",{"type":18,"tag":359,"props":3243,"children":3244},{"class":366},[3245],{"type":24,"value":3195},{"type":18,"tag":359,"props":3247,"children":3248},{"class":372},[3249],{"type":24,"value":375},{"type":18,"tag":359,"props":3251,"children":3252},{"class":366},[3253],{"type":24,"value":3254}," dt.year\n",{"type":18,"tag":359,"props":3256,"children":3257},{"class":361,"line":1127},[3258,3262,3267,3271,3276,3280,3285,3289,3294,3298,3303],{"type":18,"tag":359,"props":3259,"children":3260},{"class":366},[3261],{"type":24,"value":488},{"type":18,"tag":359,"props":3263,"children":3264},{"class":491},[3265],{"type":24,"value":3266},"with",{"type":18,"tag":359,"props":3268,"children":3269},{"class":366},[3270],{"type":24,"value":421},{"type":18,"tag":359,"props":3272,"children":3273},{"class":372},[3274],{"type":24,"value":3275},"open",{"type":18,"tag":359,"props":3277,"children":3278},{"class":366},[3279],{"type":24,"value":432},{"type":18,"tag":359,"props":3281,"children":3282},{"class":383},[3283],{"type":24,"value":3284},"\"output.json\"",{"type":18,"tag":359,"props":3286,"children":3287},{"class":366},[3288],{"type":24,"value":546},{"type":18,"tag":359,"props":3290,"children":3291},{"class":383},[3292],{"type":24,"value":3293},"\"w\"",{"type":18,"tag":359,"props":3295,"children":3296},{"class":366},[3297],{"type":24,"value":1822},{"type":18,"tag":359,"props":3299,"children":3300},{"class":491},[3301],{"type":24,"value":3302},"as",{"type":18,"tag":359,"props":3304,"children":3305},{"class":366},[3306],{"type":24,"value":3307}," outfile:\n",{"type":18,"tag":359,"props":3309,"children":3310},{"class":361,"line":1492},[3311,3316,3321],{"type":18,"tag":359,"props":3312,"children":3313},{"class":366},[3314],{"type":24,"value":3315},"            json.",{"type":18,"tag":359,"props":3317,"children":3318},{"class":462},[3319],{"type":24,"value":3320},"dump",{"type":18,"tag":359,"props":3322,"children":3323},{"class":366},[3324],{"type":24,"value":3325},"(dictionary, outfile)\n",{"type":18,"tag":359,"props":3327,"children":3328},{"class":361,"line":1942},[3329,3333,3337,3341,3345,3349,3353,3358,3362,3366,3370,3374,3378,3382,3386,3390,3394,3398,3402,3407],{"type":18,"tag":359,"props":3330,"children":3331},{"class":366},[3332],{"type":24,"value":676},{"type":18,"tag":359,"props":3334,"children":3335},{"class":462},[3336],{"type":24,"value":681},{"type":18,"tag":359,"props":3338,"children":3339},{"class":366},[3340],{"type":24,"value":432},{"type":18,"tag":359,"props":3342,"children":3343},{"class":688},[3344],{"type":24,"value":24},{"type":18,"tag":359,"props":3346,"children":3347},{"class":372},[3348],{"type":24,"value":375},{"type":18,"tag":359,"props":3350,"children":3351},{"class":413},[3352],{"type":24,"value":699},{"type":18,"tag":359,"props":3354,"children":3355},{"class":383},[3356],{"type":24,"value":3357},"\"Your quarantine starts now, today is ",{"type":18,"tag":359,"props":3359,"children":3360},{"class":1017},[3361],{"type":24,"value":2335},{"type":18,"tag":359,"props":3363,"children":3364},{"class":366},[3365],{"type":24,"value":2340},{"type":18,"tag":359,"props":3367,"children":3368},{"class":1017},[3369],{"type":24,"value":2345},{"type":18,"tag":359,"props":3371,"children":3372},{"class":383},[3373],{"type":24,"value":421},{"type":18,"tag":359,"props":3375,"children":3376},{"class":1017},[3377],{"type":24,"value":2335},{"type":18,"tag":359,"props":3379,"children":3380},{"class":366},[3381],{"type":24,"value":2358},{"type":18,"tag":359,"props":3383,"children":3384},{"class":1017},[3385],{"type":24,"value":2345},{"type":18,"tag":359,"props":3387,"children":3388},{"class":383},[3389],{"type":24,"value":2367},{"type":18,"tag":359,"props":3391,"children":3392},{"class":1017},[3393],{"type":24,"value":2335},{"type":18,"tag":359,"props":3395,"children":3396},{"class":366},[3397],{"type":24,"value":2376},{"type":18,"tag":359,"props":3399,"children":3400},{"class":1017},[3401],{"type":24,"value":2345},{"type":18,"tag":359,"props":3403,"children":3404},{"class":383},[3405],{"type":24,"value":3406},"\"",{"type":18,"tag":359,"props":3408,"children":3409},{"class":366},[3410],{"type":24,"value":709},{"type":18,"tag":359,"props":3412,"children":3413},{"class":361,"line":1959},[3414,3418],{"type":18,"tag":359,"props":3415,"children":3416},{"class":366},[3417],{"type":24,"value":488},{"type":18,"tag":359,"props":3419,"children":3420},{"class":1411},[3421],{"type":24,"value":3422},"##dispatcher.utter_message(text=f\"{text}\")\n",{"type":18,"tag":359,"props":3424,"children":3425},{"class":361,"line":1967},[3426,3430,3434],{"type":18,"tag":359,"props":3427,"children":3428},{"class":366},[3429],{"type":24,"value":488},{"type":18,"tag":359,"props":3431,"children":3432},{"class":491},[3433],{"type":24,"value":494},{"type":18,"tag":359,"props":3435,"children":3436},{"class":366},[3437],{"type":24,"value":756},{"type":18,"tag":27,"props":3439,"children":3440},{},[3441],{"type":24,"value":3442},"Then next, I implemented the can i leave function. Which is to tell the user then he can leave. In this function, I can then load back the json files I just stored. In here, I decided to print out a progress bar. This is to show the quarantine progress. I think it's good to have a progress bar, such that users knows their progress graphically, and maybe this progress bar act like a complishment, supporting them finish the quarantine ⬇️.",{"type":18,"tag":316,"props":3444,"children":3447},{"className":3445,"code":3446,"language":349,"meta":8},[347],"class ActionCanleave(Action):\r\ndef name(self) -> Text:\r\nreturn \"action_question_can_leave\"\r\n\r\n    def run(self, dispatcher, tracker, domain):\r\n        dt=datetime.datetime.now()\r\n        with open('output.json') as json_file:\r\n            data = json.load(json_file)\r\n        startdate = datetime.datetime(data['year'], data['month'], data['date'])\r\n        enddate = datetime.datetime(dt.year, dt.month, dt.day)\r\n        difference = enddate - startdate\r\n        if difference.days > 14:\r\n            dispatcher.utter_message(text=f\"You made it! Hope we don't meet again 🤣.\")\r\n        elif difference.days \u003C= 14:\r\n            dispatcher.utter_message(text=f\"Add oil!\")\r\n            percentage_left=((14-difference.days)/14)*100\r\n            percentage_left_display = (math.trunc(percentage_left))\r\n            percentage_left = (math.trunc(percentage_left))//2\r\n            Progress_bar='['\r\n            for x in range(50-percentage_left):\r\n               Progress_bar += '█'\r\n            Progress_bar+='🙋‍♂️'\r\n            for x in range(percentage_left):\r\n               Progress_bar += ' '\r\n            Progress_bar+=']🚩'\r\n            dispatcher.utter_message(text=f\"{Progress_bar}\")\r\n            dispatcher.utter_message(text=f\"You only have {percentage_left_display}% left, {14-difference.days}days to go ✨\")\r\n        return []\n",[3448],{"type":18,"tag":352,"props":3449,"children":3450},{},[3451],{"type":18,"tag":316,"props":3452,"children":3453},{"__ignoreMap":8},[3454,3482,3509,3525,3532,3587,3610,3651,3677,3730,3755,3782,3816,3853,3885,3921,3974,4001,4035,4052,4101,4123,4139,4171,4191,4207,4259,4336],{"type":18,"tag":359,"props":3455,"children":3456},{"class":361,"line":362},[3457,3461,3465,3470,3474,3478],{"type":18,"tag":359,"props":3458,"children":3459},{"class":413},[3460],{"type":24,"value":416},{"type":18,"tag":359,"props":3462,"children":3463},{"class":366},[3464],{"type":24,"value":421},{"type":18,"tag":359,"props":3466,"children":3467},{"class":424},[3468],{"type":24,"value":3469},"ActionCanleave",{"type":18,"tag":359,"props":3471,"children":3472},{"class":366},[3473],{"type":24,"value":432},{"type":18,"tag":359,"props":3475,"children":3476},{"class":424},[3477],{"type":24,"value":437},{"type":18,"tag":359,"props":3479,"children":3480},{"class":366},[3481],{"type":24,"value":442},{"type":18,"tag":359,"props":3483,"children":3484},{"class":361,"line":170},[3485,3489,3493,3497,3501,3505],{"type":18,"tag":359,"props":3486,"children":3487},{"class":413},[3488],{"type":24,"value":455},{"type":18,"tag":359,"props":3490,"children":3491},{"class":366},[3492],{"type":24,"value":421},{"type":18,"tag":359,"props":3494,"children":3495},{"class":462},[3496],{"type":24,"value":465},{"type":18,"tag":359,"props":3498,"children":3499},{"class":366},[3500],{"type":24,"value":432},{"type":18,"tag":359,"props":3502,"children":3503},{"class":472},[3504],{"type":24,"value":475},{"type":18,"tag":359,"props":3506,"children":3507},{"class":366},[3508],{"type":24,"value":480},{"type":18,"tag":359,"props":3510,"children":3511},{"class":361,"line":167},[3512,3516,3520],{"type":18,"tag":359,"props":3513,"children":3514},{"class":491},[3515],{"type":24,"value":494},{"type":18,"tag":359,"props":3517,"children":3518},{"class":366},[3519],{"type":24,"value":421},{"type":18,"tag":359,"props":3521,"children":3522},{"class":383},[3523],{"type":24,"value":3524},"\"action_question_can_leave\"\n",{"type":18,"tag":359,"props":3526,"children":3527},{"class":361,"line":506},[3528],{"type":18,"tag":359,"props":3529,"children":3530},{},[3531],{"type":24,"value":512},{"type":18,"tag":359,"props":3533,"children":3534},{"class":361,"line":515},[3535,3539,3543,3547,3551,3555,3559,3563,3567,3571,3575,3579,3583],{"type":18,"tag":359,"props":3536,"children":3537},{"class":366},[3538],{"type":24,"value":450},{"type":18,"tag":359,"props":3540,"children":3541},{"class":413},[3542],{"type":24,"value":455},{"type":18,"tag":359,"props":3544,"children":3545},{"class":366},[3546],{"type":24,"value":421},{"type":18,"tag":359,"props":3548,"children":3549},{"class":462},[3550],{"type":24,"value":533},{"type":18,"tag":359,"props":3552,"children":3553},{"class":366},[3554],{"type":24,"value":432},{"type":18,"tag":359,"props":3556,"children":3557},{"class":472},[3558],{"type":24,"value":475},{"type":18,"tag":359,"props":3560,"children":3561},{"class":366},[3562],{"type":24,"value":546},{"type":18,"tag":359,"props":3564,"children":3565},{"class":549},[3566],{"type":24,"value":552},{"type":18,"tag":359,"props":3568,"children":3569},{"class":366},[3570],{"type":24,"value":546},{"type":18,"tag":359,"props":3572,"children":3573},{"class":549},[3574],{"type":24,"value":561},{"type":18,"tag":359,"props":3576,"children":3577},{"class":366},[3578],{"type":24,"value":546},{"type":18,"tag":359,"props":3580,"children":3581},{"class":549},[3582],{"type":24,"value":570},{"type":18,"tag":359,"props":3584,"children":3585},{"class":366},[3586],{"type":24,"value":442},{"type":18,"tag":359,"props":3588,"children":3589},{"class":361,"line":577},[3590,3594,3598,3602,3606],{"type":18,"tag":359,"props":3591,"children":3592},{"class":366},[3593],{"type":24,"value":3080},{"type":18,"tag":359,"props":3595,"children":3596},{"class":372},[3597],{"type":24,"value":375},{"type":18,"tag":359,"props":3599,"children":3600},{"class":366},[3601],{"type":24,"value":1703},{"type":18,"tag":359,"props":3603,"children":3604},{"class":462},[3605],{"type":24,"value":1708},{"type":18,"tag":359,"props":3607,"children":3608},{"class":366},[3609],{"type":24,"value":1713},{"type":18,"tag":359,"props":3611,"children":3612},{"class":361,"line":605},[3613,3617,3621,3625,3629,3633,3638,3642,3646],{"type":18,"tag":359,"props":3614,"children":3615},{"class":366},[3616],{"type":24,"value":488},{"type":18,"tag":359,"props":3618,"children":3619},{"class":491},[3620],{"type":24,"value":3266},{"type":18,"tag":359,"props":3622,"children":3623},{"class":366},[3624],{"type":24,"value":421},{"type":18,"tag":359,"props":3626,"children":3627},{"class":372},[3628],{"type":24,"value":3275},{"type":18,"tag":359,"props":3630,"children":3631},{"class":366},[3632],{"type":24,"value":432},{"type":18,"tag":359,"props":3634,"children":3635},{"class":383},[3636],{"type":24,"value":3637},"'output.json'",{"type":18,"tag":359,"props":3639,"children":3640},{"class":366},[3641],{"type":24,"value":1822},{"type":18,"tag":359,"props":3643,"children":3644},{"class":491},[3645],{"type":24,"value":3302},{"type":18,"tag":359,"props":3647,"children":3648},{"class":366},[3649],{"type":24,"value":3650}," json_file:\n",{"type":18,"tag":359,"props":3652,"children":3653},{"class":361,"line":633},[3654,3659,3663,3667,3672],{"type":18,"tag":359,"props":3655,"children":3656},{"class":366},[3657],{"type":24,"value":3658},"            data ",{"type":18,"tag":359,"props":3660,"children":3661},{"class":372},[3662],{"type":24,"value":375},{"type":18,"tag":359,"props":3664,"children":3665},{"class":366},[3666],{"type":24,"value":592},{"type":18,"tag":359,"props":3668,"children":3669},{"class":462},[3670],{"type":24,"value":3671},"load",{"type":18,"tag":359,"props":3673,"children":3674},{"class":366},[3675],{"type":24,"value":3676},"(json_file)\n",{"type":18,"tag":359,"props":3678,"children":3679},{"class":361,"line":642},[3680,3685,3689,3694,3699,3704,3708,3713,3717,3721,3725],{"type":18,"tag":359,"props":3681,"children":3682},{"class":366},[3683],{"type":24,"value":3684},"        startdate ",{"type":18,"tag":359,"props":3686,"children":3687},{"class":372},[3688],{"type":24,"value":375},{"type":18,"tag":359,"props":3690,"children":3691},{"class":366},[3692],{"type":24,"value":3693}," datetime.",{"type":18,"tag":359,"props":3695,"children":3696},{"class":462},[3697],{"type":24,"value":3698},"datetime",{"type":18,"tag":359,"props":3700,"children":3701},{"class":366},[3702],{"type":24,"value":3703},"(data[",{"type":18,"tag":359,"props":3705,"children":3706},{"class":383},[3707],{"type":24,"value":3241},{"type":18,"tag":359,"props":3709,"children":3710},{"class":366},[3711],{"type":24,"value":3712},"], data[",{"type":18,"tag":359,"props":3714,"children":3715},{"class":383},[3716],{"type":24,"value":3216},{"type":18,"tag":359,"props":3718,"children":3719},{"class":366},[3720],{"type":24,"value":3712},{"type":18,"tag":359,"props":3722,"children":3723},{"class":383},[3724],{"type":24,"value":3190},{"type":18,"tag":359,"props":3726,"children":3727},{"class":366},[3728],{"type":24,"value":3729},"])\n",{"type":18,"tag":359,"props":3731,"children":3732},{"class":361,"line":670},[3733,3738,3742,3746,3750],{"type":18,"tag":359,"props":3734,"children":3735},{"class":366},[3736],{"type":24,"value":3737},"        enddate ",{"type":18,"tag":359,"props":3739,"children":3740},{"class":372},[3741],{"type":24,"value":375},{"type":18,"tag":359,"props":3743,"children":3744},{"class":366},[3745],{"type":24,"value":3693},{"type":18,"tag":359,"props":3747,"children":3748},{"class":462},[3749],{"type":24,"value":3698},{"type":18,"tag":359,"props":3751,"children":3752},{"class":366},[3753],{"type":24,"value":3754},"(dt.year, dt.month, dt.day)\n",{"type":18,"tag":359,"props":3756,"children":3757},{"class":361,"line":712},[3758,3763,3767,3772,3777],{"type":18,"tag":359,"props":3759,"children":3760},{"class":366},[3761],{"type":24,"value":3762},"        difference ",{"type":18,"tag":359,"props":3764,"children":3765},{"class":372},[3766],{"type":24,"value":375},{"type":18,"tag":359,"props":3768,"children":3769},{"class":366},[3770],{"type":24,"value":3771}," enddate ",{"type":18,"tag":359,"props":3773,"children":3774},{"class":372},[3775],{"type":24,"value":3776},"-",{"type":18,"tag":359,"props":3778,"children":3779},{"class":366},[3780],{"type":24,"value":3781}," startdate\n",{"type":18,"tag":359,"props":3783,"children":3784},{"class":361,"line":742},[3785,3789,3793,3798,3803,3807,3812],{"type":18,"tag":359,"props":3786,"children":3787},{"class":366},[3788],{"type":24,"value":488},{"type":18,"tag":359,"props":3790,"children":3791},{"class":491},[3792],{"type":24,"value":1726},{"type":18,"tag":359,"props":3794,"children":3795},{"class":366},[3796],{"type":24,"value":3797}," difference.days ",{"type":18,"tag":359,"props":3799,"children":3800},{"class":372},[3801],{"type":24,"value":3802},">",{"type":18,"tag":359,"props":3804,"children":3805},{"class":366},[3806],{"type":24,"value":421},{"type":18,"tag":359,"props":3808,"children":3809},{"class":1017},[3810],{"type":24,"value":3811},"14",{"type":18,"tag":359,"props":3813,"children":3814},{"class":366},[3815],{"type":24,"value":1750},{"type":18,"tag":359,"props":3817,"children":3818},{"class":361,"line":1098},[3819,3824,3828,3832,3836,3840,3844,3849],{"type":18,"tag":359,"props":3820,"children":3821},{"class":366},[3822],{"type":24,"value":3823},"            dispatcher.",{"type":18,"tag":359,"props":3825,"children":3826},{"class":462},[3827],{"type":24,"value":681},{"type":18,"tag":359,"props":3829,"children":3830},{"class":366},[3831],{"type":24,"value":432},{"type":18,"tag":359,"props":3833,"children":3834},{"class":688},[3835],{"type":24,"value":24},{"type":18,"tag":359,"props":3837,"children":3838},{"class":372},[3839],{"type":24,"value":375},{"type":18,"tag":359,"props":3841,"children":3842},{"class":413},[3843],{"type":24,"value":699},{"type":18,"tag":359,"props":3845,"children":3846},{"class":383},[3847],{"type":24,"value":3848},"\"You made it! Hope we don't meet again 🤣.\"",{"type":18,"tag":359,"props":3850,"children":3851},{"class":366},[3852],{"type":24,"value":709},{"type":18,"tag":359,"props":3854,"children":3855},{"class":361,"line":1127},[3856,3860,3864,3868,3873,3877,3881],{"type":18,"tag":359,"props":3857,"children":3858},{"class":366},[3859],{"type":24,"value":488},{"type":18,"tag":359,"props":3861,"children":3862},{"class":491},[3863],{"type":24,"value":1799},{"type":18,"tag":359,"props":3865,"children":3866},{"class":366},[3867],{"type":24,"value":3797},{"type":18,"tag":359,"props":3869,"children":3870},{"class":372},[3871],{"type":24,"value":3872},"\u003C=",{"type":18,"tag":359,"props":3874,"children":3875},{"class":366},[3876],{"type":24,"value":421},{"type":18,"tag":359,"props":3878,"children":3879},{"class":1017},[3880],{"type":24,"value":3811},{"type":18,"tag":359,"props":3882,"children":3883},{"class":366},[3884],{"type":24,"value":1750},{"type":18,"tag":359,"props":3886,"children":3887},{"class":361,"line":1492},[3888,3892,3896,3900,3904,3908,3912,3917],{"type":18,"tag":359,"props":3889,"children":3890},{"class":366},[3891],{"type":24,"value":3823},{"type":18,"tag":359,"props":3893,"children":3894},{"class":462},[3895],{"type":24,"value":681},{"type":18,"tag":359,"props":3897,"children":3898},{"class":366},[3899],{"type":24,"value":432},{"type":18,"tag":359,"props":3901,"children":3902},{"class":688},[3903],{"type":24,"value":24},{"type":18,"tag":359,"props":3905,"children":3906},{"class":372},[3907],{"type":24,"value":375},{"type":18,"tag":359,"props":3909,"children":3910},{"class":413},[3911],{"type":24,"value":699},{"type":18,"tag":359,"props":3913,"children":3914},{"class":383},[3915],{"type":24,"value":3916},"\"Add oil!\"",{"type":18,"tag":359,"props":3918,"children":3919},{"class":366},[3920],{"type":24,"value":709},{"type":18,"tag":359,"props":3922,"children":3923},{"class":361,"line":1942},[3924,3929,3933,3938,3942,3946,3951,3956,3960,3964,3969],{"type":18,"tag":359,"props":3925,"children":3926},{"class":366},[3927],{"type":24,"value":3928},"            percentage_left",{"type":18,"tag":359,"props":3930,"children":3931},{"class":372},[3932],{"type":24,"value":375},{"type":18,"tag":359,"props":3934,"children":3935},{"class":366},[3936],{"type":24,"value":3937},"((",{"type":18,"tag":359,"props":3939,"children":3940},{"class":1017},[3941],{"type":24,"value":3811},{"type":18,"tag":359,"props":3943,"children":3944},{"class":372},[3945],{"type":24,"value":3776},{"type":18,"tag":359,"props":3947,"children":3948},{"class":366},[3949],{"type":24,"value":3950},"difference.days)",{"type":18,"tag":359,"props":3952,"children":3953},{"class":372},[3954],{"type":24,"value":3955},"/",{"type":18,"tag":359,"props":3957,"children":3958},{"class":1017},[3959],{"type":24,"value":3811},{"type":18,"tag":359,"props":3961,"children":3962},{"class":366},[3963],{"type":24,"value":2252},{"type":18,"tag":359,"props":3965,"children":3966},{"class":372},[3967],{"type":24,"value":3968},"*",{"type":18,"tag":359,"props":3970,"children":3971},{"class":1017},[3972],{"type":24,"value":3973},"100\n",{"type":18,"tag":359,"props":3975,"children":3976},{"class":361,"line":1959},[3977,3982,3986,3991,3996],{"type":18,"tag":359,"props":3978,"children":3979},{"class":366},[3980],{"type":24,"value":3981},"            percentage_left_display ",{"type":18,"tag":359,"props":3983,"children":3984},{"class":372},[3985],{"type":24,"value":375},{"type":18,"tag":359,"props":3987,"children":3988},{"class":366},[3989],{"type":24,"value":3990}," (math.",{"type":18,"tag":359,"props":3992,"children":3993},{"class":462},[3994],{"type":24,"value":3995},"trunc",{"type":18,"tag":359,"props":3997,"children":3998},{"class":366},[3999],{"type":24,"value":4000},"(percentage_left))\n",{"type":18,"tag":359,"props":4002,"children":4003},{"class":361,"line":1967},[4004,4009,4013,4017,4021,4026,4030],{"type":18,"tag":359,"props":4005,"children":4006},{"class":366},[4007],{"type":24,"value":4008},"            percentage_left ",{"type":18,"tag":359,"props":4010,"children":4011},{"class":372},[4012],{"type":24,"value":375},{"type":18,"tag":359,"props":4014,"children":4015},{"class":366},[4016],{"type":24,"value":3990},{"type":18,"tag":359,"props":4018,"children":4019},{"class":462},[4020],{"type":24,"value":3995},{"type":18,"tag":359,"props":4022,"children":4023},{"class":366},[4024],{"type":24,"value":4025},"(percentage_left))",{"type":18,"tag":359,"props":4027,"children":4028},{"class":372},[4029],{"type":24,"value":2242},{"type":18,"tag":359,"props":4031,"children":4032},{"class":1017},[4033],{"type":24,"value":4034},"2\n",{"type":18,"tag":359,"props":4036,"children":4037},{"class":361,"line":1996},[4038,4043,4047],{"type":18,"tag":359,"props":4039,"children":4040},{"class":366},[4041],{"type":24,"value":4042},"            Progress_bar",{"type":18,"tag":359,"props":4044,"children":4045},{"class":372},[4046],{"type":24,"value":375},{"type":18,"tag":359,"props":4048,"children":4049},{"class":383},[4050],{"type":24,"value":4051},"'['\n",{"type":18,"tag":359,"props":4053,"children":4054},{"class":361,"line":2028},[4055,4059,4064,4069,4074,4078,4083,4087,4092,4096],{"type":18,"tag":359,"props":4056,"children":4057},{"class":366},[4058],{"type":24,"value":1721},{"type":18,"tag":359,"props":4060,"children":4061},{"class":491},[4062],{"type":24,"value":4063},"for",{"type":18,"tag":359,"props":4065,"children":4066},{"class":366},[4067],{"type":24,"value":4068}," x ",{"type":18,"tag":359,"props":4070,"children":4071},{"class":491},[4072],{"type":24,"value":4073},"in",{"type":18,"tag":359,"props":4075,"children":4076},{"class":366},[4077],{"type":24,"value":421},{"type":18,"tag":359,"props":4079,"children":4080},{"class":372},[4081],{"type":24,"value":4082},"range",{"type":18,"tag":359,"props":4084,"children":4085},{"class":366},[4086],{"type":24,"value":432},{"type":18,"tag":359,"props":4088,"children":4089},{"class":1017},[4090],{"type":24,"value":4091},"50",{"type":18,"tag":359,"props":4093,"children":4094},{"class":372},[4095],{"type":24,"value":3776},{"type":18,"tag":359,"props":4097,"children":4098},{"class":366},[4099],{"type":24,"value":4100},"percentage_left):\n",{"type":18,"tag":359,"props":4102,"children":4103},{"class":361,"line":2049},[4104,4109,4114,4118],{"type":18,"tag":359,"props":4105,"children":4106},{"class":366},[4107],{"type":24,"value":4108},"               Progress_bar ",{"type":18,"tag":359,"props":4110,"children":4111},{"class":372},[4112],{"type":24,"value":4113},"+=",{"type":18,"tag":359,"props":4115,"children":4116},{"class":366},[4117],{"type":24,"value":421},{"type":18,"tag":359,"props":4119,"children":4120},{"class":383},[4121],{"type":24,"value":4122},"'█'\n",{"type":18,"tag":359,"props":4124,"children":4125},{"class":361,"line":2089},[4126,4130,4134],{"type":18,"tag":359,"props":4127,"children":4128},{"class":366},[4129],{"type":24,"value":4042},{"type":18,"tag":359,"props":4131,"children":4132},{"class":372},[4133],{"type":24,"value":4113},{"type":18,"tag":359,"props":4135,"children":4136},{"class":383},[4137],{"type":24,"value":4138},"'🙋‍♂️'\n",{"type":18,"tag":359,"props":4140,"children":4141},{"class":361,"line":2105},[4142,4146,4150,4154,4158,4162,4166],{"type":18,"tag":359,"props":4143,"children":4144},{"class":366},[4145],{"type":24,"value":1721},{"type":18,"tag":359,"props":4147,"children":4148},{"class":491},[4149],{"type":24,"value":4063},{"type":18,"tag":359,"props":4151,"children":4152},{"class":366},[4153],{"type":24,"value":4068},{"type":18,"tag":359,"props":4155,"children":4156},{"class":491},[4157],{"type":24,"value":4073},{"type":18,"tag":359,"props":4159,"children":4160},{"class":366},[4161],{"type":24,"value":421},{"type":18,"tag":359,"props":4163,"children":4164},{"class":372},[4165],{"type":24,"value":4082},{"type":18,"tag":359,"props":4167,"children":4168},{"class":366},[4169],{"type":24,"value":4170},"(percentage_left):\n",{"type":18,"tag":359,"props":4172,"children":4173},{"class":361,"line":2121},[4174,4178,4182,4186],{"type":18,"tag":359,"props":4175,"children":4176},{"class":366},[4177],{"type":24,"value":4108},{"type":18,"tag":359,"props":4179,"children":4180},{"class":372},[4181],{"type":24,"value":4113},{"type":18,"tag":359,"props":4183,"children":4184},{"class":366},[4185],{"type":24,"value":421},{"type":18,"tag":359,"props":4187,"children":4188},{"class":383},[4189],{"type":24,"value":4190},"' '\n",{"type":18,"tag":359,"props":4192,"children":4193},{"class":361,"line":2129},[4194,4198,4202],{"type":18,"tag":359,"props":4195,"children":4196},{"class":366},[4197],{"type":24,"value":4042},{"type":18,"tag":359,"props":4199,"children":4200},{"class":372},[4201],{"type":24,"value":4113},{"type":18,"tag":359,"props":4203,"children":4204},{"class":383},[4205],{"type":24,"value":4206},"']🚩'\n",{"type":18,"tag":359,"props":4208,"children":4209},{"class":361,"line":2153},[4210,4214,4218,4222,4226,4230,4234,4238,4242,4247,4251,4255],{"type":18,"tag":359,"props":4211,"children":4212},{"class":366},[4213],{"type":24,"value":3823},{"type":18,"tag":359,"props":4215,"children":4216},{"class":462},[4217],{"type":24,"value":681},{"type":18,"tag":359,"props":4219,"children":4220},{"class":366},[4221],{"type":24,"value":432},{"type":18,"tag":359,"props":4223,"children":4224},{"class":688},[4225],{"type":24,"value":24},{"type":18,"tag":359,"props":4227,"children":4228},{"class":372},[4229],{"type":24,"value":375},{"type":18,"tag":359,"props":4231,"children":4232},{"class":413},[4233],{"type":24,"value":699},{"type":18,"tag":359,"props":4235,"children":4236},{"class":383},[4237],{"type":24,"value":3406},{"type":18,"tag":359,"props":4239,"children":4240},{"class":1017},[4241],{"type":24,"value":2335},{"type":18,"tag":359,"props":4243,"children":4244},{"class":366},[4245],{"type":24,"value":4246},"Progress_bar",{"type":18,"tag":359,"props":4248,"children":4249},{"class":1017},[4250],{"type":24,"value":2345},{"type":18,"tag":359,"props":4252,"children":4253},{"class":383},[4254],{"type":24,"value":3406},{"type":18,"tag":359,"props":4256,"children":4257},{"class":366},[4258],{"type":24,"value":709},{"type":18,"tag":359,"props":4260,"children":4261},{"class":361,"line":2189},[4262,4266,4270,4274,4278,4282,4286,4291,4295,4300,4304,4309,4314,4318,4323,4327,4332],{"type":18,"tag":359,"props":4263,"children":4264},{"class":366},[4265],{"type":24,"value":3823},{"type":18,"tag":359,"props":4267,"children":4268},{"class":462},[4269],{"type":24,"value":681},{"type":18,"tag":359,"props":4271,"children":4272},{"class":366},[4273],{"type":24,"value":432},{"type":18,"tag":359,"props":4275,"children":4276},{"class":688},[4277],{"type":24,"value":24},{"type":18,"tag":359,"props":4279,"children":4280},{"class":372},[4281],{"type":24,"value":375},{"type":18,"tag":359,"props":4283,"children":4284},{"class":413},[4285],{"type":24,"value":699},{"type":18,"tag":359,"props":4287,"children":4288},{"class":383},[4289],{"type":24,"value":4290},"\"You only have ",{"type":18,"tag":359,"props":4292,"children":4293},{"class":1017},[4294],{"type":24,"value":2335},{"type":18,"tag":359,"props":4296,"children":4297},{"class":366},[4298],{"type":24,"value":4299},"percentage_left_display",{"type":18,"tag":359,"props":4301,"children":4302},{"class":1017},[4303],{"type":24,"value":2345},{"type":18,"tag":359,"props":4305,"children":4306},{"class":383},[4307],{"type":24,"value":4308},"% left, ",{"type":18,"tag":359,"props":4310,"children":4311},{"class":1017},[4312],{"type":24,"value":4313},"{14",{"type":18,"tag":359,"props":4315,"children":4316},{"class":372},[4317],{"type":24,"value":3776},{"type":18,"tag":359,"props":4319,"children":4320},{"class":366},[4321],{"type":24,"value":4322},"difference.days",{"type":18,"tag":359,"props":4324,"children":4325},{"class":1017},[4326],{"type":24,"value":2345},{"type":18,"tag":359,"props":4328,"children":4329},{"class":383},[4330],{"type":24,"value":4331},"days to go ✨\"",{"type":18,"tag":359,"props":4333,"children":4334},{"class":366},[4335],{"type":24,"value":709},{"type":18,"tag":359,"props":4337,"children":4338},{"class":361,"line":2223},[4339,4343,4347],{"type":18,"tag":359,"props":4340,"children":4341},{"class":366},[4342],{"type":24,"value":488},{"type":18,"tag":359,"props":4344,"children":4345},{"class":491},[4346],{"type":24,"value":494},{"type":18,"tag":359,"props":4348,"children":4349},{"class":366},[4350],{"type":24,"value":756},{"type":18,"tag":326,"props":4352,"children":4354},{"id":4353},"rasa-intents-action-rules",[4355],{"type":24,"value":4356},"Rasa - intents/ action/ rules",{"type":18,"tag":27,"props":4358,"children":4359},{},[4360],{"type":24,"value":4361},"In this part, I will work the modules within Rasa. I don't want to explain too deeply how it works. (This diary is getting way too long...) In the nlu.yml files there's nothing special, I will mainly talk about the domain and stories files.",{"type":18,"tag":27,"props":4363,"children":4364},{},[4365],{"type":24,"value":4366},"Below is showing a part of the stories.yml . In this file, I defined serveral path on my functions. Such as, when a user ask for music, it will ask the user which type of music the user want, then return corresponding musics to the user, match that type.",{"type":18,"tag":316,"props":4368,"children":4373},{"className":4369,"code":4371,"language":4372,"meta":8},[4370],"language-yaml","- story: Pop Music\r\n  steps:\r\n    - intent: inquire_music\r\n    - action: utter_which_type_music?\r\n    - intent: inquire_pop_music\r\n    - action: utter_pop_music\r\n\r\n- story: Soft Music\r\n  steps:\r\n    - intent: inquire_music\r\n    - action: utter_which_type_music?\r\n    - intent: inquire_soft_music\r\n    - action: utter_soft_music\r\n\r\n- story: HumorousRobotPath\r\n  steps:\r\n    - intent: bot_challenge_humorous\r\n    - action: utter_i_am_humorous\r\n    - action: action_geek\r\n\r\n- story: return a joke if the user asked fun\r\n  steps:\r\n    - intent: request_jokes\r\n    - action: utter_searching for jokes\r\n    - action: action_geek\r\n    - action: utter_joke_ask_fun\r\n    - intent: affirm\r\n    - action: utter_thank_you\r\n\r\n- story: return a joke if the user asked not fun\r\n  steps:\r\n    - intent: request_jokes\r\n    - action: utter_searching for jokes\r\n    - action: action_geek\r\n    - action: utter_joke_ask_fun\r\n    - intent: deny\r\n    - action: utter_improve_next_time\n","yaml",[4374],{"type":18,"tag":352,"props":4375,"children":4376},{},[4377],{"type":18,"tag":316,"props":4378,"children":4379},{"__ignoreMap":8},[4380,4404,4421,4443,4464,4484,4504,4511,4531,4546,4565,4584,4604,4624,4631,4651,4666,4686,4706,4726,4733,4753,4768,4788,4808,4827,4847,4867,4887,4894,4914,4929,4948,4967,4986,5005,5025],{"type":18,"tag":359,"props":4381,"children":4382},{"class":361,"line":362},[4383,4388,4394,4399],{"type":18,"tag":359,"props":4384,"children":4385},{"class":366},[4386],{"type":24,"value":4387},"- ",{"type":18,"tag":359,"props":4389,"children":4391},{"class":4390},"ct-815945",[4392],{"type":24,"value":4393},"story",{"type":18,"tag":359,"props":4395,"children":4396},{"class":366},[4397],{"type":24,"value":4398},": ",{"type":18,"tag":359,"props":4400,"children":4401},{"class":383},[4402],{"type":24,"value":4403},"Pop Music\n",{"type":18,"tag":359,"props":4405,"children":4406},{"class":361,"line":170},[4407,4412,4417],{"type":18,"tag":359,"props":4408,"children":4409},{"class":366},[4410],{"type":24,"value":4411},"  ",{"type":18,"tag":359,"props":4413,"children":4414},{"class":4390},[4415],{"type":24,"value":4416},"steps",{"type":18,"tag":359,"props":4418,"children":4419},{"class":366},[4420],{"type":24,"value":1750},{"type":18,"tag":359,"props":4422,"children":4423},{"class":361,"line":167},[4424,4429,4434,4438],{"type":18,"tag":359,"props":4425,"children":4426},{"class":366},[4427],{"type":24,"value":4428},"    - ",{"type":18,"tag":359,"props":4430,"children":4431},{"class":4390},[4432],{"type":24,"value":4433},"intent",{"type":18,"tag":359,"props":4435,"children":4436},{"class":366},[4437],{"type":24,"value":4398},{"type":18,"tag":359,"props":4439,"children":4440},{"class":383},[4441],{"type":24,"value":4442},"inquire_music\n",{"type":18,"tag":359,"props":4444,"children":4445},{"class":361,"line":506},[4446,4450,4455,4459],{"type":18,"tag":359,"props":4447,"children":4448},{"class":366},[4449],{"type":24,"value":4428},{"type":18,"tag":359,"props":4451,"children":4452},{"class":4390},[4453],{"type":24,"value":4454},"action",{"type":18,"tag":359,"props":4456,"children":4457},{"class":366},[4458],{"type":24,"value":4398},{"type":18,"tag":359,"props":4460,"children":4461},{"class":383},[4462],{"type":24,"value":4463},"utter_which_type_music?\n",{"type":18,"tag":359,"props":4465,"children":4466},{"class":361,"line":515},[4467,4471,4475,4479],{"type":18,"tag":359,"props":4468,"children":4469},{"class":366},[4470],{"type":24,"value":4428},{"type":18,"tag":359,"props":4472,"children":4473},{"class":4390},[4474],{"type":24,"value":4433},{"type":18,"tag":359,"props":4476,"children":4477},{"class":366},[4478],{"type":24,"value":4398},{"type":18,"tag":359,"props":4480,"children":4481},{"class":383},[4482],{"type":24,"value":4483},"inquire_pop_music\n",{"type":18,"tag":359,"props":4485,"children":4486},{"class":361,"line":577},[4487,4491,4495,4499],{"type":18,"tag":359,"props":4488,"children":4489},{"class":366},[4490],{"type":24,"value":4428},{"type":18,"tag":359,"props":4492,"children":4493},{"class":4390},[4494],{"type":24,"value":4454},{"type":18,"tag":359,"props":4496,"children":4497},{"class":366},[4498],{"type":24,"value":4398},{"type":18,"tag":359,"props":4500,"children":4501},{"class":383},[4502],{"type":24,"value":4503},"utter_pop_music\n",{"type":18,"tag":359,"props":4505,"children":4506},{"class":361,"line":605},[4507],{"type":18,"tag":359,"props":4508,"children":4509},{},[4510],{"type":24,"value":512},{"type":18,"tag":359,"props":4512,"children":4513},{"class":361,"line":633},[4514,4518,4522,4526],{"type":18,"tag":359,"props":4515,"children":4516},{"class":366},[4517],{"type":24,"value":4387},{"type":18,"tag":359,"props":4519,"children":4520},{"class":4390},[4521],{"type":24,"value":4393},{"type":18,"tag":359,"props":4523,"children":4524},{"class":366},[4525],{"type":24,"value":4398},{"type":18,"tag":359,"props":4527,"children":4528},{"class":383},[4529],{"type":24,"value":4530},"Soft Music\n",{"type":18,"tag":359,"props":4532,"children":4533},{"class":361,"line":642},[4534,4538,4542],{"type":18,"tag":359,"props":4535,"children":4536},{"class":366},[4537],{"type":24,"value":4411},{"type":18,"tag":359,"props":4539,"children":4540},{"class":4390},[4541],{"type":24,"value":4416},{"type":18,"tag":359,"props":4543,"children":4544},{"class":366},[4545],{"type":24,"value":1750},{"type":18,"tag":359,"props":4547,"children":4548},{"class":361,"line":670},[4549,4553,4557,4561],{"type":18,"tag":359,"props":4550,"children":4551},{"class":366},[4552],{"type":24,"value":4428},{"type":18,"tag":359,"props":4554,"children":4555},{"class":4390},[4556],{"type":24,"value":4433},{"type":18,"tag":359,"props":4558,"children":4559},{"class":366},[4560],{"type":24,"value":4398},{"type":18,"tag":359,"props":4562,"children":4563},{"class":383},[4564],{"type":24,"value":4442},{"type":18,"tag":359,"props":4566,"children":4567},{"class":361,"line":712},[4568,4572,4576,4580],{"type":18,"tag":359,"props":4569,"children":4570},{"class":366},[4571],{"type":24,"value":4428},{"type":18,"tag":359,"props":4573,"children":4574},{"class":4390},[4575],{"type":24,"value":4454},{"type":18,"tag":359,"props":4577,"children":4578},{"class":366},[4579],{"type":24,"value":4398},{"type":18,"tag":359,"props":4581,"children":4582},{"class":383},[4583],{"type":24,"value":4463},{"type":18,"tag":359,"props":4585,"children":4586},{"class":361,"line":742},[4587,4591,4595,4599],{"type":18,"tag":359,"props":4588,"children":4589},{"class":366},[4590],{"type":24,"value":4428},{"type":18,"tag":359,"props":4592,"children":4593},{"class":4390},[4594],{"type":24,"value":4433},{"type":18,"tag":359,"props":4596,"children":4597},{"class":366},[4598],{"type":24,"value":4398},{"type":18,"tag":359,"props":4600,"children":4601},{"class":383},[4602],{"type":24,"value":4603},"inquire_soft_music\n",{"type":18,"tag":359,"props":4605,"children":4606},{"class":361,"line":1098},[4607,4611,4615,4619],{"type":18,"tag":359,"props":4608,"children":4609},{"class":366},[4610],{"type":24,"value":4428},{"type":18,"tag":359,"props":4612,"children":4613},{"class":4390},[4614],{"type":24,"value":4454},{"type":18,"tag":359,"props":4616,"children":4617},{"class":366},[4618],{"type":24,"value":4398},{"type":18,"tag":359,"props":4620,"children":4621},{"class":383},[4622],{"type":24,"value":4623},"utter_soft_music\n",{"type":18,"tag":359,"props":4625,"children":4626},{"class":361,"line":1127},[4627],{"type":18,"tag":359,"props":4628,"children":4629},{},[4630],{"type":24,"value":512},{"type":18,"tag":359,"props":4632,"children":4633},{"class":361,"line":1492},[4634,4638,4642,4646],{"type":18,"tag":359,"props":4635,"children":4636},{"class":366},[4637],{"type":24,"value":4387},{"type":18,"tag":359,"props":4639,"children":4640},{"class":4390},[4641],{"type":24,"value":4393},{"type":18,"tag":359,"props":4643,"children":4644},{"class":366},[4645],{"type":24,"value":4398},{"type":18,"tag":359,"props":4647,"children":4648},{"class":383},[4649],{"type":24,"value":4650},"HumorousRobotPath\n",{"type":18,"tag":359,"props":4652,"children":4653},{"class":361,"line":1942},[4654,4658,4662],{"type":18,"tag":359,"props":4655,"children":4656},{"class":366},[4657],{"type":24,"value":4411},{"type":18,"tag":359,"props":4659,"children":4660},{"class":4390},[4661],{"type":24,"value":4416},{"type":18,"tag":359,"props":4663,"children":4664},{"class":366},[4665],{"type":24,"value":1750},{"type":18,"tag":359,"props":4667,"children":4668},{"class":361,"line":1959},[4669,4673,4677,4681],{"type":18,"tag":359,"props":4670,"children":4671},{"class":366},[4672],{"type":24,"value":4428},{"type":18,"tag":359,"props":4674,"children":4675},{"class":4390},[4676],{"type":24,"value":4433},{"type":18,"tag":359,"props":4678,"children":4679},{"class":366},[4680],{"type":24,"value":4398},{"type":18,"tag":359,"props":4682,"children":4683},{"class":383},[4684],{"type":24,"value":4685},"bot_challenge_humorous\n",{"type":18,"tag":359,"props":4687,"children":4688},{"class":361,"line":1967},[4689,4693,4697,4701],{"type":18,"tag":359,"props":4690,"children":4691},{"class":366},[4692],{"type":24,"value":4428},{"type":18,"tag":359,"props":4694,"children":4695},{"class":4390},[4696],{"type":24,"value":4454},{"type":18,"tag":359,"props":4698,"children":4699},{"class":366},[4700],{"type":24,"value":4398},{"type":18,"tag":359,"props":4702,"children":4703},{"class":383},[4704],{"type":24,"value":4705},"utter_i_am_humorous\n",{"type":18,"tag":359,"props":4707,"children":4708},{"class":361,"line":1996},[4709,4713,4717,4721],{"type":18,"tag":359,"props":4710,"children":4711},{"class":366},[4712],{"type":24,"value":4428},{"type":18,"tag":359,"props":4714,"children":4715},{"class":4390},[4716],{"type":24,"value":4454},{"type":18,"tag":359,"props":4718,"children":4719},{"class":366},[4720],{"type":24,"value":4398},{"type":18,"tag":359,"props":4722,"children":4723},{"class":383},[4724],{"type":24,"value":4725},"action_geek\n",{"type":18,"tag":359,"props":4727,"children":4728},{"class":361,"line":2028},[4729],{"type":18,"tag":359,"props":4730,"children":4731},{},[4732],{"type":24,"value":512},{"type":18,"tag":359,"props":4734,"children":4735},{"class":361,"line":2049},[4736,4740,4744,4748],{"type":18,"tag":359,"props":4737,"children":4738},{"class":366},[4739],{"type":24,"value":4387},{"type":18,"tag":359,"props":4741,"children":4742},{"class":4390},[4743],{"type":24,"value":4393},{"type":18,"tag":359,"props":4745,"children":4746},{"class":366},[4747],{"type":24,"value":4398},{"type":18,"tag":359,"props":4749,"children":4750},{"class":383},[4751],{"type":24,"value":4752},"return a joke if the user asked fun\n",{"type":18,"tag":359,"props":4754,"children":4755},{"class":361,"line":2089},[4756,4760,4764],{"type":18,"tag":359,"props":4757,"children":4758},{"class":366},[4759],{"type":24,"value":4411},{"type":18,"tag":359,"props":4761,"children":4762},{"class":4390},[4763],{"type":24,"value":4416},{"type":18,"tag":359,"props":4765,"children":4766},{"class":366},[4767],{"type":24,"value":1750},{"type":18,"tag":359,"props":4769,"children":4770},{"class":361,"line":2105},[4771,4775,4779,4783],{"type":18,"tag":359,"props":4772,"children":4773},{"class":366},[4774],{"type":24,"value":4428},{"type":18,"tag":359,"props":4776,"children":4777},{"class":4390},[4778],{"type":24,"value":4433},{"type":18,"tag":359,"props":4780,"children":4781},{"class":366},[4782],{"type":24,"value":4398},{"type":18,"tag":359,"props":4784,"children":4785},{"class":383},[4786],{"type":24,"value":4787},"request_jokes\n",{"type":18,"tag":359,"props":4789,"children":4790},{"class":361,"line":2121},[4791,4795,4799,4803],{"type":18,"tag":359,"props":4792,"children":4793},{"class":366},[4794],{"type":24,"value":4428},{"type":18,"tag":359,"props":4796,"children":4797},{"class":4390},[4798],{"type":24,"value":4454},{"type":18,"tag":359,"props":4800,"children":4801},{"class":366},[4802],{"type":24,"value":4398},{"type":18,"tag":359,"props":4804,"children":4805},{"class":383},[4806],{"type":24,"value":4807},"utter_searching for jokes\n",{"type":18,"tag":359,"props":4809,"children":4810},{"class":361,"line":2129},[4811,4815,4819,4823],{"type":18,"tag":359,"props":4812,"children":4813},{"class":366},[4814],{"type":24,"value":4428},{"type":18,"tag":359,"props":4816,"children":4817},{"class":4390},[4818],{"type":24,"value":4454},{"type":18,"tag":359,"props":4820,"children":4821},{"class":366},[4822],{"type":24,"value":4398},{"type":18,"tag":359,"props":4824,"children":4825},{"class":383},[4826],{"type":24,"value":4725},{"type":18,"tag":359,"props":4828,"children":4829},{"class":361,"line":2153},[4830,4834,4838,4842],{"type":18,"tag":359,"props":4831,"children":4832},{"class":366},[4833],{"type":24,"value":4428},{"type":18,"tag":359,"props":4835,"children":4836},{"class":4390},[4837],{"type":24,"value":4454},{"type":18,"tag":359,"props":4839,"children":4840},{"class":366},[4841],{"type":24,"value":4398},{"type":18,"tag":359,"props":4843,"children":4844},{"class":383},[4845],{"type":24,"value":4846},"utter_joke_ask_fun\n",{"type":18,"tag":359,"props":4848,"children":4849},{"class":361,"line":2189},[4850,4854,4858,4862],{"type":18,"tag":359,"props":4851,"children":4852},{"class":366},[4853],{"type":24,"value":4428},{"type":18,"tag":359,"props":4855,"children":4856},{"class":4390},[4857],{"type":24,"value":4433},{"type":18,"tag":359,"props":4859,"children":4860},{"class":366},[4861],{"type":24,"value":4398},{"type":18,"tag":359,"props":4863,"children":4864},{"class":383},[4865],{"type":24,"value":4866},"affirm\n",{"type":18,"tag":359,"props":4868,"children":4869},{"class":361,"line":2223},[4870,4874,4878,4882],{"type":18,"tag":359,"props":4871,"children":4872},{"class":366},[4873],{"type":24,"value":4428},{"type":18,"tag":359,"props":4875,"children":4876},{"class":4390},[4877],{"type":24,"value":4454},{"type":18,"tag":359,"props":4879,"children":4880},{"class":366},[4881],{"type":24,"value":4398},{"type":18,"tag":359,"props":4883,"children":4884},{"class":383},[4885],{"type":24,"value":4886},"utter_thank_you\n",{"type":18,"tag":359,"props":4888,"children":4889},{"class":361,"line":2300},[4890],{"type":18,"tag":359,"props":4891,"children":4892},{},[4893],{"type":24,"value":512},{"type":18,"tag":359,"props":4895,"children":4896},{"class":361,"line":2428},[4897,4901,4905,4909],{"type":18,"tag":359,"props":4898,"children":4899},{"class":366},[4900],{"type":24,"value":4387},{"type":18,"tag":359,"props":4902,"children":4903},{"class":4390},[4904],{"type":24,"value":4393},{"type":18,"tag":359,"props":4906,"children":4907},{"class":366},[4908],{"type":24,"value":4398},{"type":18,"tag":359,"props":4910,"children":4911},{"class":383},[4912],{"type":24,"value":4913},"return a joke if the user asked not fun\n",{"type":18,"tag":359,"props":4915,"children":4916},{"class":361,"line":2469},[4917,4921,4925],{"type":18,"tag":359,"props":4918,"children":4919},{"class":366},[4920],{"type":24,"value":4411},{"type":18,"tag":359,"props":4922,"children":4923},{"class":4390},[4924],{"type":24,"value":4416},{"type":18,"tag":359,"props":4926,"children":4927},{"class":366},[4928],{"type":24,"value":1750},{"type":18,"tag":359,"props":4930,"children":4931},{"class":361,"line":2586},[4932,4936,4940,4944],{"type":18,"tag":359,"props":4933,"children":4934},{"class":366},[4935],{"type":24,"value":4428},{"type":18,"tag":359,"props":4937,"children":4938},{"class":4390},[4939],{"type":24,"value":4433},{"type":18,"tag":359,"props":4941,"children":4942},{"class":366},[4943],{"type":24,"value":4398},{"type":18,"tag":359,"props":4945,"children":4946},{"class":383},[4947],{"type":24,"value":4787},{"type":18,"tag":359,"props":4949,"children":4950},{"class":361,"line":2627},[4951,4955,4959,4963],{"type":18,"tag":359,"props":4952,"children":4953},{"class":366},[4954],{"type":24,"value":4428},{"type":18,"tag":359,"props":4956,"children":4957},{"class":4390},[4958],{"type":24,"value":4454},{"type":18,"tag":359,"props":4960,"children":4961},{"class":366},[4962],{"type":24,"value":4398},{"type":18,"tag":359,"props":4964,"children":4965},{"class":383},[4966],{"type":24,"value":4807},{"type":18,"tag":359,"props":4968,"children":4969},{"class":361,"line":2744},[4970,4974,4978,4982],{"type":18,"tag":359,"props":4971,"children":4972},{"class":366},[4973],{"type":24,"value":4428},{"type":18,"tag":359,"props":4975,"children":4976},{"class":4390},[4977],{"type":24,"value":4454},{"type":18,"tag":359,"props":4979,"children":4980},{"class":366},[4981],{"type":24,"value":4398},{"type":18,"tag":359,"props":4983,"children":4984},{"class":383},[4985],{"type":24,"value":4725},{"type":18,"tag":359,"props":4987,"children":4988},{"class":361,"line":2760},[4989,4993,4997,5001],{"type":18,"tag":359,"props":4990,"children":4991},{"class":366},[4992],{"type":24,"value":4428},{"type":18,"tag":359,"props":4994,"children":4995},{"class":4390},[4996],{"type":24,"value":4454},{"type":18,"tag":359,"props":4998,"children":4999},{"class":366},[5000],{"type":24,"value":4398},{"type":18,"tag":359,"props":5002,"children":5003},{"class":383},[5004],{"type":24,"value":4846},{"type":18,"tag":359,"props":5006,"children":5007},{"class":361,"line":2876},[5008,5012,5016,5020],{"type":18,"tag":359,"props":5009,"children":5010},{"class":366},[5011],{"type":24,"value":4428},{"type":18,"tag":359,"props":5013,"children":5014},{"class":4390},[5015],{"type":24,"value":4433},{"type":18,"tag":359,"props":5017,"children":5018},{"class":366},[5019],{"type":24,"value":4398},{"type":18,"tag":359,"props":5021,"children":5022},{"class":383},[5023],{"type":24,"value":5024},"deny\n",{"type":18,"tag":359,"props":5026,"children":5028},{"class":361,"line":5027},37,[5029,5033,5037,5041],{"type":18,"tag":359,"props":5030,"children":5031},{"class":366},[5032],{"type":24,"value":4428},{"type":18,"tag":359,"props":5034,"children":5035},{"class":4390},[5036],{"type":24,"value":4454},{"type":18,"tag":359,"props":5038,"children":5039},{"class":366},[5040],{"type":24,"value":4398},{"type":18,"tag":359,"props":5042,"children":5043},{"class":383},[5044],{"type":24,"value":5045},"utter_improve_next_time",{"type":18,"tag":27,"props":5047,"children":5048},{},[5049],{"type":24,"value":5050},"⬇️Below is showing the domain.yml file. This is where I defined the actions, though default. In here, my goal is to make as much as reactions possible. By putting multiple text responses under the same action, rasa would choose randomly which text responses to take. So in this case, the responses are more random, the robot talks like a human",{"type":18,"tag":316,"props":5052,"children":5055},{"className":5053,"code":5054,"language":4372,"meta":8},[4370],"utter_goodbye:\r\n    - text: \"Bye\"\r\n    - text: \"Seeya\"\r\n    - text: \"GoodBye~\"\r\n\r\n  utter_goodnight:\r\n    - text: \"See you tomorrow, Goodnight🌙🌙\"\r\n    - text: \"Have a nice sleep.\"\r\n    - text: \"Here are some sleep music if you want\\nhttps://youtu.be/7n9W8lKPdAE\"\r\n\r\n  utter_iamabot:\r\n    - text: \"I am your quarantine companion.\"\r\n\r\n  utter_which_type_music?:\r\n    - text: \"Which genre of music you prefer? Pop music? Soft music?🎵\"\r\n    - text: \"I have many types of music in my brain? Do you want pop songs or soft music?\"\r\n\r\n  utter_pop_music:\r\n    - text: \"There you go ♪(´▽｀):\\nhttps://youtu.be/dQw4w9WgXcQ\"\r\n    - text: \"How about this?\\nhttps://youtu.be/fcZXfoB2f70\"\r\n    - text: \"Hope you like this:\\nhttps://youtu.be/atuFSv2bLa8\"\r\n\r\n  utter_soft_music:\r\n    - text: \"Calm radio for you~ (_　_)。゜zｚＺ:\\nhttps://youtu.be/DWcJFNfaw9c\"\r\n    - text: \"Do you like Lofi music?:\\nhttps://youtu.be/DWcJFNfaw9c\"\r\n\r\n  utter_i_am_humorous:\r\n    - text: \"Yes! I am the most humorous bot on this planet!\"\r\n    - text: \"Sure! I can make you laugh anytime\"\r\n\r\n  utter_searching for jokes:\r\n    - text: \"🤔Let me see...How about this? It sounds fun to me😂\"\r\n    - text: \"Take this...I bet you can't stop laughing for 5 minutes straight on!\"\r\n\r\n  utter_joke_ask_fun:\r\n    - text: \"Is this fun?\"\r\n    - text: \"Did this make you laugh\"\n",[5056],{"type":18,"tag":352,"props":5057,"children":5058},{},[5059],{"type":18,"tag":316,"props":5060,"children":5061},{"__ignoreMap":8},[5062,5074,5094,5114,5134,5141,5157,5177,5197,5227,5234,5250,5270,5277,5293,5313,5333,5340,5356,5385,5414,5443,5450,5466,5495,5523,5530,5546,5566,5586,5593,5609,5629,5649,5656,5672,5692],{"type":18,"tag":359,"props":5063,"children":5064},{"class":361,"line":362},[5065,5070],{"type":18,"tag":359,"props":5066,"children":5067},{"class":4390},[5068],{"type":24,"value":5069},"utter_goodbye",{"type":18,"tag":359,"props":5071,"children":5072},{"class":366},[5073],{"type":24,"value":1750},{"type":18,"tag":359,"props":5075,"children":5076},{"class":361,"line":170},[5077,5081,5085,5089],{"type":18,"tag":359,"props":5078,"children":5079},{"class":366},[5080],{"type":24,"value":4428},{"type":18,"tag":359,"props":5082,"children":5083},{"class":4390},[5084],{"type":24,"value":24},{"type":18,"tag":359,"props":5086,"children":5087},{"class":366},[5088],{"type":24,"value":4398},{"type":18,"tag":359,"props":5090,"children":5091},{"class":383},[5092],{"type":24,"value":5093},"\"Bye\"\n",{"type":18,"tag":359,"props":5095,"children":5096},{"class":361,"line":167},[5097,5101,5105,5109],{"type":18,"tag":359,"props":5098,"children":5099},{"class":366},[5100],{"type":24,"value":4428},{"type":18,"tag":359,"props":5102,"children":5103},{"class":4390},[5104],{"type":24,"value":24},{"type":18,"tag":359,"props":5106,"children":5107},{"class":366},[5108],{"type":24,"value":4398},{"type":18,"tag":359,"props":5110,"children":5111},{"class":383},[5112],{"type":24,"value":5113},"\"Seeya\"\n",{"type":18,"tag":359,"props":5115,"children":5116},{"class":361,"line":506},[5117,5121,5125,5129],{"type":18,"tag":359,"props":5118,"children":5119},{"class":366},[5120],{"type":24,"value":4428},{"type":18,"tag":359,"props":5122,"children":5123},{"class":4390},[5124],{"type":24,"value":24},{"type":18,"tag":359,"props":5126,"children":5127},{"class":366},[5128],{"type":24,"value":4398},{"type":18,"tag":359,"props":5130,"children":5131},{"class":383},[5132],{"type":24,"value":5133},"\"GoodBye~\"\n",{"type":18,"tag":359,"props":5135,"children":5136},{"class":361,"line":515},[5137],{"type":18,"tag":359,"props":5138,"children":5139},{},[5140],{"type":24,"value":512},{"type":18,"tag":359,"props":5142,"children":5143},{"class":361,"line":577},[5144,5148,5153],{"type":18,"tag":359,"props":5145,"children":5146},{"class":366},[5147],{"type":24,"value":4411},{"type":18,"tag":359,"props":5149,"children":5150},{"class":4390},[5151],{"type":24,"value":5152},"utter_goodnight",{"type":18,"tag":359,"props":5154,"children":5155},{"class":366},[5156],{"type":24,"value":1750},{"type":18,"tag":359,"props":5158,"children":5159},{"class":361,"line":605},[5160,5164,5168,5172],{"type":18,"tag":359,"props":5161,"children":5162},{"class":366},[5163],{"type":24,"value":4428},{"type":18,"tag":359,"props":5165,"children":5166},{"class":4390},[5167],{"type":24,"value":24},{"type":18,"tag":359,"props":5169,"children":5170},{"class":366},[5171],{"type":24,"value":4398},{"type":18,"tag":359,"props":5173,"children":5174},{"class":383},[5175],{"type":24,"value":5176},"\"See you tomorrow, Goodnight🌙🌙\"\n",{"type":18,"tag":359,"props":5178,"children":5179},{"class":361,"line":633},[5180,5184,5188,5192],{"type":18,"tag":359,"props":5181,"children":5182},{"class":366},[5183],{"type":24,"value":4428},{"type":18,"tag":359,"props":5185,"children":5186},{"class":4390},[5187],{"type":24,"value":24},{"type":18,"tag":359,"props":5189,"children":5190},{"class":366},[5191],{"type":24,"value":4398},{"type":18,"tag":359,"props":5193,"children":5194},{"class":383},[5195],{"type":24,"value":5196},"\"Have a nice sleep.\"\n",{"type":18,"tag":359,"props":5198,"children":5199},{"class":361,"line":642},[5200,5204,5208,5212,5217,5222],{"type":18,"tag":359,"props":5201,"children":5202},{"class":366},[5203],{"type":24,"value":4428},{"type":18,"tag":359,"props":5205,"children":5206},{"class":4390},[5207],{"type":24,"value":24},{"type":18,"tag":359,"props":5209,"children":5210},{"class":366},[5211],{"type":24,"value":4398},{"type":18,"tag":359,"props":5213,"children":5214},{"class":383},[5215],{"type":24,"value":5216},"\"Here are some sleep music if you want",{"type":18,"tag":359,"props":5218,"children":5219},{"class":372},[5220],{"type":24,"value":5221},"\\n",{"type":18,"tag":359,"props":5223,"children":5224},{"class":383},[5225],{"type":24,"value":5226},"https://youtu.be/7n9W8lKPdAE\"\n",{"type":18,"tag":359,"props":5228,"children":5229},{"class":361,"line":670},[5230],{"type":18,"tag":359,"props":5231,"children":5232},{},[5233],{"type":24,"value":512},{"type":18,"tag":359,"props":5235,"children":5236},{"class":361,"line":712},[5237,5241,5246],{"type":18,"tag":359,"props":5238,"children":5239},{"class":366},[5240],{"type":24,"value":4411},{"type":18,"tag":359,"props":5242,"children":5243},{"class":4390},[5244],{"type":24,"value":5245},"utter_iamabot",{"type":18,"tag":359,"props":5247,"children":5248},{"class":366},[5249],{"type":24,"value":1750},{"type":18,"tag":359,"props":5251,"children":5252},{"class":361,"line":742},[5253,5257,5261,5265],{"type":18,"tag":359,"props":5254,"children":5255},{"class":366},[5256],{"type":24,"value":4428},{"type":18,"tag":359,"props":5258,"children":5259},{"class":4390},[5260],{"type":24,"value":24},{"type":18,"tag":359,"props":5262,"children":5263},{"class":366},[5264],{"type":24,"value":4398},{"type":18,"tag":359,"props":5266,"children":5267},{"class":383},[5268],{"type":24,"value":5269},"\"I am your quarantine companion.\"\n",{"type":18,"tag":359,"props":5271,"children":5272},{"class":361,"line":1098},[5273],{"type":18,"tag":359,"props":5274,"children":5275},{},[5276],{"type":24,"value":512},{"type":18,"tag":359,"props":5278,"children":5279},{"class":361,"line":1127},[5280,5284,5289],{"type":18,"tag":359,"props":5281,"children":5282},{"class":366},[5283],{"type":24,"value":4411},{"type":18,"tag":359,"props":5285,"children":5286},{"class":4390},[5287],{"type":24,"value":5288},"utter_which_type_music?",{"type":18,"tag":359,"props":5290,"children":5291},{"class":366},[5292],{"type":24,"value":1750},{"type":18,"tag":359,"props":5294,"children":5295},{"class":361,"line":1492},[5296,5300,5304,5308],{"type":18,"tag":359,"props":5297,"children":5298},{"class":366},[5299],{"type":24,"value":4428},{"type":18,"tag":359,"props":5301,"children":5302},{"class":4390},[5303],{"type":24,"value":24},{"type":18,"tag":359,"props":5305,"children":5306},{"class":366},[5307],{"type":24,"value":4398},{"type":18,"tag":359,"props":5309,"children":5310},{"class":383},[5311],{"type":24,"value":5312},"\"Which genre of music you prefer? Pop music? Soft music?🎵\"\n",{"type":18,"tag":359,"props":5314,"children":5315},{"class":361,"line":1942},[5316,5320,5324,5328],{"type":18,"tag":359,"props":5317,"children":5318},{"class":366},[5319],{"type":24,"value":4428},{"type":18,"tag":359,"props":5321,"children":5322},{"class":4390},[5323],{"type":24,"value":24},{"type":18,"tag":359,"props":5325,"children":5326},{"class":366},[5327],{"type":24,"value":4398},{"type":18,"tag":359,"props":5329,"children":5330},{"class":383},[5331],{"type":24,"value":5332},"\"I have many types of music in my brain? Do you want pop songs or soft music?\"\n",{"type":18,"tag":359,"props":5334,"children":5335},{"class":361,"line":1959},[5336],{"type":18,"tag":359,"props":5337,"children":5338},{},[5339],{"type":24,"value":512},{"type":18,"tag":359,"props":5341,"children":5342},{"class":361,"line":1967},[5343,5347,5352],{"type":18,"tag":359,"props":5344,"children":5345},{"class":366},[5346],{"type":24,"value":4411},{"type":18,"tag":359,"props":5348,"children":5349},{"class":4390},[5350],{"type":24,"value":5351},"utter_pop_music",{"type":18,"tag":359,"props":5353,"children":5354},{"class":366},[5355],{"type":24,"value":1750},{"type":18,"tag":359,"props":5357,"children":5358},{"class":361,"line":1996},[5359,5363,5367,5371,5376,5380],{"type":18,"tag":359,"props":5360,"children":5361},{"class":366},[5362],{"type":24,"value":4428},{"type":18,"tag":359,"props":5364,"children":5365},{"class":4390},[5366],{"type":24,"value":24},{"type":18,"tag":359,"props":5368,"children":5369},{"class":366},[5370],{"type":24,"value":4398},{"type":18,"tag":359,"props":5372,"children":5373},{"class":383},[5374],{"type":24,"value":5375},"\"There you go ♪(´▽｀):",{"type":18,"tag":359,"props":5377,"children":5378},{"class":372},[5379],{"type":24,"value":5221},{"type":18,"tag":359,"props":5381,"children":5382},{"class":383},[5383],{"type":24,"value":5384},"https://youtu.be/dQw4w9WgXcQ\"\n",{"type":18,"tag":359,"props":5386,"children":5387},{"class":361,"line":2028},[5388,5392,5396,5400,5405,5409],{"type":18,"tag":359,"props":5389,"children":5390},{"class":366},[5391],{"type":24,"value":4428},{"type":18,"tag":359,"props":5393,"children":5394},{"class":4390},[5395],{"type":24,"value":24},{"type":18,"tag":359,"props":5397,"children":5398},{"class":366},[5399],{"type":24,"value":4398},{"type":18,"tag":359,"props":5401,"children":5402},{"class":383},[5403],{"type":24,"value":5404},"\"How about this?",{"type":18,"tag":359,"props":5406,"children":5407},{"class":372},[5408],{"type":24,"value":5221},{"type":18,"tag":359,"props":5410,"children":5411},{"class":383},[5412],{"type":24,"value":5413},"https://youtu.be/fcZXfoB2f70\"\n",{"type":18,"tag":359,"props":5415,"children":5416},{"class":361,"line":2049},[5417,5421,5425,5429,5434,5438],{"type":18,"tag":359,"props":5418,"children":5419},{"class":366},[5420],{"type":24,"value":4428},{"type":18,"tag":359,"props":5422,"children":5423},{"class":4390},[5424],{"type":24,"value":24},{"type":18,"tag":359,"props":5426,"children":5427},{"class":366},[5428],{"type":24,"value":4398},{"type":18,"tag":359,"props":5430,"children":5431},{"class":383},[5432],{"type":24,"value":5433},"\"Hope you like this:",{"type":18,"tag":359,"props":5435,"children":5436},{"class":372},[5437],{"type":24,"value":5221},{"type":18,"tag":359,"props":5439,"children":5440},{"class":383},[5441],{"type":24,"value":5442},"https://youtu.be/atuFSv2bLa8\"\n",{"type":18,"tag":359,"props":5444,"children":5445},{"class":361,"line":2089},[5446],{"type":18,"tag":359,"props":5447,"children":5448},{},[5449],{"type":24,"value":512},{"type":18,"tag":359,"props":5451,"children":5452},{"class":361,"line":2105},[5453,5457,5462],{"type":18,"tag":359,"props":5454,"children":5455},{"class":366},[5456],{"type":24,"value":4411},{"type":18,"tag":359,"props":5458,"children":5459},{"class":4390},[5460],{"type":24,"value":5461},"utter_soft_music",{"type":18,"tag":359,"props":5463,"children":5464},{"class":366},[5465],{"type":24,"value":1750},{"type":18,"tag":359,"props":5467,"children":5468},{"class":361,"line":2121},[5469,5473,5477,5481,5486,5490],{"type":18,"tag":359,"props":5470,"children":5471},{"class":366},[5472],{"type":24,"value":4428},{"type":18,"tag":359,"props":5474,"children":5475},{"class":4390},[5476],{"type":24,"value":24},{"type":18,"tag":359,"props":5478,"children":5479},{"class":366},[5480],{"type":24,"value":4398},{"type":18,"tag":359,"props":5482,"children":5483},{"class":383},[5484],{"type":24,"value":5485},"\"Calm radio for you~ (_　_)。゜zｚＺ:",{"type":18,"tag":359,"props":5487,"children":5488},{"class":372},[5489],{"type":24,"value":5221},{"type":18,"tag":359,"props":5491,"children":5492},{"class":383},[5493],{"type":24,"value":5494},"https://youtu.be/DWcJFNfaw9c\"\n",{"type":18,"tag":359,"props":5496,"children":5497},{"class":361,"line":2129},[5498,5502,5506,5510,5515,5519],{"type":18,"tag":359,"props":5499,"children":5500},{"class":366},[5501],{"type":24,"value":4428},{"type":18,"tag":359,"props":5503,"children":5504},{"class":4390},[5505],{"type":24,"value":24},{"type":18,"tag":359,"props":5507,"children":5508},{"class":366},[5509],{"type":24,"value":4398},{"type":18,"tag":359,"props":5511,"children":5512},{"class":383},[5513],{"type":24,"value":5514},"\"Do you like Lofi music?:",{"type":18,"tag":359,"props":5516,"children":5517},{"class":372},[5518],{"type":24,"value":5221},{"type":18,"tag":359,"props":5520,"children":5521},{"class":383},[5522],{"type":24,"value":5494},{"type":18,"tag":359,"props":5524,"children":5525},{"class":361,"line":2153},[5526],{"type":18,"tag":359,"props":5527,"children":5528},{},[5529],{"type":24,"value":512},{"type":18,"tag":359,"props":5531,"children":5532},{"class":361,"line":2189},[5533,5537,5542],{"type":18,"tag":359,"props":5534,"children":5535},{"class":366},[5536],{"type":24,"value":4411},{"type":18,"tag":359,"props":5538,"children":5539},{"class":4390},[5540],{"type":24,"value":5541},"utter_i_am_humorous",{"type":18,"tag":359,"props":5543,"children":5544},{"class":366},[5545],{"type":24,"value":1750},{"type":18,"tag":359,"props":5547,"children":5548},{"class":361,"line":2223},[5549,5553,5557,5561],{"type":18,"tag":359,"props":5550,"children":5551},{"class":366},[5552],{"type":24,"value":4428},{"type":18,"tag":359,"props":5554,"children":5555},{"class":4390},[5556],{"type":24,"value":24},{"type":18,"tag":359,"props":5558,"children":5559},{"class":366},[5560],{"type":24,"value":4398},{"type":18,"tag":359,"props":5562,"children":5563},{"class":383},[5564],{"type":24,"value":5565},"\"Yes! I am the most humorous bot on this planet!\"\n",{"type":18,"tag":359,"props":5567,"children":5568},{"class":361,"line":2300},[5569,5573,5577,5581],{"type":18,"tag":359,"props":5570,"children":5571},{"class":366},[5572],{"type":24,"value":4428},{"type":18,"tag":359,"props":5574,"children":5575},{"class":4390},[5576],{"type":24,"value":24},{"type":18,"tag":359,"props":5578,"children":5579},{"class":366},[5580],{"type":24,"value":4398},{"type":18,"tag":359,"props":5582,"children":5583},{"class":383},[5584],{"type":24,"value":5585},"\"Sure! I can make you laugh anytime\"\n",{"type":18,"tag":359,"props":5587,"children":5588},{"class":361,"line":2428},[5589],{"type":18,"tag":359,"props":5590,"children":5591},{},[5592],{"type":24,"value":512},{"type":18,"tag":359,"props":5594,"children":5595},{"class":361,"line":2469},[5596,5600,5605],{"type":18,"tag":359,"props":5597,"children":5598},{"class":366},[5599],{"type":24,"value":4411},{"type":18,"tag":359,"props":5601,"children":5602},{"class":4390},[5603],{"type":24,"value":5604},"utter_searching for jokes",{"type":18,"tag":359,"props":5606,"children":5607},{"class":366},[5608],{"type":24,"value":1750},{"type":18,"tag":359,"props":5610,"children":5611},{"class":361,"line":2586},[5612,5616,5620,5624],{"type":18,"tag":359,"props":5613,"children":5614},{"class":366},[5615],{"type":24,"value":4428},{"type":18,"tag":359,"props":5617,"children":5618},{"class":4390},[5619],{"type":24,"value":24},{"type":18,"tag":359,"props":5621,"children":5622},{"class":366},[5623],{"type":24,"value":4398},{"type":18,"tag":359,"props":5625,"children":5626},{"class":383},[5627],{"type":24,"value":5628},"\"🤔Let me see...How about this? It sounds fun to me😂\"\n",{"type":18,"tag":359,"props":5630,"children":5631},{"class":361,"line":2627},[5632,5636,5640,5644],{"type":18,"tag":359,"props":5633,"children":5634},{"class":366},[5635],{"type":24,"value":4428},{"type":18,"tag":359,"props":5637,"children":5638},{"class":4390},[5639],{"type":24,"value":24},{"type":18,"tag":359,"props":5641,"children":5642},{"class":366},[5643],{"type":24,"value":4398},{"type":18,"tag":359,"props":5645,"children":5646},{"class":383},[5647],{"type":24,"value":5648},"\"Take this...I bet you can't stop laughing for 5 minutes straight on!\"\n",{"type":18,"tag":359,"props":5650,"children":5651},{"class":361,"line":2744},[5652],{"type":18,"tag":359,"props":5653,"children":5654},{},[5655],{"type":24,"value":512},{"type":18,"tag":359,"props":5657,"children":5658},{"class":361,"line":2760},[5659,5663,5668],{"type":18,"tag":359,"props":5660,"children":5661},{"class":366},[5662],{"type":24,"value":4411},{"type":18,"tag":359,"props":5664,"children":5665},{"class":4390},[5666],{"type":24,"value":5667},"utter_joke_ask_fun",{"type":18,"tag":359,"props":5669,"children":5670},{"class":366},[5671],{"type":24,"value":1750},{"type":18,"tag":359,"props":5673,"children":5674},{"class":361,"line":2876},[5675,5679,5683,5687],{"type":18,"tag":359,"props":5676,"children":5677},{"class":366},[5678],{"type":24,"value":4428},{"type":18,"tag":359,"props":5680,"children":5681},{"class":4390},[5682],{"type":24,"value":24},{"type":18,"tag":359,"props":5684,"children":5685},{"class":366},[5686],{"type":24,"value":4398},{"type":18,"tag":359,"props":5688,"children":5689},{"class":383},[5690],{"type":24,"value":5691},"\"Is this fun?\"\n",{"type":18,"tag":359,"props":5693,"children":5694},{"class":361,"line":5027},[5695,5699,5703,5707],{"type":18,"tag":359,"props":5696,"children":5697},{"class":366},[5698],{"type":24,"value":4428},{"type":18,"tag":359,"props":5700,"children":5701},{"class":4390},[5702],{"type":24,"value":24},{"type":18,"tag":359,"props":5704,"children":5705},{"class":366},[5706],{"type":24,"value":4398},{"type":18,"tag":359,"props":5708,"children":5709},{"class":383},[5710],{"type":24,"value":5711},"\"Did this make you laugh\"",{"type":18,"tag":19,"props":5713,"children":5715},{"id":5714},"coding-thoughts",[5716],{"type":24,"value":5717},"Coding & Thoughts",{"type":18,"tag":261,"props":5719,"children":5720},{},[5721],{"type":18,"tag":27,"props":5722,"children":5723},{},[5724],{"type":24,"value":5725},"Make it human-like",{"type":18,"tag":27,"props":5727,"children":5728},{},[5729],{"type":24,"value":5730},"This is a long story.... If you had pay attention to what I showed above, mainly the codes, you will find there's many 'decoration' What I am trying to do in those case is to make the robot respond as humanly as possible.",{"type":18,"tag":27,"props":5732,"children":5733},{},[5734],{"type":24,"value":5735},"This is a good example. Both responses are a online responeses pulled from an API. In the previous testing, we found that, sometimes network may lag. This is especially true when we host the robot on other server. In this case, I wish it to provide something first, so the user won't have to wait for a blank screen. Moreover, let's say if the user want weather, I add the robot actions before my teammates work, so it will feel more of human-like. I also want to see things the prespective of the robot. So by using 'asking my friend at HKO' , it would make much of the sense, the rasa robot is asking the friends in HKO, which is happended to be a robot that boardcast APIs. So the information makes sense, also the users get to know where the weather information comes from. Same for the jokes, it would need something before the actual jokes returned. Moreover, this is a robot, so why not programmer jokes?",{"type":18,"tag":316,"props":5737,"children":5742},{"className":5738,"code":5740,"language":5741,"meta":8},[5739],"language-shell","Your input -> are you a humorous robot?\r\nYes! I am the most humorous bot in the planet! Let me cheer you up!\r\n‘Perl - The only Language that looks the same before and after RSA encryption.' - [Keith Bostic]\r\nYour input -> weather\r\nLet me ask my friends at the Hong Hong Obeservatory.\r\nThere you go!\r\nThe temperature now is 16C, Cloudy with a few showers. More showers with a few squally thunderstorms later tomorrow. Temperatures will range between 17 and 21 degrees. Moderate to fresh easterly winds, occasionally strong offshore Later.\n","shell",[5743],{"type":18,"tag":352,"props":5744,"children":5745},{},[5746],{"type":18,"tag":316,"props":5747,"children":5748},{"__ignoreMap":8},[5749,5808,5934,6052,6060,6068,6076],{"type":18,"tag":359,"props":5750,"children":5751},{"class":361,"line":362},[5752,5757,5762,5767,5772,5776,5781,5785,5790,5794,5799,5803],{"type":18,"tag":359,"props":5753,"children":5754},{"class":366},[5755],{"type":24,"value":5756},"Your ",{"type":18,"tag":359,"props":5758,"children":5759},{"class":383},[5760],{"type":24,"value":5761},"input",{"type":18,"tag":359,"props":5763,"children":5764},{"class":366},[5765],{"type":24,"value":5766}," -> ",{"type":18,"tag":359,"props":5768,"children":5769},{"class":383},[5770],{"type":24,"value":5771},"are",{"type":18,"tag":359,"props":5773,"children":5774},{"class":366},[5775],{"type":24,"value":421},{"type":18,"tag":359,"props":5777,"children":5778},{"class":383},[5779],{"type":24,"value":5780},"you",{"type":18,"tag":359,"props":5782,"children":5783},{"class":366},[5784],{"type":24,"value":421},{"type":18,"tag":359,"props":5786,"children":5787},{"class":383},[5788],{"type":24,"value":5789},"a",{"type":18,"tag":359,"props":5791,"children":5792},{"class":366},[5793],{"type":24,"value":421},{"type":18,"tag":359,"props":5795,"children":5796},{"class":383},[5797],{"type":24,"value":5798},"humorous",{"type":18,"tag":359,"props":5800,"children":5801},{"class":366},[5802],{"type":24,"value":421},{"type":18,"tag":359,"props":5804,"children":5805},{"class":383},[5806],{"type":24,"value":5807},"robot?\n",{"type":18,"tag":359,"props":5809,"children":5810},{"class":361,"line":170},[5811,5816,5821,5825,5830,5834,5839,5843,5848,5852,5856,5860,5865,5869,5873,5877,5881,5885,5890,5894,5899,5903,5908,5912,5917,5921,5925,5929],{"type":18,"tag":359,"props":5812,"children":5813},{"class":366},[5814],{"type":24,"value":5815},"Yes! ",{"type":18,"tag":359,"props":5817,"children":5818},{"class":383},[5819],{"type":24,"value":5820},"I",{"type":18,"tag":359,"props":5822,"children":5823},{"class":366},[5824],{"type":24,"value":421},{"type":18,"tag":359,"props":5826,"children":5827},{"class":383},[5828],{"type":24,"value":5829},"am",{"type":18,"tag":359,"props":5831,"children":5832},{"class":366},[5833],{"type":24,"value":421},{"type":18,"tag":359,"props":5835,"children":5836},{"class":383},[5837],{"type":24,"value":5838},"the",{"type":18,"tag":359,"props":5840,"children":5841},{"class":366},[5842],{"type":24,"value":421},{"type":18,"tag":359,"props":5844,"children":5845},{"class":383},[5846],{"type":24,"value":5847},"most",{"type":18,"tag":359,"props":5849,"children":5850},{"class":366},[5851],{"type":24,"value":421},{"type":18,"tag":359,"props":5853,"children":5854},{"class":383},[5855],{"type":24,"value":5798},{"type":18,"tag":359,"props":5857,"children":5858},{"class":366},[5859],{"type":24,"value":421},{"type":18,"tag":359,"props":5861,"children":5862},{"class":383},[5863],{"type":24,"value":5864},"bot",{"type":18,"tag":359,"props":5866,"children":5867},{"class":366},[5868],{"type":24,"value":421},{"type":18,"tag":359,"props":5870,"children":5871},{"class":383},[5872],{"type":24,"value":4073},{"type":18,"tag":359,"props":5874,"children":5875},{"class":366},[5876],{"type":24,"value":421},{"type":18,"tag":359,"props":5878,"children":5879},{"class":383},[5880],{"type":24,"value":5838},{"type":18,"tag":359,"props":5882,"children":5883},{"class":366},[5884],{"type":24,"value":421},{"type":18,"tag":359,"props":5886,"children":5887},{"class":383},[5888],{"type":24,"value":5889},"planet!",{"type":18,"tag":359,"props":5891,"children":5892},{"class":366},[5893],{"type":24,"value":421},{"type":18,"tag":359,"props":5895,"children":5896},{"class":383},[5897],{"type":24,"value":5898},"Let",{"type":18,"tag":359,"props":5900,"children":5901},{"class":366},[5902],{"type":24,"value":421},{"type":18,"tag":359,"props":5904,"children":5905},{"class":383},[5906],{"type":24,"value":5907},"me",{"type":18,"tag":359,"props":5909,"children":5910},{"class":366},[5911],{"type":24,"value":421},{"type":18,"tag":359,"props":5913,"children":5914},{"class":383},[5915],{"type":24,"value":5916},"cheer",{"type":18,"tag":359,"props":5918,"children":5919},{"class":366},[5920],{"type":24,"value":421},{"type":18,"tag":359,"props":5922,"children":5923},{"class":383},[5924],{"type":24,"value":5780},{"type":18,"tag":359,"props":5926,"children":5927},{"class":366},[5928],{"type":24,"value":421},{"type":18,"tag":359,"props":5930,"children":5931},{"class":383},[5932],{"type":24,"value":5933},"up!\n",{"type":18,"tag":359,"props":5935,"children":5936},{"class":361,"line":167},[5937,5942,5946,5950,5955,5959,5964,5968,5973,5977,5982,5986,5991,5995,5999,6003,6008,6012,6017,6021,6025,6029,6034,6038,6043,6047],{"type":18,"tag":359,"props":5938,"children":5939},{"class":366},[5940],{"type":24,"value":5941},"‘Perl ",{"type":18,"tag":359,"props":5943,"children":5944},{"class":383},[5945],{"type":24,"value":3776},{"type":18,"tag":359,"props":5947,"children":5948},{"class":366},[5949],{"type":24,"value":421},{"type":18,"tag":359,"props":5951,"children":5952},{"class":383},[5953],{"type":24,"value":5954},"The",{"type":18,"tag":359,"props":5956,"children":5957},{"class":366},[5958],{"type":24,"value":421},{"type":18,"tag":359,"props":5960,"children":5961},{"class":383},[5962],{"type":24,"value":5963},"only",{"type":18,"tag":359,"props":5965,"children":5966},{"class":366},[5967],{"type":24,"value":421},{"type":18,"tag":359,"props":5969,"children":5970},{"class":383},[5971],{"type":24,"value":5972},"Language",{"type":18,"tag":359,"props":5974,"children":5975},{"class":366},[5976],{"type":24,"value":421},{"type":18,"tag":359,"props":5978,"children":5979},{"class":383},[5980],{"type":24,"value":5981},"that",{"type":18,"tag":359,"props":5983,"children":5984},{"class":366},[5985],{"type":24,"value":421},{"type":18,"tag":359,"props":5987,"children":5988},{"class":383},[5989],{"type":24,"value":5990},"looks",{"type":18,"tag":359,"props":5992,"children":5993},{"class":366},[5994],{"type":24,"value":421},{"type":18,"tag":359,"props":5996,"children":5997},{"class":383},[5998],{"type":24,"value":5838},{"type":18,"tag":359,"props":6000,"children":6001},{"class":366},[6002],{"type":24,"value":421},{"type":18,"tag":359,"props":6004,"children":6005},{"class":383},[6006],{"type":24,"value":6007},"same",{"type":18,"tag":359,"props":6009,"children":6010},{"class":366},[6011],{"type":24,"value":421},{"type":18,"tag":359,"props":6013,"children":6014},{"class":383},[6015],{"type":24,"value":6016},"before",{"type":18,"tag":359,"props":6018,"children":6019},{"class":366},[6020],{"type":24,"value":421},{"type":18,"tag":359,"props":6022,"children":6023},{"class":383},[6024],{"type":24,"value":1827},{"type":18,"tag":359,"props":6026,"children":6027},{"class":366},[6028],{"type":24,"value":421},{"type":18,"tag":359,"props":6030,"children":6031},{"class":383},[6032],{"type":24,"value":6033},"after",{"type":18,"tag":359,"props":6035,"children":6036},{"class":366},[6037],{"type":24,"value":421},{"type":18,"tag":359,"props":6039,"children":6040},{"class":383},[6041],{"type":24,"value":6042},"RSA",{"type":18,"tag":359,"props":6044,"children":6045},{"class":366},[6046],{"type":24,"value":421},{"type":18,"tag":359,"props":6048,"children":6049},{"class":383},[6050],{"type":24,"value":6051},"encryption.' - [Keith Bostic]\n",{"type":18,"tag":359,"props":6053,"children":6054},{"class":361,"line":506},[6055],{"type":18,"tag":359,"props":6056,"children":6057},{"class":383},[6058],{"type":24,"value":6059},"Your input -> weather\n",{"type":18,"tag":359,"props":6061,"children":6062},{"class":361,"line":515},[6063],{"type":18,"tag":359,"props":6064,"children":6065},{"class":383},[6066],{"type":24,"value":6067},"Let me ask my friends at the Hong Hong Obeservatory.\n",{"type":18,"tag":359,"props":6069,"children":6070},{"class":361,"line":577},[6071],{"type":18,"tag":359,"props":6072,"children":6073},{"class":383},[6074],{"type":24,"value":6075},"There you go!\n",{"type":18,"tag":359,"props":6077,"children":6078},{"class":361,"line":605},[6079],{"type":18,"tag":359,"props":6080,"children":6081},{"class":383},[6082],{"type":24,"value":6083},"The temperature now is 16C, Cloudy with a few showers. More showers with a few squally thunderstorms later tomorrow. Temperatures will range between 17 and 21 degrees. Moderate to fresh easterly winds, occasionally strong offshore Later.",{"type":18,"tag":27,"props":6085,"children":6086},{},[6087],{"type":24,"value":6088},"The second example, is where I used a lot of emojis and emoticon (表情符號 or 顔文字 if you like). I thought, well, human use emojis as well, so why don't my chatbot use it. Luckily rasa can direcly support print out of these complicated emojis. And I thought it is better. From my prespective, this would assembly what my girl friend (if I have had one🥲) will say to me, with many emojis.",{"type":18,"tag":316,"props":6090,"children":6093},{"className":6091,"code":6092,"language":4372,"meta":8},[4370],"responses:\r\n  utter_greet:\r\n    - text: \"Hey! How are you? ヾ(•ω•`)o\"\r\n    - text: \"Hi! Nice to meet you!\"\r\n    - text: \"Hello! How can I help you?\"\r\n\r\n  utter_thank_you:\r\n    - text: \"Thank you! You are kind.\"\r\n    - text: \"☆*: .｡. o(≧▽≦)o .｡.:*☆! ThankYou!\"\r\n\r\n  utter_bot_usage_help:\r\n    - text: \"🙇Sorry...I couldn't understand your words.\\n\r\n        I can recommend videos🎬, images and jokes to you. As well as providing assistance during your quarantine.\\n\r\n        Try to say words that are similar to 'Hi' or 'I want music' to start.\"\n",[6094],{"type":18,"tag":352,"props":6095,"children":6096},{},[6097],{"type":18,"tag":316,"props":6098,"children":6099},{"__ignoreMap":8},[6100,6112,6128,6148,6168,6188,6195,6211,6231,6251,6258,6274,6299,6311],{"type":18,"tag":359,"props":6101,"children":6102},{"class":361,"line":362},[6103,6108],{"type":18,"tag":359,"props":6104,"children":6105},{"class":4390},[6106],{"type":24,"value":6107},"responses",{"type":18,"tag":359,"props":6109,"children":6110},{"class":366},[6111],{"type":24,"value":1750},{"type":18,"tag":359,"props":6113,"children":6114},{"class":361,"line":170},[6115,6119,6124],{"type":18,"tag":359,"props":6116,"children":6117},{"class":366},[6118],{"type":24,"value":4411},{"type":18,"tag":359,"props":6120,"children":6121},{"class":4390},[6122],{"type":24,"value":6123},"utter_greet",{"type":18,"tag":359,"props":6125,"children":6126},{"class":366},[6127],{"type":24,"value":1750},{"type":18,"tag":359,"props":6129,"children":6130},{"class":361,"line":167},[6131,6135,6139,6143],{"type":18,"tag":359,"props":6132,"children":6133},{"class":366},[6134],{"type":24,"value":4428},{"type":18,"tag":359,"props":6136,"children":6137},{"class":4390},[6138],{"type":24,"value":24},{"type":18,"tag":359,"props":6140,"children":6141},{"class":366},[6142],{"type":24,"value":4398},{"type":18,"tag":359,"props":6144,"children":6145},{"class":383},[6146],{"type":24,"value":6147},"\"Hey! How are you? ヾ(•ω•`)o\"\n",{"type":18,"tag":359,"props":6149,"children":6150},{"class":361,"line":506},[6151,6155,6159,6163],{"type":18,"tag":359,"props":6152,"children":6153},{"class":366},[6154],{"type":24,"value":4428},{"type":18,"tag":359,"props":6156,"children":6157},{"class":4390},[6158],{"type":24,"value":24},{"type":18,"tag":359,"props":6160,"children":6161},{"class":366},[6162],{"type":24,"value":4398},{"type":18,"tag":359,"props":6164,"children":6165},{"class":383},[6166],{"type":24,"value":6167},"\"Hi! Nice to meet you!\"\n",{"type":18,"tag":359,"props":6169,"children":6170},{"class":361,"line":515},[6171,6175,6179,6183],{"type":18,"tag":359,"props":6172,"children":6173},{"class":366},[6174],{"type":24,"value":4428},{"type":18,"tag":359,"props":6176,"children":6177},{"class":4390},[6178],{"type":24,"value":24},{"type":18,"tag":359,"props":6180,"children":6181},{"class":366},[6182],{"type":24,"value":4398},{"type":18,"tag":359,"props":6184,"children":6185},{"class":383},[6186],{"type":24,"value":6187},"\"Hello! How can I help you?\"\n",{"type":18,"tag":359,"props":6189,"children":6190},{"class":361,"line":577},[6191],{"type":18,"tag":359,"props":6192,"children":6193},{},[6194],{"type":24,"value":512},{"type":18,"tag":359,"props":6196,"children":6197},{"class":361,"line":605},[6198,6202,6207],{"type":18,"tag":359,"props":6199,"children":6200},{"class":366},[6201],{"type":24,"value":4411},{"type":18,"tag":359,"props":6203,"children":6204},{"class":4390},[6205],{"type":24,"value":6206},"utter_thank_you",{"type":18,"tag":359,"props":6208,"children":6209},{"class":366},[6210],{"type":24,"value":1750},{"type":18,"tag":359,"props":6212,"children":6213},{"class":361,"line":633},[6214,6218,6222,6226],{"type":18,"tag":359,"props":6215,"children":6216},{"class":366},[6217],{"type":24,"value":4428},{"type":18,"tag":359,"props":6219,"children":6220},{"class":4390},[6221],{"type":24,"value":24},{"type":18,"tag":359,"props":6223,"children":6224},{"class":366},[6225],{"type":24,"value":4398},{"type":18,"tag":359,"props":6227,"children":6228},{"class":383},[6229],{"type":24,"value":6230},"\"Thank you! You are kind.\"\n",{"type":18,"tag":359,"props":6232,"children":6233},{"class":361,"line":642},[6234,6238,6242,6246],{"type":18,"tag":359,"props":6235,"children":6236},{"class":366},[6237],{"type":24,"value":4428},{"type":18,"tag":359,"props":6239,"children":6240},{"class":4390},[6241],{"type":24,"value":24},{"type":18,"tag":359,"props":6243,"children":6244},{"class":366},[6245],{"type":24,"value":4398},{"type":18,"tag":359,"props":6247,"children":6248},{"class":383},[6249],{"type":24,"value":6250},"\"☆*: .｡. o(≧▽≦)o .｡.:*☆! ThankYou!\"\n",{"type":18,"tag":359,"props":6252,"children":6253},{"class":361,"line":670},[6254],{"type":18,"tag":359,"props":6255,"children":6256},{},[6257],{"type":24,"value":512},{"type":18,"tag":359,"props":6259,"children":6260},{"class":361,"line":712},[6261,6265,6270],{"type":18,"tag":359,"props":6262,"children":6263},{"class":366},[6264],{"type":24,"value":4411},{"type":18,"tag":359,"props":6266,"children":6267},{"class":4390},[6268],{"type":24,"value":6269},"utter_bot_usage_help",{"type":18,"tag":359,"props":6271,"children":6272},{"class":366},[6273],{"type":24,"value":1750},{"type":18,"tag":359,"props":6275,"children":6276},{"class":361,"line":742},[6277,6281,6285,6289,6294],{"type":18,"tag":359,"props":6278,"children":6279},{"class":366},[6280],{"type":24,"value":4428},{"type":18,"tag":359,"props":6282,"children":6283},{"class":4390},[6284],{"type":24,"value":24},{"type":18,"tag":359,"props":6286,"children":6287},{"class":366},[6288],{"type":24,"value":4398},{"type":18,"tag":359,"props":6290,"children":6291},{"class":383},[6292],{"type":24,"value":6293},"\"🙇Sorry...I couldn't understand your words.",{"type":18,"tag":359,"props":6295,"children":6296},{"class":372},[6297],{"type":24,"value":6298},"\\n\n",{"type":18,"tag":359,"props":6300,"children":6301},{"class":361,"line":1098},[6302,6307],{"type":18,"tag":359,"props":6303,"children":6304},{"class":383},[6305],{"type":24,"value":6306},"        I can recommend videos🎬, images and jokes to you. As well as providing assistance during your quarantine.",{"type":18,"tag":359,"props":6308,"children":6309},{"class":372},[6310],{"type":24,"value":6298},{"type":18,"tag":359,"props":6312,"children":6313},{"class":361,"line":1127},[6314],{"type":18,"tag":359,"props":6315,"children":6316},{"class":383},[6317],{"type":24,"value":6318},"        Try to say words that are similar to 'Hi' or 'I want music' to start.\"",{"type":18,"tag":27,"props":6320,"children":6321},{},[6322],{"type":24,"value":6323},"Remember I mentioned a progress bar and the Greet to the time of the day in the actions.py files? By using the greet to the time of the day, the robot will say good/morning/evening/afternoon to you according to the time, make it like a human.",{"type":18,"tag":27,"props":6325,"children":6326},{},[6327],{"type":24,"value":6328},"Below is the progress bar. I think it would be better than just showing only a day left, of percentage left. It is good to show this as a bar. Like a game loading bar. Also, I have added emojis and indications, to add oil to users.",{"type":18,"tag":27,"props":6330,"children":6331},{},[6332],{"type":18,"tag":74,"props":6333,"children":6336},{"alt":6334,"src":6335},"Emojis in the respond","/img/4621_2/p22.png",[],{"type":18,"tag":80,"props":6338,"children":6340},{"className":6339},[83,84,85],[6341],{"type":24,"value":6334},{"type":18,"tag":19,"props":6343,"children":6345},{"id":6344},"unfinished-mini-wordle-game",[6346],{"type":24,"value":6347},"Unfinished mini-wordle game",{"type":18,"tag":27,"props":6349,"children":6350},{},[6351],{"type":24,"value":6352},"I want to make a wordle games inside rasa. So users could play with rasa when boring. But due to my knowledge limitation, I can't. I made the forms, the entity to store the user guessed words, I also made the 2 actions, one to randomly choose a word from the word list, another one to validate uers word. Everything sounds fine, but I can't make past the nlu.yml.",{"type":18,"tag":27,"props":6354,"children":6355},{},[6356],{"type":24,"value":6357},"In RASA, users intents is triggered by matching words in the nlu.yml. The problem is, I can't make sure everytime users input a wordle guess, the robot will know he is playing wordle, and repeatedly executing that intent. If the users answer something that is not in the wordlist, The intent won't be triggerd... and validate function won't be called... then everything won't work",{"type":18,"tag":27,"props":6359,"children":6360},{},[6361],{"type":18,"tag":74,"props":6362,"children":6365},{"alt":6363,"src":6364},"Wordle Game","/img/4621_2/p23.png",[],{"type":18,"tag":80,"props":6367,"children":6369},{"className":6368},[83,84,85],[6370],{"type":24,"value":6363},{"type":18,"tag":19,"props":6372,"children":6374},{"id":6373},"the-reflection",[6375],{"type":24,"value":6376},"the Reflection",{"type":18,"tag":27,"props":6378,"children":6379},{},[6380],{"type":24,"value":6381},"At last, I am pretty confident and satisfied on the humanly reactions, speech tone of the final product. I would take this experience next time if I have to design simiar project, that is, think robot as a human. what a human would do, I would emulate, implement then in the robot. It is as imagining the robot is a real man.",{"type":18,"tag":27,"props":6383,"children":6384},{},[6385],{"type":24,"value":6386},"But, I still think If I have more time, I should finalize, tweak more on the nlu intent part. The first problem is we discovered some problems in the final testing of the prototype. That is, we found sometimes our intent is not properly captured. I found that we three coder are too focused on the functions, responses part, but we kind of ignored the intent part. So the robot talks like a human, but it didn't 'think' or 'interpret' things as a human, specifically, not that well trained, our nlu model.",{"type":18,"tag":27,"props":6388,"children":6389},{},[6390],{"type":24,"value":6391},"The second problem is somehow linked to the first one. I said we didn't match users words perfectly with user intents. Then now, the problem is we didn't design many 'intents' to express our own thinking. Let's say you saw a cute cat image, a normal would respond it with 'Wow, that's cute!' . But I didn't think of this and design this intent, so sometimes for daily talks (excepting requests) , the robot can't respond properly as we didn't implement many ways for users to express his intent. But hey, Siri and Google assistant won't work as intented sometimes lah. So I am really satisfied for this 'mini' project. And it is glad to see there's still room for improvement.",{"type":18,"tag":27,"props":6393,"children":6394},{},[6395],{"type":24,"value":6396},"At last also huge praise to Marcus, he implemented the interface with telegram and cloud server. So we did not need to design our own interface and host our robot. And effectively, everyone in the class can try out our bots on telegram!",{"type":18,"tag":6398,"children":6399},"style",[6400],{"type":24,"value":6401},".ct-048248{color:#ABB2BF;}\n.ct-491639{color:#56B6C2;}\n.ct-604220{color:#98C379;}\n.ct-527673{color:#C678DD;}\n.ct-230043{color:#E5C07B;}\n.ct-578036{color:#61AFEF;}\n.ct-230042{color:#E5C07B;font-style:italic;}\n.ct-527674{color:#C678DD;font-style:italic;}\n.ct-980423{color:#D19A66;font-style:italic;}\n.ct-815944{color:#E06C75;font-style:italic;}\n.ct-980424{color:#D19A66;}\n.ct-277366{color:#7F848E;font-style:italic;}\n.ct-815945{color:#E06C75;}",{"title":8,"searchDepth":167,"depth":167,"links":6403},[6404,6405,6406,6407,6414,6415,6416],{"id":192,"depth":170,"text":195},{"id":213,"depth":170,"text":216},{"id":256,"depth":170,"text":259},{"id":316,"depth":170,"text":319,"children":6408},[6409,6413],{"id":328,"depth":167,"text":331,"children":6410},[6411,6412],{"id":335,"depth":506,"text":338},{"id":1508,"depth":506,"text":1511},{"id":4353,"depth":167,"text":4356},{"id":5714,"depth":170,"text":5717},{"id":6344,"depth":170,"text":6347},{"id":6373,"depth":170,"text":6376},"content:blog:hci:comp4621-2nd.md","blog/hci/comp4621-2nd.md",{"_path":6420,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"_empty":7,"title":6421,"description":6422,"author":11,"dates":6423,"body":6425,"_type":177,"_id":6772,"_source":179,"_file":6773,"_extension":181},"/blog/hci/comp4621-3rd","Group project 3 - Social VR Cultural World","Diary for COMP4621 Project 3",{"published":6424},"04-05-2022",{"type":15,"children":6426,"toc":6763},[6427,6433,6438,6443,6448,6453,6459,6464,6472,6477,6485,6490,6495,6505,6510,6515,6523,6528,6533,6543,6548,6558,6563,6568,6574,6584,6589,6594,6600,6605,6622,6627,6632,6637,6642,6648,6658,6663,6673,6678,6683,6689,6699,6704,6714,6719,6724,6730,6735,6740,6745,6750,6757],{"type":18,"tag":19,"props":6428,"children":6430},{"id":6429},"ideation",[6431],{"type":24,"value":6432},"Ideation",{"type":18,"tag":27,"props":6434,"children":6435},{},[6436],{"type":24,"value":6437},"Upon reading the project instruction PDF, Me and our groupmates have a very vague idea on actually what we are going to implement. Because the scope is very large for VR applications. After reading and watching some user scenario like mozilla hub and VRChat. I get some idea on what the project prototype may look like.",{"type":18,"tag":27,"props":6439,"children":6440},{},[6441],{"type":24,"value":6442},"Our initial idea were really normal. Like some sports game, simple games inside it. Karaoke, watching films, concerting together, some other things also includes window shopping in a VR world. However, these idea don't have any charateristics inside it, it is also quite boring, that is, there not a theme.",{"type":18,"tag":27,"props":6444,"children":6445},{},[6446],{"type":24,"value":6447},"Moreover, if we want to make things more complicated, let's say making a hide and seek game, or Among us style game inside our VR world. However, the functions provided by mozilla hub is really limited. I later found that mozilla hub isn't for game at all, people were saying it as a alternative to zoom, or zoom class. While another VR software VRChat is more game orientated. But we all thought that way the project will be too complicated, we are time limited and therefore don't have the time to continue on that",{"type":18,"tag":27,"props":6449,"children":6450},{},[6451],{"type":24,"value":6452},"Then someone mention that, how about we make a language learning theme. It as like people will be gathering inside the VR world, and they will chat with each other using different languages. It will be a perfect scenario where language-learners can get themseleves into the atmosphere. Later we also decide to boarden the the scope a bit. Make it tourist/museum like theme. And because of this is a international theme, we just want to put international famous heritage around the world, and in the centre it will be a flat piazza for people to gather and chat. It also acts as a centre point for us. It will be a outdoor theme, since I think these years people can't go out to travel because of COVID, and making ourdoor theme will be better.",{"type":18,"tag":19,"props":6454,"children":6456},{"id":6455},"finding-base-map",[6457],{"type":24,"value":6458},"Finding base map",{"type":18,"tag":27,"props":6460,"children":6461},{},[6462],{"type":24,"value":6463},"then we decided to find base map and start building it in the spoke. I had to say spoke interface are kind of user friendly. But later it will become a disater because of this. As we don't want to stuck with old maps, so we need to find a new map, and it has to be beautiful.",{"type":18,"tag":27,"props":6465,"children":6466},{},[6467],{"type":18,"tag":74,"props":6468,"children":6471},{"alt":6469,"src":6470},"Sample Map 1","/img/4621_3/p31.jpg",[],{"type":18,"tag":80,"props":6473,"children":6475},{"className":6474},[83,84,85],[6476],{"type":24,"value":6469},{"type":18,"tag":27,"props":6478,"children":6479},{},[6480],{"type":18,"tag":74,"props":6481,"children":6484},{"alt":6482,"src":6483},"Sample Map 2","/img/4621_3/p32.jpg",[],{"type":18,"tag":80,"props":6486,"children":6488},{"className":6487},[83,84,85],[6489],{"type":24,"value":6482},{"type":18,"tag":27,"props":6491,"children":6492},{},[6493],{"type":24,"value":6494},"We found some really good map on Sketchfab. They are really good looking and nice. Some of them are scanned or hand-built, but at the end they are really high definition. Some maps are not in .glb format originally, so it can't be loaded into spoke directly. But download it first and then convert it into .glb in blender solve the problem.",{"type":18,"tag":27,"props":6496,"children":6497},{},[6498,6500],{"type":24,"value":6499},"But when we try to export maps into mozilla hubs to test its size and texture, spoke isn't happy about it. Until now, I get to know that, spoke generates collision and walkable planes using two different techniques. Normally the walking plane is generated using trimesh. Trimesh provides a high definition walking plane, And user can walk up slope, uneven terrain. So every plane are made of triangles. However, although this method works fine in small indoor map. For such a big complex outdoor terrain map, it is too complicated for spoke to generate such terrain. and often it will throw out error such as 'error generating nav mesh'. And we always find it hard to upload onto mozilla hub.\r\n",{"type":18,"tag":74,"props":6501,"children":6504},{"alt":6502,"src":6503},"Setting trimesh","/img/4621_3/p33.jpg",[],{"type":18,"tag":80,"props":6506,"children":6508},{"className":6507},[83,84,85],[6509],{"type":24,"value":6502},{"type":18,"tag":27,"props":6511,"children":6512},{},[6513],{"type":24,"value":6514},"You can see the 'force trimesh' box in this picture. Normally spoke will be using trimesh and 2d plane at the same time. Force trimesh is well, as stated.",{"type":18,"tag":27,"props":6516,"children":6517},{},[6518],{"type":18,"tag":74,"props":6519,"children":6522},{"alt":6520,"src":6521},"Mesh Plan and Glitching","/img/4621_3/p34.jpg",[],{"type":18,"tag":80,"props":6524,"children":6526},{"className":6525},[83,84,85],[6527],{"type":24,"value":6520},{"type":18,"tag":27,"props":6529,"children":6530},{},[6531],{"type":24,"value":6532},"The second method is called 2d plane. So it can only create planes that are different height. mostly slopes are ignored. So the user can't walk on terrain. And it is very confusing to have somewhere you can't walk. It't like meeting a airwall in a game. You can see the floor plan meseed up on slopes, and for stonhenge it's another mess. It means that the user can'walk inside the stonhenge, and walk up the slope.",{"type":18,"tag":27,"props":6534,"children":6535},{},[6536,6538],{"type":24,"value":6537},"So at the end, we settled on the default terrain map, we added a flat plane on it, so it would be flat. And we can place objects on it without making to much of adjustment to the objects.\r\n",{"type":18,"tag":74,"props":6539,"children":6542},{"alt":6540,"src":6541},"The Overview","/img/4621_3/p35.jpg",[],{"type":18,"tag":80,"props":6544,"children":6546},{"className":6545},[83,84,85],[6547],{"type":24,"value":6540},{"type":18,"tag":27,"props":6549,"children":6550},{},[6551,6553],{"type":24,"value":6552},"This is the end product that ends up in the demo video. The grey flat plane is what I mentioned. And we added objects to the plane. Moreover, clouds like sphere were also added. Also the 'simple' water object was placed to make the titanic looks like sinking into the water.\r\n",{"type":18,"tag":74,"props":6554,"children":6557},{"alt":6555,"src":6556},"The Titanic","/img/4621_3/p36.jpg",[],{"type":18,"tag":80,"props":6559,"children":6561},{"className":6560},[83,84,85],[6562],{"type":24,"value":6555},{"type":18,"tag":27,"props":6564,"children":6565},{},[6566],{"type":24,"value":6567},"You may already figured out. We want to make a scene in the Titanic film. And it would be fun to get a feeling of standing at the end of the ship, to feel what that height feels.",{"type":18,"tag":19,"props":6569,"children":6571},{"id":6570},"processing-models",[6572],{"type":24,"value":6573},"Processing Models",{"type":18,"tag":27,"props":6575,"children":6576},{},[6577,6579],{"type":24,"value":6578},"We took some models on Sketchfab to be our heritage objects. But there are some models that are either hand-made or scanned using photogrammerty. We had a Fumishimi Castle in our map, which that model was originally scanned into a 3D object.\r\n",{"type":18,"tag":74,"props":6580,"children":6583},{"alt":6581,"src":6582},"Previewing model in Blender","/img/4621_3/p37.jpg",[],{"type":18,"tag":80,"props":6585,"children":6587},{"className":6586},[83,84,85],[6588],{"type":24,"value":6581},{"type":18,"tag":27,"props":6590,"children":6591},{},[6592],{"type":24,"value":6593},"The original model is even larger than this, it is as if it's the whole scenery in there. But we need to trim it down as a smaller object. The reason is, a small history lesson first. The japanese castle were designed so high, and have a base that are multi stories is that, they can be higher when someone trys to attack the castle. But it means that the floor plan generation and collision handling will be very hard for us. So we need to trim down the model in blender first, make it 'simpler'.",{"type":18,"tag":19,"props":6595,"children":6597},{"id":6596},"battling-the-128mb-limit",[6598],{"type":24,"value":6599},"Battling the 128MB limit",{"type":18,"tag":27,"props":6601,"children":6602},{},[6603],{"type":24,"value":6604},"Somewhere into our peoject, after we placed some of the objects into the the world. And we found that it cannot be compiled. The reason simply is, mozilla hub only supports a world up to 128MB!!!!! That means we need to shrink some sizes of the objects!! For example, a stonehenge will take approx. 37MB. a fushimi castle took up 32MB. There's really not much of the space left.",{"type":18,"tag":27,"props":6606,"children":6607},{},[6608,6610,6615,6617],{"type":24,"value":6609},"So what we done, is to reduce the texture size. The original texture in Fushimi Castle in 8K, which is 8192",{"type":18,"tag":275,"props":6611,"children":6612},{},[6613],{"type":24,"value":6614},"8192. We reduces its size to 2048",{"type":24,"value":6616},"2048 in photoshop. And that castle only takes up 15MB now!\r\n",{"type":18,"tag":74,"props":6618,"children":6621},{"alt":6619,"src":6620},"Inspecting image size","/img/4621_3/p38.jpg",[],{"type":18,"tag":80,"props":6623,"children":6625},{"className":6624},[83,84,85],[6626],{"type":24,"value":6619},{"type":18,"tag":27,"props":6628,"children":6629},{},[6630],{"type":24,"value":6631},"We also changes the stonehenge to a simple one. Instead of the very high definition stonehenge you saw in m=my previous shot. The new stonhenge is rather simple, low poly. And it doesn't even have textures. So we need to paint it in brown in blender. The new stonehenge now only eats up 1MB of size!",{"type":18,"tag":27,"props":6633,"children":6634},{},[6635],{"type":24,"value":6636},"Our final product eats up 127MB of size. This is really the most extreme size we can take. one more simple object would exceeds the size limit and ruin the whole thing!",{"type":18,"tag":27,"props":6638,"children":6639},{},[6640],{"type":24,"value":6641},"Small reflection->I can imagine in the future I will be working with limited resources..I guess it's better to save resources for later use at first, so when later optimizing the size, it would be alot easier to shrink its sizes.",{"type":18,"tag":19,"props":6643,"children":6645},{"id":6644},"games-implementation",[6646],{"type":24,"value":6647},"Games implementation",{"type":18,"tag":27,"props":6649,"children":6650},{},[6651,6653],{"type":24,"value":6652},"As I said, we want to implement games inside the mozilla hub. But it is function limited. I tried make a basketball field inside it, but playing with it was rather boring. Primarily because of the hitbox are wrong, and controlling, moving things inside the hub is very hard.\r\n",{"type":18,"tag":74,"props":6654,"children":6657},{"alt":6655,"src":6656},"Basketball Game","/img/4621_3/p39.jpg",[],{"type":18,"tag":80,"props":6659,"children":6661},{"className":6660},[83,84,85],[6662],{"type":24,"value":6655},{"type":18,"tag":27,"props":6664,"children":6665},{},[6666,6668],{"type":24,"value":6667},"So a guy suggest that, why we make some local traditional games around the world. That sounds interesting, And relatively easy to implement, also fits our culture exchange theme.\r\n",{"type":18,"tag":74,"props":6669,"children":6672},{"alt":6670,"src":6671},"Mini-Games","/img/4621_3/p310.jpg",[],{"type":18,"tag":80,"props":6674,"children":6676},{"className":6675},[83,84,85],[6677],{"type":24,"value":6670},{"type":18,"tag":27,"props":6679,"children":6680},{},[6681],{"type":24,"value":6682},"I searched some local games on web. And these traditional games are all mainly boardgames, so it's really easy to implement. and we use duck+chicken to be our chess. The fron two games are Kaooa from India and another strategy game from South Korea. The 3 games behind that are 3 different three in a row games from 3 different countries. Though If I have time I would change the texture of the chicken. because that chicken is in white color, while game map is also in white, it will be maybe a little bit hard to distinguish.",{"type":18,"tag":19,"props":6684,"children":6686},{"id":6685},"demovideo",[6687],{"type":24,"value":6688},"DemoVideo",{"type":18,"tag":27,"props":6690,"children":6691},{},[6692,6694],{"type":24,"value":6693},"I get to create Demo video for the project. I get the idea from a discontinued programme by TVB. It's called the Earth Live (瞬間看地球), and it has been discontinued in the April the 1st. It's really sad lo...\r\n",{"type":18,"tag":74,"props":6695,"children":6698},{"alt":6696,"src":6697},"Earth Live","/img/4621_3/p311.jpg",[],{"type":18,"tag":80,"props":6700,"children":6702},{"className":6701},[83,84,85],[6703],{"type":24,"value":6696},{"type":18,"tag":27,"props":6705,"children":6706},{},[6707,6709],{"type":24,"value":6708},"The programme is just a live camera around the world. But I think that is a small part of collective memories of Hong Kong. So I want to mimic the programme, by using the same UIs and Musics from it.\r\n",{"type":18,"tag":74,"props":6710,"children":6713},{"alt":6711,"src":6712},"Editing the Demo video","/img/4621_3/p312.jpg",[],{"type":18,"tag":80,"props":6715,"children":6717},{"className":6716},[83,84,85],[6718],{"type":24,"value":6711},{"type":18,"tag":27,"props":6720,"children":6721},{},[6722],{"type":24,"value":6723},"You can see I photoshoped the UI into the video. And that UI acted as a title also for each part of the demo. In the demo I introduced and demo-ed many concepts in thie world, such as timetable feture, it's like, I don't know someone who's reading this have played GTAv before, on the online server, there will be random event every 5-10 minutes or so. And player will be motivated to paticipate in such event, so the online game play will be more interesting. It is the same idea in our world, but a little different. Just the events are talks/shars/tours/games, they are more 'educational' I would say. Because if you get into the world without anything todo, it would be rather boring. It also have souvenir exchange feature, which I see it as a good way to enhance exchange among players.",{"type":18,"tag":19,"props":6725,"children":6727},{"id":6726},"end-credits",[6728],{"type":24,"value":6729},"End Credits",{"type":18,"tag":27,"props":6731,"children":6732},{},[6733],{"type":24,"value":6734},"Till the end of this project. To be honest, I personally think the whole map can be better, as well as the lighting. I asked a friend which I do needfinding and surverying about the final product, he's also the guy who gives me initial idea on making a tourists spot map first. He said the map looks like a 3D game from the early 2000s. Where I can't agreed anymore. Because I later realized the lighting in mozilla hub is really for indoor lighting. I can imagine other group using directional lighting to make a colorful pub out of this.",{"type":18,"tag":27,"props":6736,"children":6737},{},[6738],{"type":24,"value":6739},"More so, I with the size limit in the mozilla hub can be larger, Like at least 256MB of 200MB. Then we can put more building in the map to fill blanks, so the whole world will be prettier. and the objects will be more high definition, and you can really walk under the stonehenge to feel what is like under the great rocks.",{"type":18,"tag":27,"props":6741,"children":6742},{},[6743],{"type":24,"value":6744},"But anyway, I think the idea is what our project really shines. Because when we are thinking this project, the normal ideas, like concert, karaoke and video watching is really old-school, and there are many alternatives now, like Discord. Think if you are a user, why would I use this instead of discord? Same goes for the games idea, why won't I just play human fall flat? Why I don't just play animal crossing or other sports games? When you start thinking this, you will realize there are really too much good product now, and it is really meaningless to make a bad replication of those.",{"type":18,"tag":27,"props":6746,"children":6747},{},[6748],{"type":24,"value":6749},"But, there's no such culture/language exchange world right now, yes? Since people can't go our to travel due to travel restriction of COVID, people don't have the chance to talk to others right? Then why won't us make people meet in the virtual world? Oh yeah! Not to mention We have a souvenir feature, which allows players to exchange souvenirs that are a icon of its country with others! That's really the point, the highlight of our project, and that's what differs ours to other normal VR world. It will be a world with interactive, fruitful events.",{"type":18,"tag":27,"props":6751,"children":6752},{},[6753],{"type":18,"tag":74,"props":6754,"children":6756},{"alt":8,"src":6755},"/img/4621_3/p313.jpg",[],{"type":18,"tag":80,"props":6758,"children":6760},{"className":6759},[83,84,85],[6761],{"type":24,"value":6762},"Gift Exchange",{"title":8,"searchDepth":167,"depth":167,"links":6764},[6765,6766,6767,6768,6769,6770,6771],{"id":6429,"depth":170,"text":6432},{"id":6455,"depth":170,"text":6458},{"id":6570,"depth":170,"text":6573},{"id":6596,"depth":170,"text":6599},{"id":6644,"depth":170,"text":6647},{"id":6685,"depth":170,"text":6688},{"id":6726,"depth":170,"text":6729},"content:blog:hci:comp4621-3rd.md","blog/hci/comp4621-3rd.md",{"_path":6775,"_dir":6776,"_draft":7,"_partial":7,"_locale":8,"_empty":7,"title":6777,"description":6778,"author":11,"dates":6779,"body":6781,"_type":177,"_id":6840,"_source":179,"_file":6841,"_extension":181},"/blog/ml/comp4211-project","ml","COMP4211 Project - Studying CNN Models for Defects Detection in Cookies","I went through 2 CNN Models (Alexnet, VGGnet) originally for ILSVRC and apply them for defects detection task in Cookies",{"published":6780},"28-7-2022",{"type":15,"children":6782,"toc":6836},[6783,6789,6819,6824,6830],{"type":18,"tag":19,"props":6784,"children":6786},{"id":6785},"abstract",[6787],{"type":24,"value":6788},"Abstract",{"type":18,"tag":27,"props":6790,"children":6791},{},[6792,6794,6805,6807,6817],{"type":24,"value":6793},"This is a project from ",{"type":18,"tag":275,"props":6795,"children":6796},{},[6797],{"type":18,"tag":5789,"props":6798,"children":6802},{"href":6799,"rel":6800},"https://seng.hkust.edu.hk/sites/default/files/IMCE/UG/Course%20Syllabus/Fall_2021-2022/COMP4211_Fall%2021-22.pdf",[6801],"nofollow",[6803],{"type":24,"value":6804},"COMP4211 (Machine Learning)",{"type":24,"value":6806}," Course in HKUST. I studies 2 CNN models used in ILSVRC including AlexNet and VGGnet on the ",{"type":18,"tag":275,"props":6808,"children":6809},{},[6810],{"type":18,"tag":5789,"props":6811,"children":6814},{"href":6812,"rel":6813},"https://www.kaggle.com/datasets/imonbilk/industry-biscuit-cookie-dataset",[6801],[6815],{"type":24,"value":6816},"Industrial Biscuits dataset",{"type":24,"value":6818},". I then implemented a 'scale-down' version of the VGGnet named 'VGGlite' to fit the task that I was doing.",{"type":18,"tag":27,"props":6820,"children":6821},{},[6822],{"type":24,"value":6823},"This project was submitted in the Spring Semester in the year 2023. (around May).",{"type":18,"tag":19,"props":6825,"children":6827},{"id":6826},"project-report",[6828],{"type":24,"value":6829},"Project Report",{"type":18,"tag":6831,"props":6832,"children":6835},"iframe",{"src":6833,"style":6834},"/pdf/Machine_Learning_Report.pdf#view=FitH","width: 100%; height: 100vh",[],{"title":8,"searchDepth":167,"depth":167,"links":6837},[6838,6839],{"id":6785,"depth":170,"text":6788},{"id":6826,"depth":170,"text":6829},"content:blog:ml:comp4211-project.md","blog/ml/comp4211-project.md",{"_path":6843,"_dir":6844,"_draft":7,"_partial":7,"_locale":8,"_empty":7,"title":6845,"description":6846,"author":6847,"dates":6848,"body":6850,"_type":177,"_id":7083,"_source":179,"_file":7084,"_extension":181},"/blog/test/first-post","test","the First Blog Post","This is a description for my first blog post","@lkfu",{"published":6849},"21-06-2023",{"type":15,"children":6851,"toc":7079},[6852,6858,6863,6869,6901,6909,6935,6940,7070,7075],{"type":18,"tag":19,"props":6853,"children":6855},{"id":6854},"sample-markdown",[6856],{"type":24,"value":6857},"Sample Markdown",{"type":18,"tag":27,"props":6859,"children":6860},{},[6861],{"type":24,"value":6862},"This is basic h1",{"type":18,"tag":19,"props":6864,"children":6866},{"id":6865},"second-heading",[6867],{"type":24,"value":6868},"Second Heading",{"type":18,"tag":6870,"props":6871,"children":6872},"ul",{},[6873,6896],{"type":18,"tag":6874,"props":6875,"children":6876},"li",{},[6877],{"type":18,"tag":6878,"props":6879,"children":6880},"ol",{},[6881,6886,6891],{"type":18,"tag":6874,"props":6882,"children":6883},{},[6884],{"type":24,"value":6885},"one",{"type":18,"tag":6874,"props":6887,"children":6888},{},[6889],{"type":24,"value":6890},"two",{"type":18,"tag":6874,"props":6892,"children":6893},{},[6894],{"type":24,"value":6895},"three",{"type":18,"tag":6874,"props":6897,"children":6898},{},[6899],{"type":24,"value":6900},"Haha",{"type":18,"tag":261,"props":6902,"children":6903},{},[6904],{"type":18,"tag":27,"props":6905,"children":6906},{},[6907],{"type":24,"value":6908},"Blockquote",{"type":18,"tag":27,"props":6910,"children":6911},{},[6912,6914,6920,6921,6926,6928],{"type":24,"value":6913},"and ",{"type":18,"tag":6915,"props":6916,"children":6917},"strong",{},[6918],{"type":24,"value":6919},"bold",{"type":24,"value":546},{"type":18,"tag":275,"props":6922,"children":6923},{},[6924],{"type":24,"value":6925},"italics",{"type":24,"value":6927},".\r\n",{"type":18,"tag":5789,"props":6929,"children":6932},{"href":6930,"rel":6931},"https://markdowntohtml.com",[6801],[6933],{"type":24,"value":6934},"markdown link",{"type":18,"tag":27,"props":6936,"children":6937},{},[6938],{"type":24,"value":6939},"showing code",{"type":18,"tag":316,"props":6941,"children":6946},{"className":6942,"code":6944,"language":6945,"meta":8},[6943],"language-cpp","int lkfu = 0;\r\nint * lkfu_pointer = lkfu;\r\nvector\u003Cint> ans(n.size());\r\n//op\n","cpp",[6947],{"type":18,"tag":352,"props":6948,"children":6949},{},[6950],{"type":18,"tag":316,"props":6951,"children":6952},{"__ignoreMap":8},[6953,6983,7012,7062],{"type":18,"tag":359,"props":6954,"children":6955},{"class":361,"line":362},[6956,6961,6966,6970,6974,6978],{"type":18,"tag":359,"props":6957,"children":6958},{"class":413},[6959],{"type":24,"value":6960},"int",{"type":18,"tag":359,"props":6962,"children":6963},{"class":366},[6964],{"type":24,"value":6965}," lkfu ",{"type":18,"tag":359,"props":6967,"children":6968},{"class":413},[6969],{"type":24,"value":375},{"type":18,"tag":359,"props":6971,"children":6972},{"class":366},[6973],{"type":24,"value":421},{"type":18,"tag":359,"props":6975,"children":6976},{"class":1017},[6977],{"type":24,"value":1020},{"type":18,"tag":359,"props":6979,"children":6980},{"class":366},[6981],{"type":24,"value":6982},";\n",{"type":18,"tag":359,"props":6984,"children":6985},{"class":361,"line":170},[6986,6990,6994,6998,7003,7007],{"type":18,"tag":359,"props":6987,"children":6988},{"class":413},[6989],{"type":24,"value":6960},{"type":18,"tag":359,"props":6991,"children":6992},{"class":366},[6993],{"type":24,"value":421},{"type":18,"tag":359,"props":6995,"children":6996},{"class":372},[6997],{"type":24,"value":3968},{"type":18,"tag":359,"props":6999,"children":7000},{"class":366},[7001],{"type":24,"value":7002}," lkfu_pointer ",{"type":18,"tag":359,"props":7004,"children":7005},{"class":413},[7006],{"type":24,"value":375},{"type":18,"tag":359,"props":7008,"children":7009},{"class":366},[7010],{"type":24,"value":7011}," lkfu;\n",{"type":18,"tag":359,"props":7013,"children":7014},{"class":361,"line":167},[7015,7020,7024,7028,7033,7038,7042,7047,7052,7057],{"type":18,"tag":359,"props":7016,"children":7017},{"class":424},[7018],{"type":24,"value":7019},"vector",{"type":18,"tag":359,"props":7021,"children":7022},{"class":366},[7023],{"type":24,"value":1736},{"type":18,"tag":359,"props":7025,"children":7026},{"class":413},[7027],{"type":24,"value":6960},{"type":18,"tag":359,"props":7029,"children":7030},{"class":366},[7031],{"type":24,"value":7032},"> ",{"type":18,"tag":359,"props":7034,"children":7035},{"class":462},[7036],{"type":24,"value":7037},"ans",{"type":18,"tag":359,"props":7039,"children":7040},{"class":366},[7041],{"type":24,"value":432},{"type":18,"tag":359,"props":7043,"children":7044},{"class":424},[7045],{"type":24,"value":7046},"n",{"type":18,"tag":359,"props":7048,"children":7049},{"class":366},[7050],{"type":24,"value":7051},".",{"type":18,"tag":359,"props":7053,"children":7054},{"class":462},[7055],{"type":24,"value":7056},"size",{"type":18,"tag":359,"props":7058,"children":7059},{"class":366},[7060],{"type":24,"value":7061},"());\n",{"type":18,"tag":359,"props":7063,"children":7064},{"class":361,"line":506},[7065],{"type":18,"tag":359,"props":7066,"children":7067},{"class":1411},[7068],{"type":24,"value":7069},"//op",{"type":18,"tag":27,"props":7071,"children":7072},{},[7073],{"type":24,"value":7074},"End lah...",{"type":18,"tag":6398,"children":7076},[7077],{"type":24,"value":7078},".ct-527673{color:#C678DD;}\n.ct-048248{color:#ABB2BF;}\n.ct-980424{color:#D19A66;}\n.ct-491639{color:#56B6C2;}\n.ct-230043{color:#E5C07B;}\n.ct-578036{color:#61AFEF;}\n.ct-277366{color:#7F848E;font-style:italic;}",{"title":8,"searchDepth":167,"depth":167,"links":7080},[7081,7082],{"id":6854,"depth":170,"text":6857},{"id":6865,"depth":170,"text":6868},"content:blog:test:first-post.md","blog/test/first-post.md",{"_path":7086,"_dir":6844,"_draft":7,"_partial":7,"_locale":8,"_empty":7,"title":7087,"description":7088,"author":6847,"dates":7089,"body":7090,"_type":177,"_id":7115,"_source":179,"_file":7116,"_extension":181},"/blog/test/second-post","Counter works","This is a description for my second blog post where counter works",{"published":6849},{"type":15,"children":7091,"toc":7111},[7092,7097,7101,7107],{"type":18,"tag":19,"props":7093,"children":7095},{"id":7094},"counter-works",[7096],{"type":24,"value":7087},{"type":18,"tag":7098,"props":7099,"children":7100},"counter",{},[],{"type":18,"tag":19,"props":7102,"children":7104},{"id":7103},"even-running-webgl",[7105],{"type":24,"value":7106},"Even running WebGL",{"type":18,"tag":7108,"props":7109,"children":7110},"web-g-lx-triangle",{},[],{"title":8,"searchDepth":167,"depth":167,"links":7112},[7113,7114],{"id":7094,"depth":170,"text":7087},{"id":7103,"depth":170,"text":7106},"content:blog:test:second-post.md","blog/test/second-post.md",[7118],{"_path":7119,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"body":7120,"_id":7133,"_type":7134,"title":7135,"_source":179,"_file":7136,"_extension":7134},"/category",[7121,7124,7127,7130],{"title":7122,"description":7123,"value":8},"All Blogs","I want ALL!",{"title":7125,"description":7126,"value":6776},"Machine Learning Projects","Course Projects done in ML courses such as COMP4211",{"title":7128,"description":7129,"value":6},"HCI Projects","Human Computer Interaction (COMP4461) Projects",{"title":7131,"description":7132,"value":6844},"Testing Site","Where I test nuclear bombs","content:category.json","json","Category","category.json",1690989869107]