Issue in make a phone call within Google Assistant App

前端 未结 2 1235
隐瞒了意图╮
隐瞒了意图╮ 2021-01-28 01:06

I try to implement button in basic card i got an error

API Version 2: Failed to parse JSON response string with \'INVALID_ARGUMENT\' error: \"(expected_i

相关标签:
2条回答
  • 2021-01-28 01:18

    The URL property that you are using includes a phonenumber. The link property can only use links to a webpage. This also comes back in the error message that you are getting:

    "the protocol must be http or https.".

    So if you want to fix the error, you need to include a http or https link in your button instead of a phonenumber.

    As for calling a phonenumber from the Google Assistant App, I'm not sure if this feature is supported at the moment.

    0 讨论(0)
  • 2021-01-28 01:26

    You cannot open a tel: URL through the Assistant.

    As the error noted:

    expected_inputs[0].input_prompt.rich_initial_prompt.items[1].basic_card.buttons[0].open_url_action: the protocol must be http or https.

    Keep in mind that the Assistant runs on devices that do not support tel: URLs, even if they support https: URLs.

    0 讨论(0)
提交回复
热议问题