Node referenceFlow control
WAIT_FOR_USER_RESPONSE
WAIT_FOR_USER_RESPONSE node.
What it does
WAIT_FOR_USER_RESPONSE node.
Inputs & outputs
| Input handle |
|---|
| None |
| Output handle |
|---|
| None |
Configuration
No configuration.
Example
How it works
WAIT_FOR_USER_RESPONSE is used inside a Chatflow to pause the conversation until the user replies. It suspends the chatflow's execution and resumes when the user's next message arrives, exposing the text on the user_response output. Set mode to form_field and pick a fieldType (email, phone, number, or text) to validate the reply — on a bad answer the node returns user_response: null with a validation_error and should_retry: true, so you can re-prompt.
Example
Scenario: A WhatsApp chatbot collects the user's email address.
- A CHATFLOW_SEND_MESSAGE node asks "What's your email?".
- Add a WAIT_FOR_USER_RESPONSE node. Set
modetoform_fieldandfieldTypetoemail. - On a valid reply,
user_responsecarries the address; on an invalid one, branch onshould_retryto ask again.
CHATFLOW_SEND_MESSAGE ──► WAIT_FOR_USER_RESPONSE ──(user_response)──► next stepThis node only runs within a Chatflow graph, not a normal Workflow.