How to get Json from Java SDK for APi.ai

时间:2017-06-19 14:06:24

标签: java sdk dialogflow

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

1 个答案:

答案 0 :(得分:2)

如果您进入SDK中包含的测试文件TestClientApplication.java,您可以看到它导入AIRequestAIResponseAIResponse类是在api.ai上显示JSON时显示的JSON对象。如果你进入Class本身,你可以看到它有JSON中所有字段的getter和setter。