Actions on google conv.asktodeplink不是函数

Actions on google conv.asktodeplink不是函数,actions-on-google,Actions On Google,即使在V1中,调用AsktodepLink的旧方法在DialogFlow中也不再有效 app.askToDeepLink('Great! Looks like we can do that in the Android app.', 'tool for Android', 'sample://scheduleMeeting', 'com.sample', 'handle this for you'); 有人知道如何在V2中调用AsktodepLink吗?如果您试图将一个Androi

即使在V1中,调用AsktodepLink的旧方法在DialogFlow中也不再有效

 app.askToDeepLink('Great! Looks like we can do that in the Android app.', 'tool for Android',
     'sample://scheduleMeeting', 'com.sample', 'handle this for you');

有人知道如何在V2中调用AsktodepLink吗?

如果您试图将一个Android应用程序与助手应用程序连接,您应该试试这个

app.intent('ask_to_deep_link_detail', (conv) => {
  const options = {
    destination: 'Google',
    url: 'example://gizmos',
    package: 'com.example.gizmos',
    reason: 'handle this for you',
  };
  conv.ask('Great! looks like maybe we can do that in the app.');
  conv.ask(new DeepLink(options));
});
获取助手的结果

如果用户接受链接,与应用程序的对话将结束,您将不会收到进一步的请求。如果他们拒绝链接,您将收到另一个请求,其中包含intent
actions.intent.link
和状态参数:

app.intent('ask_to_deep_link_confirmation', (conv, params, response) => {
  conv.ask('Okay maybe we can take care of that another time.');
});

我希望这能有所帮助。

如果您正试图将一个Android应用程序与助手应用程序连接,您应该试试这个

app.intent('ask_to_deep_link_detail', (conv) => {
  const options = {
    destination: 'Google',
    url: 'example://gizmos',
    package: 'com.example.gizmos',
    reason: 'handle this for you',
  };
  conv.ask('Great! looks like maybe we can do that in the app.');
  conv.ask(new DeepLink(options));
});
获取助手的结果

如果用户接受链接,与应用程序的对话将结束,您将不会收到进一步的请求。如果他们拒绝链接,您将收到另一个请求,其中包含intent
actions.intent.link
和状态参数:

app.intent('ask_to_deep_link_confirmation', (conv, params, response) => {
  conv.ask('Okay maybe we can take care of that another time.');
});
我希望这有帮助