简体   繁体   English

自己的谷歌助手:Dialogflow 模拟操作 sdks action.json

[英]Own Google assistant: Dialogflow analog to action sdks action.json

I'm about to build my first own Google Assistant.我即将构建我自己的第一个 Google 助理。 Now with action sdk and the action.json file I managed to extent the assistant.现在使用 action sdk 和 action.json 文件,我设法扩展了助手。 For example I can say: "What's my favorite color?"例如,我可以说:“我最喜欢什么颜色?” And the assistant responds: "Blue".助理回答:“蓝色”。 Now I have tried to do the same with DialogFlow instead of the action.json file.现在我尝试用 DialogFlow 而不是 action.json 文件做同样的事情。 But as I see it, I can only build apps here.但在我看来,我只能在这里构建应用程序。 So I have to start the conversation with: "Start my test app" -> Answers with Main intent -> "Whats my favourite color?"所以我必须开始对话:“启动我的测试应用程序”-> 主要意图的答案->“我最喜欢的颜色是什么?” -> "Blue". - >“蓝色”。 Or "Ask my test app what my favorite color is".或者“问我的测试应用我最喜欢什么颜色”。 Can I replicate the behaviour of action.json with DialogFlow?我可以用 DialogFlow 复制 action.json 的行为吗? So directly ask the assistant: "What's my favorite color" without starting an app first?所以直接问助理:“我最喜欢什么颜色”,不用先启动应用程序? Thanks for your help.谢谢你的帮助。

No, that's not possible.不,那不可能。 You need to start the app before hand.您需要事先启动该应用程序。 If you want to do so, you have to integrate it directly to your google home so in that case the best way to do that using action sdk.如果你想这样做,你必须将它直接集成到你的谷歌主页,所以在这种情况下,最好的方法是使用 action sdk。

However, this might change from time to time.但是,这可能会不时发生变化。 I last developed for google home like 6 months back, if I am not wrong then back then this was not possible, but I am not quite sure what's the scenario now.我上次为 google home 开发是在 6 个月前,如果我没有错,那么当时这是不可能的,但我不太确定现在的情况是什么。 I did a little digging but on just an overview of the results, the things are still the same.我做了一些挖掘,但只是对结果的概述,事情仍然是一样的。 Even if you find a way of achieving it through dialogflow, then post your answer here, but I don't think that possible.即使您找到了通​​过对话流实现它的方法,也请在此处发布您的答案,但我认为这是不可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM