Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

**Conversational Agents Flow - Route on form page only matches if second parameter is repeated?**

Hi,

For a career advice chatbot use-case I have a standard flow in the Conversational Agents (Dialogflow CX) preview. It has two required parameters on the first page:

- goal - a custom entity type
- Coach_or_Browse_Preference - another custom entity type.

Each parameter also has a custom payload with some suggestion chips, giving three types of goals the chatbot can assist with currently (e.g. finding jobs to apply for), and then for the second parameter a choice of whether the user wants to start a coaching session or not.

The first route is an intent route that matches words related to coaching, with a transition to a playbook. It has no conditions.

Then there are three very similar routes that combine an intent with a condition.

  1. The intent matches words related to the use declining a coaching session. 
  2. The conditions look at $session.params.goal and sends the user to a different flow depending on its value. 

    For all of the routes, they are only matched if the user repeats their answer to the second prompt about a coaching session. 

    e.g. user says their goal 'find a job', then agrees to a coaching session by saying 'coaching'. They need to repeat coaching (or anything else that matches the coaching route intent) before it is triggered.  The same is true on the other routes - the user needs to repeat their second answer for the route to be triggered.

Looking at the original response, it looks as if the agent is not seeing the first answer to the Coach_or_Browse_Preference parameter prompt for some reason. 

"PageState": {
"ActiveParameter": "Coach_or_Browse_Preference",
"Name": "Session Goals",
"Status": "PROCESSING_FORM",
"PageId": "fb35ea26-66b8-4dd4-b9cd-19bd0c98072e",
"FormFilled": false
}

Any ideas where I'm going wrong or how to troubleshoot this further?

Thanks
Joe


 

 

0 1 221
1 REPLY 1