Actions on Google研究文章卡片列表开发技术疑问咨询
Hey there, let’s walk through each of your questions with practical insights from building Google Assistant Actions:
1. Can alias and key in app.buildList() be set to empty values or null?
Short answer: No, you shouldn’t set them to empty or null.
The key parameter is a unique identifier for each list item—Google Assistant relies on this to track which item a user interacts with (whether via voice or touch). If you leave it empty or null, the list won’t render correctly, and interactions like selecting an item will fail.
As for alias, it’s used for voice interaction: it gives users a way to reference the item verbally (e.g., "Open the second article" or "Choose the one about quantum computing"). While technically some implementations might let you skip it, it’s bad practice—without an alias, voice-driven selection will be unreliable.
My recommendation: Use a unique value for key (like the article’s DOI, a hash of its URL, or a database ID) and set alias to a concise version of the article title (or the full title if it’s short enough).
2. Will the browser automatically open when a user clicks the URL in a card?
Absolutely! When a user taps the URL link in your list card:
- On mobile devices (Android/iOS), it’ll launch the user’s default browser and load the URL.
- On screen-enabled smart speakers (like Google Nest Hub), it’ll open the device’s built-in browser to display the link.
Just make sure you’re using a full, valid HTTPS URL (relative paths won’t work here) to ensure smooth redirection.
3. Does Google require screening and review of URLs in Google Assistant apps?
Yes, Google enforces strict review of all external URLs included in your Action. Here’s what you need to know:
- Security first: All URLs must use HTTPS—HTTP links will get rejected during review.
- Content compliance: The linked content must adhere to Google’s content policies (no malicious software, adult content, illegal material, or deceptive practices allowed).
- Relevance: The URLs must directly relate to your Action’s purpose (in this case, research articles tied to the user’s requested topic). Irrelevant or misleading links will fail review.
Even after your Action goes live, Google might re-audit URLs if they receive reports or detect policy violations, which could lead to your Action being taken down. So it’s crucial to vet all links thoroughly before submission.
内容的提问来源于stack exchange,提问作者bob dole

