July 2018
Intermediate to advanced
404 pages
9h 5m
English
In order to create an intent template to match the user's feeling, create a Feeling entity with happy and sad. The Feeling entity can be expanded to handle more diverse ranges of emotions such as anger, frustration, and fear. For the purpose of keeping the project simple, only two emotions will be added.
The following code shows the Feeling entity in JSON format, which can be imported into Dialogflow:
[ { "value": "happy", "synonyms": [ "happy" ] }, { "value": "sad", "synonyms": [ "sad" ] }]
Read now
Unlock full access