Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Dialogflow CX - transition to new page after webhook response

I am having problems getting Dialogflow to  transition to a page in the same flow after calling a webhook. It is called from a condition route on a page that prompts for a single parameter. The webhook response is getting some information from firestore  based on the value of that page parameter. It is tested and working by itself in the console agent simulator and with the DF messenger integration.

To configure the page transition I first tried simply setting the transition in the console. However this does not work.

While I can't find this clearly documented, I am wondering if you must handle the transition as part of the WebhookResponse witb target_page.

I tested this approach, and can get it to work in the simulator. It transitions and gives an entry fulfilment from the new page.

But it doesn't work when testing with the messenger integration. The webhook is a Cloud Run Function, but it doesn't appear to be logging any errors to Cloud logging that would explain the different behaviour in the agent simulator vs the messenger integration.

So two questions -

1) can anyone confirm that when using a webhook response, it is mandatory to set the target_page for a transition in the response itself rather than configuring in the console

2) how can I troubleshoot the different behaviour I see when setting target_page in the webhook response (is it works in simulator but not in messenger integration).

Thanks!

 

 

 

Solved Solved
0 6 762
1 ACCEPTED SOLUTION

Hi @Joe_McFadden is a behavior that is not documented. The webhook call and the transition are different things. If your webhook injects this job_choice with another value rather than null then that route has to work.

Could you please send an screenshot of the component?

View solution in original post