I'm working on an app with API.ai. I want to make my API.ai contexts linked with another API (without using one click integration). To do that, I'm using java sdk for API.ai but I can't find how to get the json from my intent, i mean the entire json made.
Hope to be clear, if anyone could help Thank you very much
答案 0 :(得分:2)
如果您进入SDK中包含的测试文件TestClientApplication.java,您可以看到它导入AIRequest
和AIResponse
。 AIResponse
类是在api.ai
上显示JSON时显示的JSON对象。如果你进入Class本身,你可以看到它有JSON中所有字段的getter和setter。