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},可以告诉我您的年龄吗?`
})
})
Related Articles
What is the User Messages in dashboard?
User Messages is the number of user actions (e.g. send text, click on a button, upload media, etc). Please click here to see more details about Dashboard.
Could I save any chatbot user data and create a custom report by myself?
You could use the data source to create a report. However, this will require the creation of advanced pre-actions in each node. Please refer to the Reference documentation for more details.
We have different consecutive responses (first, second, third response) to a certain trigger, can we assign a certain time delay (e.g.15 seconds) to the third one?
You can use responses to send the first 2 responses and use an action to set the agenda for the third response, however, we can only support a delay of around 1 min as it takes time for the agenda to run. Please click here for more details. Or you ...
Why couldn't I receive my image response in WhatsApp?
1. Check the image type: the image must be a valid image file format, such as .jpeg and .png. Other formats are not supported by WhatsApp. Please click here for more WhatsApp message type details. 2. Check if the file size is too large: if it is too ...
How to apply custom info for member tag?
You could add an advance member tag with this.member in the node to display the info saved in the member data before. return new Promise((resolve, reject) => { resolve({ tags: [`${this.member.botMeta.tempData.template}`] }) }) Please see the advanced ...