How to use the user personalised info in the response?

How to use the user personalised info in the response?

1. Create the save name action to save the user name in temp data.
return new Promise((resolve, reject) => {
  this.lodash.set(this.member, "botMeta.tempData.booking.name", this.messageEvent.data.text)
  resolve({
    member: this.member,
  })
})
2. Add this action in the pre-action of the following node to save the answer of the questions because the bot can only receive the user's name input at the node comes after.



3. You could check the temp data saved in the Member details page here.



4. You have to use the Advanced - Transform section in the response for personalization or other advanced logic. You could find all the Webchat message type in here as well.
return new Promise ((resolve) => {
  resolve({
    "type": "TEXT",
    "text": `好的,${this.member.botMeta.tempData.name}${this.member.botMeta.tempData.gender},可以告诉我您的年龄吗?`
  })
})