I am making call to wit.ai message API from java. It works and i can get the intent and entities for the message as per my story definition. However I have doubt - when i will be adding multiple stories to my bot on wit.ai platform, i need to use the same wit.ai URL. In that case how exactly i will extract the intents and entities from the wit response? Message from user could be for any story message. For extracting entity value from the wit.ai response i need to specify entity name (in json response) in my method. Lets say - entities.[0].value
Any idea how can i do that in java? Also am not getting how exactly the custom actions defined in the story has to be implemented and use in java.
I tried sample POC in node.js(by following the messenger.js file) and it works fine for custom actions defined. But am not getting how to do it in java?
Any help/pointers in this regard greatly appreciated.
Thanks.