As per the this document (https://cloud.ibm.com/docs/services/voice-agent?topic=voice-agent-api-reference#state-variables-iva) Voice Agent sets some state variables for Watson Assistant.
I want to access the caller number (vgwSIPFromURI) and pass it on to my cloud function as a parameter.
How can I do this?
Here is a simplified version of my code in the JSON editor:
{
"output": {
"text": {
"values": [
"<? $myResult ?>"
],
"selection_policy": "sequential"
}
},
"actions": [
{
"name": "/path/to/my/cloud-function",
"type": "server",
"parameters": {
"name" : "$name"
},
"credentials": "$myCredentials",
"result_variable": "$myResult"
}
]
}