Conversational Actions — Scenes

Search for a command to run...

No comments yet. Be the first to comment.
Bun, the hyper-fast JavaScript runtime known for its incredible speed and Zig-based architecture, is being completely rewritten in Rust. For a project that has over 22 million monthly downloads and ea

Next.js 16.3 is almost here, and it's packed with a ton of improvements and let's see them in this post 1.Instant Navigation For a while now, there’s been a valid, lingering debateServer Components vs

It’s official. React has merged its long-awaited Rust port of the React Compiler (formerly known as React Forget) into the main repository. What started as an experimental research project by Joseph S

If you follow modern technology trends, you have likely been led to believe that artificial intelligence is entirely built on Python. Every tutorial, machine learning framework documentation, and open

Just when the JavaScript ecosystem was catching its breath after last week’s TanStack Router compromise, the Mini Shai-Hulud supply chain worm has continued its relentless march. Developed by the thre

Source: Nidhinkumar
Google Assistant team has introduced a suite of new and improved developer options to create conversational actions. We will look about scenes in the new Actions Builder
Google Assistant is a personal voice assistant that offers a host of actions and integrations. From sending texts and setting reminders, to ordering coffee and playing music, the 1 million+ actions available suit a wide range of voice command needs.
The assistant team has introduced the two new developer tools
Actions Builder is a web-based IDE that lets you develop, test, and deploy actions directly in the Actions console. The new builder lets you visualize the conversational flow, manage Natural Language Understanding (NLU) training data.
For those of you who prefer local IDEs, the updated Actions SDK provides a file-based representation of your Actions project. This lets you author NLU training data and conversational flows locally as well as bulk import and export training data.
Scenes are major building blocks of conversation models. Scenes represent individual states of your conversation and their main purpose is to organize your conversation into logical chunks, execute tasks, and return prompts to users.
Scenes are similar to a movie where multiple scenes are combined together. You can connect several scenes together to create a user journey with each scene containing its logic.
Features of Scenes include
Scenes execute within a loop until it meets transition criteria that you define

Source: Behance
If you look at the above character it keeps walking but if we look deep the animation is in the loop which makes the character seems to be walking
In combination with intents, scenes let you group dialogs into logical chunks, giving you easy ways to build user request and Action response pairs
Since only one scene can be active at a time, you can scope intent matching to scenes of your choice and have them match only when those scenes are active
You can use slot filling within a scene to collect multiple pieces of typed user input, without having to create multiple intents
You can check slots, session, user and home storage to carry out simple, conditional logic without triggering a webhook
A custom scene is a building block of conversational logic that forms a part of your Action’s conversation model.

Source: Nidhinkumar
When a scene is active, it executes within a well-defined lifecycle that loops until the scene meets the transition criteria that you set. A scene’s execution lifecycle is separated into optional stages that run in the following order

Source: Nidhinkumar
This stage runs only once when a scene is activated. You can trigger a webhook or prompt the user to do a one-time setup of your scene.
Assistant delivers the prompt queue to the user and clears the queue. The prompt queue is the merged collection of prompts that were aggregated since the last time this stage cleared the queue.
System scenes let you use the built-in, conversational logic provided by Assistant, which lets you add standard conversational flows to your user experience.
Closes the mic and ends the conversation with the user
Guides the user through an account linking flow and provides your Actions the required information to link the user’s account on backend servers with the user’s Google account.
Guides the user through a confirmation flow to add your Actions to a user’s daily updates
Guides the user through a confirmation flow to receive notifications from your Actions.
You have learned some of the core concepts of Scenes. I am excited to see what you are going to build with the new Actions Builder
Happy Learning :)