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 281 forks source link

Cannot add more than one Custom Payload #290

Open despider001 opened 4 years ago

despider001 commented 4 years ago

Hi there, I'm trying to add custom payload twice in the following way;

cards = new Payload('PLATFORM_UNSPECIFIED', cardObj, { sendAsMessage: true, rawPayload: true });
agent.add(cards)

I'm getting such an error: Error: Payload response for PLATFORM_UNSPECIFIED already defined. Any idea how can I send more than one custom payload?

Thanks

ParticleDuality commented 4 years ago

Same problem here. Did you find any solution?

alexedtionweb commented 4 years ago

assign the property to the dialogflow response object and then you can get it.

On Tue, Mar 3, 2020, 17:58 David Santiago Pulido Gómez < notifications@github.com> wrote:

Same problem here. Did you find any solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dialogflow/dialogflow-fulfillment-nodejs/issues/290?email_source=notifications&email_token=ALEL3CSWXCIQM3PWMAMEQR3RFVVN7A5CNFSM4KTEHPJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENVDZOQ#issuecomment-594164922, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALEL3CWFZOJMTV56MUFHOH3RFVVN7ANCNFSM4KTEHPJQ .