会话结束后是否可以清除会话历史记录

时间:2019-04-19 17:57:49

标签: google-cloud-platform dialogflow actions-on-google

我的Google Assistant应用为用户提供了敏感数据,如果没有两步验证,这些数据是不可见的。 不幸的是,即使在会话结束后,在Assistant应用程序中向上滚动后,用户和Assistant彼此说的所有内容都会保存并可见。 有什么办法可以关闭会话保存功能,以便在会话结束后不可见?

用户可以关闭助手对话历史记录以保存自己的身份,但是由于应用程序应该是完全安全的,因此似乎无法解决问题。

1 个答案:

答案 0 :(得分:0)

在对话结束时,您可以要求用户手动删除其历史记录:

conv.ask(`Remember to clear your Google Assistant activity!`);

if (!conv.surface.capabilities.has('actions.capability.SCREEN_OUTPUT')) {
  conv.ask('For instructions on how to clear your activity, please revisit this action from a device with a screen.');
  return;
}

// Create a basic card
conv.ask(new BasicCard({
  text: 'Your Google Assistant stores your past activity to do things like remember your interests and give more personalized responses. You can see or delete your past activity at any time.'
  title: 'Delete your Google Assistant activity.',
  buttons: new Button({
    title: 'Learn how',
    url: 'https://support.google.com/assistant/answer/7108295?co=GENIE.Platform%3DAndroid&hl=en',
  }),
}));

来源:https://support.google.com/assistant/answer/7108295?co=GENIE.Platform%3DAndroid&hl=enhttps://developers.google.com/actions/assistant/responseshttps://developers.google.com/actions/assistant/save-data