I’m using a javascript button template for a entity node. This template has four buttons with an specific value, but this values can be say in several ways. I tried to add the concept name in the payload return, but it doesn’t recognize the values.
I want to do something similiar to the list type entity where you can add concepts or synonyms to the value.
Is this possible?
This is a sample of how I do it.
var elements = [
{
"title": "Pollo",
"image_url": "https://i.blogs.es/8ceb02/pollo_entero/1366_2000.jpg",
"buttons": [{
"type": "postback",
"title": "Mas Información",
"payload": "~pollo"
}]
@daniel
The concept you have is ~pollo. If I am right you would have configured the entity synonym to contain ~pollo. Now assuming the ~pollo concept contains a few strings - like - pollo, gallina. You can use either of these in the postback. Your purpose is to “send” something to the platform in the form of postback which gets identified as the concept “pollo”.
Using ~pollo as the payload is an incorrect usage. Either "payload": "pollo" or "payload": "gallina" will be the appropriate usage for postback.
While you are using a template, users will mostly click the options but if someone enters manually, the bot should understand… that’s the idea of concept/synonym.
Note - Please do not forget to train the bot once!