Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Custom Payload to Facebook Messenger // quick reply #34

Open
Foddy opened this issue Aug 31, 2019 · 2 comments
Open

Custom Payload to Facebook Messenger // quick reply #34

Foddy opened this issue Aug 31, 2019 · 2 comments

Comments

@Foddy
Copy link

Foddy commented Aug 31, 2019

Hi,

I am trying to send this custom payload to request the users email. Unfortunately nothing appears on FB Messenger:

$agent->reply(\Dialogflow\RichMessage\Payload::create([
	'quick_replies' => [
		['content_type' => 'user_email']
	]
]));

I also tried something like this without success:

$agent->reply(\Dialogflow\RichMessage\Payload::create([
	['content_type' => 'user_email']
]));

According to the facebook docs this should work:
https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies#email

Has anybody an idea how this should look to work?

@basiteaal
Copy link

Do you have an example of the actual response from Dialogflow?

@AngelRuiz20XX
Copy link

Just add some "text" and it should work fine :)

{
"facebook": {
"quick_replies": [
{
"content_type":"user_email"
    }
],
"text": "What's your email?"
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants