Reputation: 21
I have a Dialogflow inline, where when welcome intent is executed I need to call agent.add()
so it replies with something like
Hello (username)!
This username is not that the user writes but it's the profile name that he has logged in to the device
Upvotes: 0
Views: 85
Reputation: 50701
In order to get the user's name, you need to request permission from the user. So it usually isn't available as part of the welcoming Intent (at least not the first time they talk to your Action). You need to do one of two things:
Upvotes: 1