Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Developing for the future, My smart fridge
Valerica Plesu
Valerica Plesu

Posted on • Edited on

     

Developing for the future, My smart fridge

In a constantly changing world where powerful AI-based applications are day by day more accurate and efficient than any technology, it’s hard to keep track of such a big transformation.
Asdevelopers, we need to learn how to leverage the technology in such a way to solve problems from the real world and even if we are not implementing some of the world’s most cutting edge technologies we can integrate them into our daily workflows.

My eagerness to try out the latest technology and the love for coffee made me search for a solution of a problem I had,how do I check if I have milk in the fridge? (yes, I make my own cappuccino).
Of course, many exciting systems came into my mind, like a bunch of pressuresensors placed into the fridge or acam so I can read real-time what items do I own. But this comes with the obvious risk of not implementing it since it introduces the hardware part so the complexity grows.

So back tomy need I started to implement an app for theGoogle Assistant, an app to help me keep track of the items I have into the fridge.

But what are actions?

Actions on Google lets you extend the functionality of the Google Assistant with Actions. Actions let users get things done through a conversational interface that can range from a quick command to turn on some lights or a longer conversation, such as playing a trivia game.
There are many conversation design principles but the main idea is to create such anatural conversation with the Assistant in a way that the user forgets that he is not speaking with a human.

Goal

My goal is to have afast and easy way to check if I have milk. But why not extend this to any item that can be placed into the fridge and have sort of a“voice list” to quickly access it through voice using Google Assistant.

I started writing sample dialogs.
Sample dialogs are the key to creating great Actions on Google; they’ll give you a quick, low-fidelity sense of the “sound-and-feel” of the interaction you’re designing.
They convey the flow that the user will actually experience, in my case a way to check if there is any milk into the fridge.
Alt Text

During the conversation sketch, I was thinking of a possibility for the users to add any item (milk, eggs, etc) into the fridge, remove one or check what the fridge contains using only speech.

Going deeper into any possible conversation that I can have with the application, I ended in some flows that are hard to follow on a device without any screen capability (like the google home mini).

Available devices:
Alt Text

For example, if I’m going to check all the items I have into the fridge and let’s say that I stored like, 20 or 30 items, to keep track of them by voice is hard. I need to adapt my spoken conversation into a multimodal conversation and check if there is a display available and build a list with all the items.
In this way, Iscale my application across multiple devices (spoken alone or spoken with display).
So for devices with an available display, I built a list:
Alt Text

Development part

Building your own natural language processing service can be challenging, so using Dialogflow is the best choice.
First I created a developer project for Actions onGoogle Console.
Second I created aDialogflow agent where I started to define all my Actions (add, remove or check fridge items). To create the conversation, here is the place to define intents, to create conversation's grammar or the things users can actually say to the Action.

Intents I've created:
Alt Text

Thebackend part I wrote it inKotlin. I use Firebase Firestore to save all users items and query for them when “check food” intent is matched.
I deployed the application into theGoogle Cloud Platform. This way I do not worry about managing the infrastructure and how to scale it.
Alt Text

Final Thoughts

No matter what programming language you know, no matter what day by day projects you are working on, all the time look forward to solving a need. The technological range is quite big as well as the efficiency and reliability of the technology vary but this should not keep you from doing it. Maybe you will not revolutionize the future but definitely you are having fun trying it.

You can check the app while talking with your Google Assistant, <Ok, Google, Ask Smarty Fridge to check my food.>

Let’s shape the future together.
Thank you for reading this. If you have any questions, comments or funny jokes comment below.

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
ioana_cis profile image
ioana
Engineering Manager with a flavor of Community and DevRel that contributes to open source projects while hacking a coffee or a good wine.
  • Location
    Berlin
  • Work
    Engineering Manager @ Interledger Foundation
  • Joined

At the beginning of the post - I thought u get what's inside with a scan + identification of produce. Definitely curious if any smart fridge has such thing.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Passionate about android, kotlin, ai, iot and cooking
  • Location
    Bucharest
  • Education
    Computer Science
  • Work
    mobile developer at Avira Soft
  • Joined

More fromValerica Plesu

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp