Lijo Abraham
Lijo Abraham

Reputation: 881

how can we pass the user original query across all followup intent in dialogflow

I have one intent named "search.category" which has user queries like "32gb phones" and it has a follow up intent to get_brand question like "do you have any specific brand? ".

This can have two type of answers that user can enter brand name or he can say "I don't know."

Is there any way to pass the whole user query in main intent to followup intents.

How can we pass the original user query(32gb phones) as a parameter across the intents?

enter image description here

enter image description here

In the second picture, you can see that two entities are selected, so is there any way to select the other text from user query ( I want the "show me some under 40000")

Upvotes: 1

Views: 1830

Answers (1)

Prisoner
Prisoner

Reputation: 50731

To do this, you would create a new Output Context on the first intent. Output contexts created as part of an intent contain the parameters that were set by the user when they were created and are available in subsequent intents (for as long as their lifespan is active). You can access the context's parameters either in the response or in your fulfillment webhook.

If you're trying to use values that aren't set in the parameters, then in the fulfillment of the original intent you can set any value you want as a parameter of an Output Context that you create in your webhook.

Upvotes: 3

Related Questions