简体   繁体   English

将多个 Dialogflow 代理集成到单个 Google 助理操作

[英]Integrate multiple Dialogflow agents to single google assistant action

I've gone through the actions console.我已经浏览了操作控制台。 Once in the respective project (created with agent), it allows to add a project but then selecting a project (which is another dialogflow agent) creates a new google actions project with its own development and deploy settings.一旦进入相应的项目(使用代理创建),它允许添加一个项目,然后选择一个项目(这是另一个对话流代理)创建一个具有自己的开发和部署设置的新谷歌操作项目。 Isn't there a way that I can deploy multiple agents (projects) on a single google assistant channel.有没有办法可以在单个谷歌助手频道上部署多个代理(项目)。

The reason is that I'd be asking users to select which bot they would like to have a conversation with.原因是我会询问用户 select 他们想与哪个机器人进行对话。 Imagine this as various agents dealing with totally different products for a company.将其想象为为一家公司处理完全不同产品的各种代理。 So I have one bot for an insurance products and another for personal loan products.所以我有一个用于保险产品的机器人和另一个用于个人贷款产品的机器人。 If I have more than 5 product lines like that, the conversation in dialogflow could become bloated with intents, entities and contexts.如果我有超过 5 个这样的产品线,对话流中的对话可能会因意图、实体和上下文而变得臃肿。 That's why I want to have different dialogflow agents at the backend to have a different conversational experience for each product's consumers.这就是为什么我希望在后端拥有不同的对话流代理,以便为每个产品的消费者提供不同的对话体验。

On the website, they can be transferred to respective agent but how can I achieve this in Google Assistant?在网站上,它们可以转移到各自的代理,但我如何在 Google Assistant 中实现这一点?

Firstly, For each Google action, there is a dialogflow agent created and for each dialogflow agent, a google cloud project is created.首先,对于每个 Google 操作,都会创建一个对话流代理,并且对于每个对话流代理,都会创建一个谷歌云项目。 You can only have one dialogflow agent per project.每个项目只能有一个对话流代理。 Now, To implement what you want, you would have to custom build the feature where you can ask your user which bot they would want to talk to.现在,要实现您想要的,您必须自定义构建功能,您可以在其中询问用户他们想与哪个机器人交谈。 One of the ways to achieve this would be a bot-to-bot transfer in which you create a single bot in which you ask which bot the user would like to chat with, then in fulfillment implement a bot-to-bot transfer.实现这一点的方法之一是机器人到机器人的传输,您可以在其中创建一个机器人,在其中询问用户想与哪个机器人聊天,然后在实现中实现机器人到机器人的传输。

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

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