There are two main aspects of designing for Interactive Canvas:
- Designing the conversation
- Designing the user interface (UI)
Your users can interact with your Action that uses Interactive Canvas through speaking to the Assistant or touching the UI. You should make sure that your spoken conversation and UI complement each other and make it easy and exciting for users to progress through your Action. In this section, we'll go over how to design both the conversation and UI for the best user experience.
Is Interactive Canvas right for my Action?
Before you begin designing, think about whether your Action will work well with Interactive Canvas. You should consider using Interactive Canvas if:
- Your Action would benefit from full-screen, visually rich experiences. Interactive Canvas is ideal for full-screen experiences that benefit from rich visuals, like immersive voice-driven games.
- Your Action has an intuitive conversational flow. The critical path through your Action should be navigable through voice alone. An Action that requires spatial precision, like a drawing app, could provide a difficult experience around which to design an intuitive conversational flow.
- Existing components and customization are not enough (for example, if you want to go beyond existing Assistant visual components and customization). Interactive Canvas is great for showcasing your unique visual brand attributes, dynamic elements, and animations. Additionally, Interactive Canvas may be used to provide updates to a single visual interface as the user progresses through conversation.
Although Interactive Canvas is a familiar web development environment, there are some requirements to take into account before designing your Action.
There is a header at the top of every canvas web app with the name of your brand. This reserved area has a height of 56 dp for mobile, 96 dp for Home Hub, and 120 dp for Smart Display. Make sure to follow this header requirement:
- Ensure that no important information or interactive elements are hidden
behind the header. The
getHeaderHeightPx()method determines the height of the header.
Consider these constraints before designing your Action with Interactive Canvas:
- No local storage of data. We prevent the Action from storing cookies
and from accessing the
Web Storage API.
Given these restrictions, we recommend that your Action manages state in
the webhook and uses AppRequest's
userStoragefield to save user data.
- No pop-ups or modals. We prevent the Action from showing any pop-up windows or modals. We also strongly discourage using other standard navigational UI elements that you usually see in web apps, like keyboards and pagination.
Design your conversation
You first need to design your Action’s conversation. Interactive Canvas experiences are still voice-forward, so it’s important that your conversation effectively guides the user through your Action. You can think of an Action that uses Interactive Canvas as a conversation with helpful visuals. For more information on designing conversations, see the Conversation Design site’s Getting Started page.
For the best user experience, you should:
Follow the conversation design process and best practices outlined on the Conversation design site. This means that, among other things, you need to:
- Make sure that your Action experience works well for conversation
- Create a brand persona
- Handle errors within your conversation
- Try out a voice-only experience before figuring out what it would look with a screen
Try to provide the same capabilities through touch and voice. If possible, make sure that everything you can do by touching the screen you can also do with your voice.
Make sure the critical path through your Action is feasible via voice. Your users should be able to navigate through the main paths of your Action using only voice.
Take cognitive load into consideration. Avoid overly lengthy voice responses to reduce the cognitive toll on the user.
Design your UI
Once you've designed your conversation, you can design your UI to complement it. While designing, consider how the natural back and forth of dialogue can drive the visual interface you present to the user. If you're designing for Smart Displays, see specific considerations in Design for Smart Displays.
For the best user experience, you should:
- Create responsive designs. Make sure your designs work for either landscape and portrait mode and hold up from small phones to larger screens. Your users should be able to easily read the UI for each type of surface.
- Take cognitive load into consideration. To avoid overwhelming your users, keep the information and content you present on the screen organized, clean, and concise.
- Adapt voice output for the screen. Be creative with how you use visuals to complement the audio— don't just write what is being said out loud. When a screen is available, we may be more concise with our voice output than when one is not.
- Avoid placing any critical information or components towards the bottom of the screen. On mobile, the user transcript appears above the mic plate and can grow to a few lines. Although this transcript is transient, avoid writing important content towards the bottom of the screen. Buttons similar to suggestion chips are fine at the bottom of the screen, as user input is an alternative to using suggestion chips.
- Handle errors within your conversation visually. Errors could occur when the user doesn't respond, if you don't understand them, or don't provide fulfillment for what they said. Figure out where these error prompts go on your UI. This could be wherever you put your display prompts (e.g., in the title) or it could be something different (e.g., a special area of content that appears as needed). Refer to the Conversation design site for more tips on error handling.
Design for Smart Displays
While the above guidelines still apply, you should keep other design considerations in mind when designing for Smart Displays. It’s tempting to treat Smart Displays like tablets when designing for them. However, Smart Displays are a completely different and new category of device for two reasons:
- Smart Displays are voice-enabled and the Google Assistant is the operating system
- Smart Displays are stationary and, unlike mobile devices, are often placed in the kitchen or bedroom when used at home
Because of these characteristics, users are sometimes not physically near the device and interact with Smart Displays using only their voice. Users may also be multitasking while using Smart Displays. It’s important to keep these usages in mind when designing for Smart Displays.
For the best user experience with Smart Displays, you should:
- Design with voice-first in mind. Designing your Interactive Canvas Action to be voice-forward is even more important for Smart Displays. Unlike with a mobile device, your user may be standing across the room and only communicating with their Smart Display through voice. For this reason, you can't always rely on the user touching the device to proceed through your Action, and need to ensure your users can proceed in your Action using voice.
- Design with a specific viewing distance in mind. Design content on the
Smart Display so it can be viewed from a distance. Depending on the size of
the room, the typical viewing distance for smart displays ranges from 3 to
- Use a minimum font size of 32 pt for primary text, like titles. Use a minimum 24 pt for secondary text, like descriptions or paragraphs of text.
- Focus on one touchpoint at a time. Display one type of primary information or task at a time to reduce cognitive workload and keep the content legible from a distance. For example, when users ask, “What’s my day like?” the Assistant responds with weather, calendar, commute, and news content. Each type of content takes up the full screen and is presented sequentially rather than all showing up at once on the screen.
For more information about designing an Action that uses Interactive Canvas, check out the following resources: