Hi everyone!
I am currently developing a webhook in Dialogflow CX that connects to an external API. I am facing a challenge: when the API returns the error "ErrorCode": "NOT_FOUND", I would like to capture this error code in the webhook and create a parameter for it. My goal is to use this parameter to condition conversation flows, allowing me to direct the user to different pages depending on whether the API is functioning correctly or not.
I have tried using Event Handlers to handle this situation, but I haven't been able to configure them as expected, and I'm not entirely sure how to use them. Therefore, I'm considering the possibility of passing the ErrorCode as a parameter.
Has anyone encountered a similar situation and could share insights on how to capture this error in the webhook and effectively set up the parameters? Any help or practical examples would be greatly appreciated!
Thank you for your attention!
Solved! Go to Solution.
Hi @Kozato,
Welcome to Google Cloud Community!
Using parameters to handle API errors in Dialogflow CX might be an effective approach. To achieve this you might consider following these steps :
You also visit the following documentation for more detailed information about handling webhooks and error codes in Dialogflow CX:
I hope the above information is helpful.
Hi @Kozato,
Welcome to Google Cloud Community!
Using parameters to handle API errors in Dialogflow CX might be an effective approach. To achieve this you might consider following these steps :
You also visit the following documentation for more detailed information about handling webhooks and error codes in Dialogflow CX:
I hope the above information is helpful.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |