У меня есть один вариант использования, в котором мне нужно отправить пользовательские данные вместе с push-уведомлением в Google Assistant с помощью ActionOnSDK. Как я могу отправить его кому-нибудь, кто-нибудь знает?
let notification = {
userNotification: {
title: 'A new tip is added',
},
target: {
userId: 'abcd1234-EFGH_789',
intent: 'tell_latest_tip',
// Expects a IETF BCP-47 language code (i.e. en-US)
locale: 'en-US'
},
};
request.post('https://actions.googleapis.com/v2/conversations:send', {
'auth': {
'bearer': tokens.access_token,
},
'json': true,
'body': {
'customPushMessage': notification
}
};