Null response for name and email entities

前端 未结 4 1550
名媛妹妹
名媛妹妹 2021-01-06 06:05

I tried inbuilt variable \"user\" methods, $user.name and $user.email in text response of API.AI, to greet user and show email-Id. Is there any inb

4条回答
  •  北海茫月
    2021-01-06 06:45

    There is no built in parameter user.

    Even if there was such a built-in parameter, it wouldn't expose the email address automatically (and probably not the name, either).

    Since you are using Actions on Google, you can use it to get user information such as the user's name, but this will require using Fulfillment through a webservice. See How to fetch device location using API AI? for more information about this (name and location are two things you can request permission for).

    The email address, however, is not something you can request in this way. To do this, you'll probably have to go through account linking to link it to a Google identity. See How to authenticate user with just a Google account on Actions on Google? for further info as well.

提交回复
热议问题