dialogflow-fulfillment-nodejs icon indicating copy to clipboard operation
dialogflow-fulfillment-nodejs copied to clipboard

Cannot add more than one Custom Payload

Open despider001 opened this issue 5 years ago • 2 comments

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

despider001 avatar Feb 11 '20 16:02 despider001

Same problem here. Did you find any solution?

ParticleDuality avatar Mar 03 '20 20:03 ParticleDuality

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 < [email protected]> 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 .

alexedtionweb avatar Mar 09 '20 11:03 alexedtionweb