I am also confused here. But I got a workaround. By sending an event instead of a query, because the event can take parameters. You can put the firebase uid into the parameters. Below is some of my javascript code.
function sendEvent(eventName,params){
$.ajax({
type: "POST",
url: baseUrl + "query?v=20150910",
contentType: "application/json; charset=utf-8",
dataType: "json",
headers: {
"Authorization": "Bearer " + accessToken
},
data: JSON.stringify({ event:{
name: "WELCOME",data:{uid:"somethindrandom"}
}, lang: "zh-CN", sessionId: sessionId }),
success: function(data) {
console.log(data);
I send an event to trigger the default welcome Intent by eventName "WELCOME", carrying a uid parameter. Then you can get the uid parameter from #Welcome.uid, and transmit to you webhook.
![Firebase console screenshot]](https://i.stack.imgur.com/xeVba.png)