dialogflow / dialogflow-fulfillment-nodejs

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

Fixes #35 Multiple messages not supported with payloads #325

Open charleswong28 opened 3 years ago

charleswong28 commented 3 years ago

It's my first day on dialogflow so I am not sure I am doing it correctly. I've just tested it on Facebook and it's okay to send multiple payloads like this:

agent.add(new Text({'text': 'hello', 'platform': 'FACEBOOK'}));
agent.add(new Payload('FACEBOOK', {...}, { sendAsMessage:true });
agent.add(new Payload('FACEBOOK', {...}, { sendAsMessage:true });

Please don't merge until someone who is working on other integrations gets this PR tested. Your help with this PR is much appreciated.

google-cla[bot] commented 3 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.