问题
I am trying to create an Actions on Google app using Dialogflow (api.ai). I need to get the train status. So my entity will be train number or train name. There is a lot of train names. So I can't add the entity values manually. How can i add entity values dynamically to the console?
回答1:
You can add large sets of values and synonyms either JSON or CVS formatted by:
- Directly pasting them in the Entity raw mode JSON or CSV fields.
- Uploading a JSON or CSV formatted file entity.
- Make POST calls to the Dialogflow API. See more here.
While you can use the Allow automated expansion checkbox in the entity to take what the user says as an entity value even though it wasn't defined I would advice against it as it will require a large amount of examples (entity values) for training to be able to match relevantly. Find more here.
来源:https://stackoverflow.com/questions/48899846/dialogflow-dynamic-enity-issue