Telegram Not Displaying Bot Messages

Hi,

Its a very strange error. The bot stops displaying its messages after a couple of responses. My other channels are receiving the responses. It stops half way in the form.

But when I type the reply according the next question I designed for the form, it seems to work.

It is selectively displaying some messages in the UI, ignoring the others.

Someone please help me with this!

Thank you.

Telegram_Bug_3

    2020-05-04 16:48:11,993 [DEBUG]  Predicted next action using policy_3_FormPolicy
    2020-05-04 16:48:11,993 [DEBUG]  Predicted next action 'action_listen' with confidence 1.00.
    2020-05-04 16:48:11,994 [DEBUG]  Action 'action_listen' ended with events '[]'.
    2020-05-04 16:48:12,094 [DEBUG]  Tracker with sender_id '1000574196' stored to database
    2020-05-04 16:48:12,094 [DEBUG]  Deleted lock for conversation '1000574196'.
    2020-05-04 16:48:23,406 [DEBUG]  Entering: get_me
    2020-05-04 16:48:23,522 [DEBUG]  https://api.telegram.org:443 "GET /bot1158129778:AAHviB2HcclXnbgX_qs-gJWI7m1Aw1VFRIc/getMe HTTP/1.1" 200 201
    2020-05-04 16:48:23,523 [DEBUG]  {'id': 1158129778, 'first_name': 'Job-searcher', 'is_bot': True, 'username': 'job_searcher_bot'}
    2020-05-04 16:48:23,523 [DEBUG]  Exiting: get_me
    2020-05-04 16:48:23,585 [DEBUG]  Recreating tracker from sender id '1000574196'
    2020-05-04 16:48:23,597 [DEBUG]  Received user message 'Digital Marketing' with intent '{'name': 'job_title', 'confidence': 0.9999934434890747}' and entities '[]'
    2020-05-04 16:48:23,597 [DEBUG]  Logged UserUtterance - tracker now has 103 events.
    2020-05-04 16:48:23,600 [DEBUG]  Current tracker state [{'slot_slot_current_start_page_2_0': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'prev_action_reset_job_slots': 1.0}, {'slot_slot_current_start_page_2_0': 1.0, 'prev_job_search_form_part_3': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'slot_requested_slot_0': 1.0, 'active_form_job_search_form_part_3': 1.0}, {'slot_slot_current_start_page_2_0': 1.0, 'intent_job_title': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'prev_action_listen': 1.0, 'slot_phone_number_0': 1.0, 'slot_email_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'slot_requested_slot_0': 1.0, 'active_form_job_search_form_part_3': 1.0}]
    2020-05-04 16:48:23,601 [DEBUG]  There is a memorised next action 'job_search_form_part_3'
    2020-05-04 16:48:23,605 [DEBUG]  There is an active form 'job_search_form_part_3'
    2020-05-04 16:48:23,605 [DEBUG]  NLU confidence threshold met, confidence of fallback action set to core threshold (0.4).
    2020-05-04 16:48:23,606 [DEBUG]  Predicted next action using policy_3_FormPolicy
    2020-05-04 16:48:23,606 [DEBUG]  Predicted next action 'job_search_form_part_3' with confidence 1.00.
    2020-05-04 16:48:23,607 [DEBUG]  Calling action endpoint to run action 'job_search_form_part_3'.
    2020-05-04 16:48:23,632 [DEBUG]  Action 'job_search_form_part_3' ended with events '[<rasa.core.events.SlotSet object at 0x7f3a72909a20>, <rasa.core.events.SlotSet object at 0x7f3a72909438>]'.
    2020-05-04 16:48:23,632 [DEBUG]  Current slot values: 
    	email: [email protected]
    	experience: None
    	job_alerts_set: no
    	job_title: digital marketing
    	job_type: None
    	location: None
    	max_exp: None
    	min_exp: None
    	name:  
    	otp_phone: None
    	phone_number: 7799310933
    	requested_slot: location
    	salary: None
    	slot_current_start_page: 5
    	slot_current_start_page_2: 0
    2020-05-04 16:48:23,635 [DEBUG]  Current tracker state [{'slot_slot_current_start_page_2_0': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_job_title_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'slot_salary_0': 1.0, 'prev_action_my_fallback': 1.0, 'slot_location_0': 1.0}, {'slot_slot_current_start_page_2_0': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'prev_action_listen': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_job_title_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'slot_salary_0': 1.0, 'slot_location_0': 1.0}, {'slot_slot_current_start_page_2_0': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'prev_action_reset_job_slots': 1.0}]
    2020-05-04 16:48:23,635 [DEBUG]  There is no memorised next action
    2020-05-04 16:48:23,640 [DEBUG]  There is no mapped action for the predicted intent, 'job_title'.
    2020-05-04 16:48:23,640 [DEBUG]  There is an active form 'job_search_form_part_3'
    2020-05-04 16:48:23,640 [DEBUG]  NLU confidence threshold met, confidence of fallback action set to core threshold (0.4).
    2020-05-04 16:48:23,640 [DEBUG]  Predicted next action using policy_3_FormPolicy
    2020-05-04 16:48:23,640 [DEBUG]  Predicted next action 'action_listen' with confidence 1.00.
    2020-05-04 16:48:23,640 [DEBUG]  Action 'action_listen' ended with events '[]'.
    2020-05-04 16:48:23,714 [DEBUG]  Tracker with sender_id '1000574196' stored to database
    2020-05-04 16:48:23,715 [DEBUG]  Deleted lock for conversation '1000574196'.
    2020-05-04 16:48:55,344 [DEBUG]  Entering: get_me
    2020-05-04 16:48:55,461 [DEBUG]  https://api.telegram.org:443 "GET /bot1158129778:AAHviB2HcclXnbgX_qs-gJWI7m1Aw1VFRIc/getMe HTTP/1.1" 200 201
    2020-05-04 16:48:55,461 [DEBUG]  {'id': 1158129778, 'first_name': 'Job-searcher', 'is_bot': True, 'username': 'job_searcher_bot'}
    2020-05-04 16:48:55,461 [DEBUG]  Exiting: get_me
    2020-05-04 16:48:55,523 [DEBUG]  Recreating tracker from sender id '1000574196'
    2020-05-04 16:48:55,535 [DEBUG]  Received user message 'hyderabad' with intent '{'name': 'location', 'confidence': 0.9996269941329956}' and entities '[]'
    2020-05-04 16:48:55,536 [DEBUG]  Logged UserUtterance - tracker now has 108 events.
    2020-05-04 16:48:55,539 [DEBUG]  Current tracker state [{'slot_slot_current_start_page_2_0': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'prev_action_reset_job_slots': 1.0}, {'slot_slot_current_start_page_2_0': 1.0, 'prev_job_search_form_part_3': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_job_title_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'slot_requested_slot_0': 1.0, 'active_form_job_search_form_part_3': 1.0}, {'slot_slot_current_start_page_2_0': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'intent_location': 1.0, 'prev_action_listen': 1.0, 'slot_phone_number_0': 1.0, 'slot_email_0': 1.0, 'slot_job_title_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'slot_requested_slot_0': 1.0, 'active_form_job_search_form_part_3': 1.0}]
    2020-05-04 16:48:55,540 [DEBUG]  There is no memorised next action
    2020-05-04 16:48:55,545 [DEBUG]  There is an active form 'job_search_form_part_3'
    2020-05-04 16:48:55,545 [DEBUG]  NLU confidence threshold met, confidence of fallback action set to core threshold (0.4).
    2020-05-04 16:48:55,545 [DEBUG]  Predicted next action using policy_3_FormPolicy
    2020-05-04 16:48:55,545 [DEBUG]  Predicted next action 'job_search_form_part_3' with confidence 1.00.
    2020-05-04 16:48:55,546 [DEBUG]  Calling action endpoint to run action 'job_search_form_part_3'.
    2020-05-04 16:48:55,585 [DEBUG]  Action 'job_search_form_part_3' ended with events '[<rasa.core.events.SlotSet object at 0x7f3a72b802b0>, <rasa.core.events.SlotSet object at 0x7f3a72b801d0>]'.
    2020-05-04 16:48:55,586 [DEBUG]  Current slot values: 
    	email: [email protected]
    	experience: None
    	job_alerts_set: no
    	job_title: digital marketing
    	job_type: None
    	location: Hyderabad
    	max_exp: None
    	min_exp: None
    	name:  
    	otp_phone: None
    	phone_number: 7799310933
    	requested_slot: experience
    	salary: None
    	slot_current_start_page: 5
    	slot_current_start_page_2: 0
    2020-05-04 16:48:55,589 [DEBUG]  Current tracker state [{'slot_slot_current_start_page_2_0': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_job_title_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'slot_salary_0': 1.0, 'prev_action_my_fallback': 1.0, 'slot_location_0': 1.0}, {'slot_slot_current_start_page_2_0': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'prev_action_listen': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_job_title_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'slot_salary_0': 1.0, 'slot_location_0': 1.0}, {'slot_slot_current_start_page_2_0': 1.0, 'slot_name_0': 1.0, 'slot_job_alerts_set_0': 1.0, 'slot_phone_number_0': 1.0, 'intent_another_job_search': 1.0, 'slot_email_0': 1.0, 'slot_slot_current_start_page_0': 1.0, 'prev_action_reset_job_slots': 1.0}]
    2020-05-04 16:48:55,589 [DEBUG]  There is no memorised next action
    2020-05-04 16:48:55,594 [DEBUG]  There is no mapped action for the predicted intent, 'location'.
    2020-05-04 16:48:55,594 [DEBUG]  There is an active form 'job_search_form_part_3'
    2020-05-04 16:48:55,594 [DEBUG]  NLU confidence threshold met, confidence of fallback action set to core threshold (0.4).
    2020-05-04 16:48:55,594 [DEBUG]  Predicted next action using policy_3_FormPolicy
    2020-05-04 16:48:55,595 [DEBUG]  Predicted next action 'action_listen' with confidence 1.00.
    2020-05-04 16:48:55,595 [DEBUG]  Action 'action_listen' ended with events '[]'.
    2020-05-04 16:48:55,665 [DEBUG]  Tracker with sender_id '1000574196' stored to database
    2020-05-04 16:48:55,666 [DEBUG]  Deleted lock for conversation '1000574196'.

So the above is the corresponding log to the screenshot. Both the questions have buttons. So all the messages which have buttons are not being generated except the very first question in the form (which is very strange).

2020-05-04 17:07:50,867 [ERROR] Couldn't create message for template 'utter_ask_show_more_jobs_new_job_goodbye'.
I can see this error in logs for a button template outside of forms.

So, what I suspect is there is some issue while creating buttons.

Please help!!!

Thank you!

Well, I fixed it. So the problem was while training the bot was deleting all the buttons messages from the domain file. It wasn’t deleting the facebook quick replies, so facebook channel was working. But was deleting the regular buttons.