v1.6.7 API.AI - User Entities for Session
In this release have been introduced option to set up user entities for current session. This entities will be applied for every request in 30 minutes period. After the period you need to reupload entities.
Sample code:
final Entity myDwarfs = new Entity("dwarfs");
myDwarfs.addEntry(new EntityEntry("Ori", new String[]{"Ori", "Nori"}));
myDwarfs.addEntry(new EntityEntry("Bifur", new String[] {"Bofur","Bombur"}));
final AIResponse uploadResult = aiDataService.uploadUserEntity(myDwarfs);