# Wait for response?

**URL:** https://discourse.nodered.org/t/wait-for-response/7021
**Category:** General
**Created:** [19 January 2019 16:19 UTC](https://discourse.nodered.org/t/wait-for-response/7021 "2019-01-19T16:19:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ryanrdetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ryanrdetzel/32/5286_2.png) [@ryanrdetzel](https://discourse.nodered.org/u/ryanrdetzel)
#### Post date: [19 January 2019 16:19 UTC](https://discourse.nodered.org/t/wait-for-response/7021/1 "2019-01-19T16:19:05Z")

</div>

I'm using slack to post messages and I'd love to be able to respond. The slack node has both get and set so I can read messages posted so I just need to figure out how to post, wait n seconds for a response and process that. I was thinking of storing the most recent incoming message in a flow variable and clearing that every 30 seconds. Then, after I post a message to slack keep checking that variable every 2 seconds for a viable response and if it's there continue if not timeout and reset. Is there a better way?

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [19 January 2019 17:51 UTC](https://discourse.nodered.org/t/wait-for-response/7021/2 "2019-01-19T17:51:07Z")

</div>

The in node should just deliver a message whenever one arrives so you should not have to poll/query all the time.
