Problem with Custom Payload on Slack


#1

Hi
I’m trying to implement quick replies using Custom Payload on Slack using the following code. But this will just print the Hello World statement but not custom payload. I want it to be able to print both the quick replies as well as the statement.

app.setHandler({

HelloWorldIntent() {
this.$dialogflowAgent.setCustomPayload(‘slack’, {
“quick_replies”: [
{
“content_type”: “text”,
“title”: “Joe”,
“payload”: “Joe”,
},
{
“content_type”: “text”,
“title”: “Samantha”,
“payload”: “Samantha”,
},
{
“content_type”: “text”,
“title”: “Chris”,
“payload”: “Chris”,
}
]
});
this.ask(‘Hello World! What’s your name?’, ‘Please tell me your name.’);
},

// …

});


#2

Hi @eleanor

I’m not one hundred percent sure, but either one or the other should be used.

setCustomPayload or ask