Unable to save user utterance in a parameter

74 views
Skip to first unread message

Shaveta Arya

unread,
Mar 9, 2021, 10:22:27 AM3/9/21
to Dialogflow CX Edition users
I have a use case in dialogflow CX that whatever user says at the start page, is no match intent is invoked, the utterance should go to webhook for a search functionality.

I am unable to save it in parameter. Even I am not able to save user utterance in parameter from any page on the start page. Sometimes It is needed to reference it later.

Would appreciate any help in this issue.

Hannah Jane Nicole Altares

unread,
Apr 15, 2021, 5:43:01 PM4/15/21
to Dialogflow CX Edition users

You should be able to extract the original user query and pass it as a parameter to your CX agents using webhook.

To do so, you should enable the “Use Webhook” option on the specific route where you want the user query to be extracted. When that route is triggered, you should be able to extract the original user query in your Webhook Request’s query union field. Here are the four possible Webhook Request fields where you can extract the relevant data based on the input type that the user provided:


The user query that you extracted can then be passed as a parameter to your CX agent by adding it to your WebhookResponse body inside either of the following field:


Here’s an example webhook response containing a session parameter:

jsonResponse = { 

  "session_info": 

  { 

    "parameters": 

    { 

      "parameter_name": "parameter value" 

    } 

  } 

};

Reply all
Reply to author
Forward
0 new messages