In October of this year, we went to Las Vegas for the Amazon re: Invent conference and brought back one of the latest Amazon innovations — the beta version of the
IoT Button “magic button”. Amazon launched the sale of this wonderful gadget just a month ago, according to the idea, it should help lazy housewives to replenish stocks of any economic nonsense with one touch - diapers, powders, detergents, and so on. The button is mounted on any flat surface, is configured using a mobile application and after clicking sends the order to Amazon. The next morning, the courier delivers the goods under your door, everyone is happy and satisfied. But what to do with this thing in Ukraine ?!

SpoilerIn the last paragraph, we will tell you how to get 10 buttons for free.
Amazon honestly admits that they don’t really know how people will use this button. Ordering home goods is only one of its functions, the API of the button is open to third-party programs and in fact it can be customized as you please. At first we wanted to adapt it for Privat24, but then another, more amusing idea was born.
PrivatBank's Deputy Chairman Alexander Vityaz, more than a dozen times a day, addresses his assistant with the same type of request: bring tea, go to his office and pick up guests. Do you remember the
story about a programmer who automated all aspects of his life, from excuses to his wife and ending with replies to annoying clients? So we, too, are not done with a finger! Why write identical messages to the chat every time or call the secretary’s mobile phone? You can make everything easier and more fun. Moreover, Olga has long wanted to lose a few extra pounds.
')
We decided to configure the button so that depending on the type of pressing, she sent one of three commands to Olga: “Tea”, “Come in” or “Take away guests”. The configuration process itself took a little more than half an hour: we drew a simple front-end in the Sender messenger and described the logic of the operation of the button based on the Corezoid OS.

Sender is our own instant messenger that allows you to create robots using visual programming methods. To create a frontend, we registered a company in Sender, after which we went to the “Business” section of the messenger itself and added this company to our contacts.

After that we went to Corezoid, found a section with the name of our company (it appeared automatically after the first item was completed) and created a process in it that would be responsible for the exchange of messages between Olga and Vityaz.

I do not describe the creation of the process in detail, you can download it from this
link and thus repeat our sequence of actions. The finished process is as follows:

Green nodes are the start of the process, blue ones are its current conditions. The button has three types of pressing: single click, double click and long press. A separate process branch is created for each of the click options. After sending the command, Olga receives a message in the chat with a request to perform one of three actions. She presses the “Go” button, Vityaz receives a message in the Olga “messenger” messenger and he knows that his request will be completed soon.
Special attention should be paid to the creation of the frontend. The visual part of our application was created in the "Form Designer" of the Sender messenger. Here is the process of drawing buttons. In order to add them to the form, you need to drag the button with the left mouse button and give it a name.

Similarly, we drew other visual elements.
And messages for Vityaz that Olga received his task.
In such an unusual way, we have found the use of a novelty from Amazon. Vityaz was so pleased with this “regime of God” that he began to drink 30% more tea and take twice as many guests. Olga's cherished dream come true - to lose weight by a couple of pounds and tea suppliers to increase sales :)
We still haven't figured out how to use this button in the “normal” way - so far we have only crazy ideas come to mind. For example, to teach her with one touch to order a taxi or pizza, manage some smart gadgets or something else.
Or maybe you think of something fun and useful? We are ready to sponsor this action :)
It became so interesting to us what options the Amazon IoT Button can have of using it, that we are ready to present a set of 10 buttons to the author of the best idea implemented on the basis of the Corezoid OS. The device itself costs a modest $ 5 and
is available for ordering on the Amazon website, and you can share your processes on my email timur.vorona at gmail.com. You can also write to him with requests to share the process. We will determine the winner on January 31, 2016 and we will announce in the comments to this post.
Upd: in the last paragraph, I meant gifts to the author of the finished solution, which is implemented and launched :)