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

Facebook custom payload not working #278

Open parth26297 opened 4 years ago

parth26297 commented 4 years ago

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

OpenDog commented 4 years ago

Same here. Is anybody maintaining this???

yakim333 commented 4 years ago

Seems dialogflow-fulfillment-nodejs is dead

OpenDog commented 4 years ago

RIP

mohamedAminElSaeed commented 3 years ago

the same here any updates