I want to fetch one time notification token from fb messenger

res = {
			"attachment": {
				"type": "template",
				"payload": {
					"template_type": "one_time_notif_req",
					"title": "Notify Me",
					"payload": "Notify Me"
				}
			}
		}

	dispatcher.utter_custom_json(res)

image

This is the output of the following code, when i click the notify me button, i want to generate the OTN, but i dont know how?

Hi @jehanzaib12 do you know how that would work on the facebook API in general? This seems like something facebook should handle, not rasa…

@erohmensing it would be handle by facebook, but i don’t know how to do that

Got it. Sorry, I don’t know either :sweat_smile:hope someone else here can help you :slight_smile:

Hello, Did you already solve this problem?

I am working on the same but I don’t know how to catch the event on the webhook.

I hope you can help me.

Thanks in advance.

After you click the “notfiy me” button messenger will trigger the webhook. you need to write a code to listen to that webhook and trigger your action.

2 Likes

Hey, Hope you solved the problem Then please your solution to us.