Open Sarps opened 6 years ago
What is the request source you're getting?
Currently custom payload only supports the following request source: "google", "facebook", "kik", "line", "skype", "slack", "telegram", "viber". Other than that the key will be set to "unspecified". That seems what happened with yours.
Furthermore, when you're integrating with certain platform, don't preview them in Dialogflow console, cause it will also set the key to "unspecified".
Thanks for the quick response. I am not worried about the key, I can handle that as I am using a nodejs client. My issue is that the payload is outside the fulfillmentMessages array. Just like how the text response is inside fulfillmentMessages, I was hoping the payload would also be in there, considering the fact that it is a reponse and all responses are supposed to be in the fulfillmentMessages array. Thanks, once again.
Oh sorry, are you talking about payload
object inside fulfillmentMessages
as per Dialogflow specification here?
yh, exactly
I can't reproduce the JSON response you mentioned in the first comment, either by adding it manually using DIalogflow console or using Dialogflow official NodeJS library.
Can you explain more what is the use case here? And what is web_url
type? is it a Facebook messaging template? if so, why does your JSON contain google
in the platform
?
@Sarps I'm getting a similar issue, have you been able to fix yours ?
I think this issue should be closed due to inactivity.
When I create a custom payload programmatically and render it, it ends up being outside of the fulfillmentMessages array.
Due to that dialogflow places the payload in data object instead of messages object.
Which is not what I get when I add the payload manually to the intent response inside dialogflow.
Please is there any way that I could force the payload into the fulfillmentMessages array. Thank you for your good works. This package has really helped a lot.