0
votes

I want to send parameter values of previos context in DialogFlow Responses. I know it can be done like #context_name.parameter_name.

Problem is in my intent, there are multiple contexts set like below:

response

I was hoping it would check which context is active in given 4 context and response accordingly, but it is taking randomly.
So sometimes response is correct (Thanks for the details. Your info : Richard) and sometimes wrong (Thanks for the details. Your info : #intent1.given-name).

Is there any workaround?
This is just example, there can be different context and different values.
And even if the context value is same but parameter value is different, we are facing same problem.

2

2 Answers

1
votes

I think you are using Dialogflow to respond back to the user and not using a webhook. If that is the case, the way you are using Text response, it will not help you. This will always give a random reply to the user.

Better to use a webhook and extract your parameters in the code based on context and use them. Check out my answer to use Context to save Parameters using NodeJS client and use it in webhook.

0
votes

Don't know if this is still relevant but you can press shift+enter to add a new line in most integrations. That way you can respond with all your values in a single response block.