Skip to content

v1.6.7 API.AI - User Entities for Session

Compare
Choose a tag to compare
@xVir xVir released this 29 Jul 07:25
· 129 commits to master since this release

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);