2

I would like to connect two google dialog flow agents, so that under certain circumstances the first agent (the one active to which the user is talking to) invokes and activates a second agent which can take care of the particular situation and can talk to the user giving him the right information.

For example:

user: ok google, talk to agent 1

google agent 1: hello from agent 1

...

user: ok google now introduce me to the history of Brazil

google agent 1: to better understanding the history of Brazil I redirect you to agent 2.

google agent 2: welcome to agent 2, I will teach you everything about Brazil history

Is it possible?

Sairaj Sawant
  • 1,842
  • 1
  • 12
  • 16
Manuela
  • 462
  • 6
  • 18
  • What would you gain from doing this? Dialogflow agents allow 2000 intents per agent (https://cloud.google.com/dialogflow-enterprise/quotas), so for most use cases you should be able to accomplish your goals with just one agent. – Max Wiederholt Feb 11 '19 at 17:34
  • 2
    Check out this answer: https://stackoverflow.com/a/48729786/109663 – techpeace Feb 11 '19 at 18:00
  • 1
    @MaxWiederholt I want to mantain the two agents separate (they develop 2 different features and will be in charge of different development teams). – Manuela Feb 12 '19 at 17:07
  • @techpeace great post but in that way agent1 keeps controlling the conversation while I'd like to give all conversation control to agent2. – Manuela Feb 12 '19 at 17:28
  • @Manuela As mentioned in that post, only Google can invoke an action. It can't be invoked directly by another action. – techpeace Feb 12 '19 at 21:45
  • 1
    @techpeace thank you, this can be a problem for my project. I hope to find some workaround to it. :) – Manuela Feb 13 '19 at 09:29

0 Answers0