How to add the payload clicked in analytics?

How to add the payload clicked in analytics?

You could add an advanced analytics in the following node to record the payload clicked by customer.

  1. return new Promise((resolve, reject) => {
  2.   resolve({
  3.     category: "Question 1",
  4.     action: "Payload clicked",
  5.     label: this.messageEvent.data.payload
  6.   })
  7. })

Please see the related documentation here and start building your bot at https://build.stellabot.com/