dialogflow / dialogflow-fulfillment-nodejs

Dialogflow agent fulfillment library supporting v1&v2, 8 platforms, and text, card, image, suggestion, custom responses
Apache License 2.0
598 stars 281 forks source link

Skype custom payload not working for the SKYPE integration #216

Open huizarmx opened 5 years ago

huizarmx commented 5 years ago

I'm trying to send a custom payload to SKYPE. I've tried with different custom playloads, but to keep the example as simple as possible, I'll use the simplest payload that I could think of:

The steps to reproduce the issue:

  1. Create a fulfillment webhook.
  2. Try to reply to skype with any custom payload like:

const payloadJSON = { 'text': 'Hi, my friend' }; const payload = new Payload(agent.SKYPE); payload.setPayload(payloadJSON); agent.add(payload);

  1. The reponse generated by the fulfillment webhook is

{ "payload": { "skype": { "text": "Hi, my friend" } }, "outputContexts": [ ] }

  1. Skype does not receive any response and fails silently.

I would expect Skype to receive the response successfully. The strange thing here is that if I set a custom payload in the dialogflow console, for example for the Default Falback Intent as follows:

image

And i write something in skype that falls into the Default Fallback Intent, I receive the correct response.

It seems to me that this is a bug. Am I doing something wrong?

huizarmx commented 5 years ago

Anyone that may have a suggestion?

huizarmx commented 5 years ago

@matthewayne I would really appreciate your thoughts on this issue. I think it's relevant for anyone using dialogflow to create bots that may integrate with platforms other than actions-on-google.

Kindest Regards

xenflux commented 5 years ago

Same issue here.

vefilippo commented 5 years ago

Same issue here. I tried multiple custom payloads (from simple to more complex Adaptive Cards) and nothing seems to be working as custom payload.

gusmondel commented 5 years ago

any solution?