# Get text input from user

**URL:** <https://community.homey.app/t/get-text-input-from-user/73945>\
**Category:** Questions & Help\
**Created:** [December 21, 2022, 2:21pm UTC](https://community.homey.app/t/get-text-input-from-user/73945 "2022-12-21T14:21:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamster](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hamster/32/16580_2.png) [@Hamster](https://community.homey.app/u/Hamster)\
**Post date:** [December 21, 2022, 2:21pm UTC](https://community.homey.app/t/get-text-input-from-user/73945/1 "2022-12-21T14:21:14Z")

</div>

I am working on a Flow which requires a text input from a user (input box or “speech-to-text”).

I am looking for solutions for iOS, Android and Google Assistant (I have Google Home Minis in most of my rooms).

For Android, I can make use of tasker:

> [@\[How To\] Setup two-way communication between Homey and Android smartphone](https://community.homey.app/t/how-to-setup-two-way-communication-between-homey-and-android-smartphone/55510):
>
> Quite often I like to use my Android smartphone to directly start a Homey flow, operate a Homey device or to put data into Homey flows without using the Homey app. If you would like to do the same, then this tutorial is for you. What will be addressed in this tutorial: Install Tasker on your Android smartphone Install Join on your Android smartphone Find device ID and generate Join API key Create Join URL Configure Tasker and Join to react to a received message Setup the webhook in a Homey fl…

How do you get text input from somebody?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 21, 2022, 9:00pm UTC](https://community.homey.app/t/get-text-input-from-user/73945/2 "2022-12-21T21:00:54Z")

</div>

@Hamster Ah, sorry, I was still busy with an other idea, so nevermind 🤣

Maybe this is of any use

You could use the [Telegram Notifications app](https://homey.app/a/com.spkes.telegramNotifications/). It can send questions and the user’s answer is then used in the remaining part of the flow.  
It works with pre-defined Q&A  
[https://community.homey.app/t/push-confirmation-doesnt-work-anymore/72912/18](https://community.homey.app/t/push-confirmation-doesnt-work-anymore/72912/18)

I’m trying to use a Q with a user entered number as answer, but I didn’t get it to work yet.

---

<div class="post-metadata">

**Author:** ![Hamster](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hamster/32/16580_2.png) [@Hamster](https://community.homey.app/u/Hamster)\
**Post date:** [December 21, 2022, 9:25pm UTC](https://community.homey.app/t/get-text-input-from-user/73945/3 "2022-12-21T21:25:22Z")

</div>

That’s the same link I posted in my OP 🙂

If only we could make use of a Google Home voice command… 🤔

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 22, 2022, 12:25am UTC](https://community.homey.app/t/get-text-input-from-user/73945/4 "2022-12-22T00:25:18Z")

</div>

Okay, first you can consider using this, with predifined answers.

- F.i. for asking a user to set the target temperature:  

- Telegram flow question + answers to pick, and reply from flow with the chosen value.  
(You can even make the buttons persistent, so when the wrong value was picked, the user simply presses an other value, and then that value gets processed)  
 ![Screenshot from 2022-12-22 00-28-36](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/f/ff30c5b9727e73470d7bc8848447b7f756fd1b64.png)

Up until now I can’t come up with an idea to use a Ggl voice command

---

<div class="post-metadata">

**Author:** ![Hamster](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hamster/32/16580_2.png) [@Hamster](https://community.homey.app/u/Hamster)\
**Post date:** [December 22, 2022, 8:44am UTC](https://community.homey.app/t/get-text-input-from-user/73945/5 "2022-12-22T08:44:08Z")

</div>

I know a way to get an answer from a user with the Telegram Notifications app!

I can create a question within the Telegram Notifications app with no answers.

I can then send that question to my user(s).

The Telegram Notifications app also has a flowcard “Message Received”, which holds the message which was entered in the chat.

I can use that answer in my next flow 😃

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 22, 2022, 9:58pm UTC](https://community.homey.app/t/get-text-input-from-user/73945/6 "2022-12-22T21:58:14Z")

</div>

Yes, that’s the trick I was looking for 🍻

But, while I think

- the flow should not respond to any message with coïncidental valid values
- the entered value should be within a defined value range
- the user should be informed when a invalid value has been entered
- When the value must be numbers only, the returned value needs to be converted from ‘text’ type to ‘numeric’ type

I made this example flow:

 ![Screenshot 2022-12-23 at 00-20-07 1.HomeyPro Peter](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/09d4ce04a531987ae14a000e4b45f2bfa84d6836.png)

 ![Screenshot from 2022-12-23 00-18-52](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/f/2fc61caecd69adf11c068261846457886dc9c340.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 22, 2022, 11:24pm UTC](https://community.homey.app/t/get-text-input-from-user/73945/7 "2022-12-22T23:24:53Z")

</div>

I edited the flow with a little addition

> [@Peter\_Kawa](#):
>
> the user should be informed (what to do) when a invalid value has been entered
