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

Facebook custom payload not working

Open parth26297 opened this issue 6 years ago • 4 comments

I am creating custom payload for receipt as follows:

const payload = { template_type: 'receipt',
  recipient_name: 'John Doe',
  order_number: '12345678902',
  currency: 'USD',
  payment_method: 'Visa 2345',
  order_url: 'http://petersapparel.parseapp.com/order?order_id=123456',
  timestamp: '1428444852',
  address: 
   { street_1: '1 Hacker Way',
     street_2: '',
     city: 'Menlo Park',
     postal_code: '94025',
     state: 'CA',
     country: 'US' },
  summary: { total_cost: 12.8 },
  adjustments: [],
  elements: 
   [ { title: 'Caffe Latte',
       subtitle: 'small',
       quantity: 1,
       price: '12.80',
       currency: 'USD',
       image_url: "imageurl" } ] };

And sending it using dialogflow WehookClient as follows:

agent.add(new Payload(agent.FACEBOOK, {attachment: {type: "template", payload}}, { rawPayload: false, sendAsMessage: true }));

I am not getting any fulfillment response in the response.

What am I missing?

PS. I am using inline editor

parth26297 avatar Nov 29 '19 10:11 parth26297

Same here. Is anybody maintaining this???

OpenDog avatar Jan 06 '20 20:01 OpenDog

Seems dialogflow-fulfillment-nodejs is dead

yakim333 avatar Jan 10 '20 17:01 yakim333

RIP

OpenDog avatar Jan 10 '20 17:01 OpenDog

the same here any updates

mohamedAminElSaeed avatar Nov 13 '20 21:11 mohamedAminElSaeed