dialogflow / dialogflow-nodejs-client

Node.js SDK for Dialogflow
Apache License 2.0
659 stars 287 forks source link

combining textRequest and eventRequest method functionality #99

Open tkrshn opened 6 years ago

tkrshn commented 6 years ago

This is more of a query than an issue. If this is not the correct forum, please feel free to close it out and let me know the appropriate place to ask this.

Issue I want to pass the username of the chat user as a parameter from the client to the webhook service via dialogflow. Right now I am using textRequest() method to send user query texts into dialogflow. But I want to also pass username parameter along the request. I came across eventRequest() method which lets me do that but then I can't pass query text in this method. Is there a way I can achieve both these in one go?

Thanks.