Dialogflow CX - unable to get currentFlow name in api response

Hi Team,

I'm using CX v3beta1 detect intent api call. In the return response from CX, I dont find "currentFlow - displayName" within queryResult object[documentation].  At the same time, i've enabled Cloud Logging for my agent. While analyzing the response from cloud logging, I could see "currentFlow - displayName" within the queryResult. I'm not sure why such discrepancy between the two. Is there any way to get the currentFlow display name in cx response ?

Cloud logging logs:

Vinoth1097_1-1711522753667.png

CX Response:

Vinoth1097_2-1711522893623.png

 

 

Solved Solved
2 4 151
1 ACCEPTED SOLUTION

Hi,

You are right, to get the display name you have to make a call to this method: https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.flows/g...

Best,

Xavi

View solution in original post

4 REPLIES 4

Hi,

You are right, to get the display name you have to make a call to this method: https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.flows/g...

Best,

Xavi

@xavidop , this would be sending one more api call to get the flow name. It would be much easier if the flow name is added to existing detectintent api, similar to what cloud logging gets.
I believe this is the only way now to get flow name.

yes, you will need to do an extra call to that endpoint. Right now is the only way to do it.

Best,

Xavi

Yo can request this feature to the Google Team here: https://issuetracker.google.com/issues?q=status:open%20componentid:956347&s=created_time:desc

please make sure that you mark my reply as the solution!

Best,

Xavi