I am not able to get the original value of the parameter that has been matched with the entity. I already have an output context and I can see the entity.original value in the request json, but I am not able to get the value. I have tried the methods this post (How do I get parameter value from arguments?) and this post (DialogFlow - Get original string associated with parameter) mentioned.But none seem to work. They simply return the entity name or undefined. Any help is appreciated.
Here is a part of the Request JSON
"outputContexts": [
{
"name": "projects/XXXXXXX/agent/sessions/XXXX/contexts/office",
"lifespanCount": 1,
"parameters": {
"name": [
"name"
],
"name.original": [
"scott"
]
}
},
I want to get the "name.original" value.