Skip to content

Wait Node

What is a Wait Node?

The Wait Node is a pause point in a workflow, used to wait for user reply messages before continuing the process. Like waiting for a response after asking a question in a conversation, the Wait Node pauses workflow execution until receiving a new user message or exceeding the set wait time. This allows you to design multi-turn interactive dialogue flows, implementing more complex human-machine interaction scenarios.

Image Description:

The Wait Node interface mainly consists of three parts: the top displays the "Wait" title, indicating the node is waiting for user reply; the middle section shows the output data the system will obtain, including session ID, topic ID, message content, etc.; the bottom area contains timeout settings, where you can enable and set the wait timeout duration. Wait Node

Why Do We Need a Wait Node?

When building interactive workflows, the Wait Node solves the following key problems:

  1. Create Multi-turn Dialogues: The Wait Node allows you to design dialogue flows requiring multiple user inputs, making conversations more natural and coherent.
  2. Collect User Confirmation or Additional Information: When the process needs user confirmation or additional information, the Wait Node can pause the process and wait for user response.
  3. Control Conversation Flow: The Wait Node lets you precisely control conversation rhythm and flow, avoiding poor user experience from continuous bot messages.
  4. Handle Timeout Situations: Through timeout settings, you can handle cases where users don't reply for long periods, ensuring the process doesn't wait indefinitely.

Application Scenarios

1. Form Filling

Guide users through form completion step by step, with each Wait Node corresponding to a form field input. The system can validate after user input and guide to the next step.

2. Multi-step Confirmation Process

Before executing important operations, use Wait Nodes to design multi-step confirmation processes, ensuring users understand and agree to operation consequences.

3. Information Collection and Clarification

When user's initial question isn't clear enough, use Wait Nodes to request more details or clarification, then provide more accurate answers based on complete information.

Node Parameter Description

Input Description

The Wait Node has no special input parameters, it mainly focuses on obtaining information from the next user message.

Output Parameters

After waiting for user reply, the node will output the following parameters:

Parameter NameDescriptionData TypeUsage Notes
Session IDUnique session identifier for user-AI assistant interactionStringUsed for associating dialogue context
Topic IDIdentifier for current conversation topicStringUsed for distinguishing different topics within same session
Message ContentText message sent by userStringMain content for workflow processing
Message TypeMessage type identifierStringSuch as text, image, etc.
Send TimeMessage timestampStringRecords message time information
Organization CodeCode of user's organizationStringUsed for organization-level functions and permission management
File List (files)File list information and basic identifiersObject Array
User (user)Basic user informationObject

File List Parameters

When user reply contains files, you can access file-related information:

Parameter NameDescriptionData TypeUsage Notes
File NameOriginal name of uploaded fileStringUsed for displaying and processing files
File LinkURL for accessing the fileStringUsed for downloading or accessing file content
File ExtensionFile format suffixStringSuch as pdf, docx, xlsx, etc.
File SizeFile size in bytesNumberUsed for file processing control

User Information Parameters

Basic information of current interacting user provided by system:

Parameter NameDescriptionData TypeUsage Notes
User IDUnique user identifierStringUsed for user identification and data association
User NicknameUser's display nameStringUsed for personalized interaction
Real NameUser's actual nameStringUsed for formal addressing

Timeout Setting Parameters

Used to control maximum wait time:

Parameter NameDescriptionData TypeUsage Notes
Enable TimeoutWhether to enable timeout functionBooleanWhen enabled, will automatically end wait after exceeding set time
Timeout DurationMaximum wait timeNumberSet specific time value
Time UnitUnit for timeout durationStringCan choose seconds, minutes, or hours

Usage Instructions

Basic Configuration Steps

  1. Add Wait Node:
    1. Drag "Wait" node from node panel to canvas
    2. Connect it to previous node (usually message reply node)
  2. Set Timeout Options (Optional):
    1. Enable "Timeout Abandon Wait" option
    2. Set timeout duration (e.g., 10)
    3. Select time unit (e.g., minutes)
  3. Connect Next Node:
    1. Drag connection line from Wait Node to next processing node
    2. Ensure workflow has clear processing path after receiving user reply
  4. Configure Timeout Branch (if timeout enabled):
    1. Create independent processing branch for timeout situation
    2. Or simply end process for timeout situation

Advanced Techniques

Using Variables to Save Wait Node Output

  1. Add Variable Save Node: Add variable save node after Wait Node
  2. Save User Reply: Save Wait Node's "Message Content" as variable
  3. Reference Saved Variable: Reference this variable in subsequent nodes to process user reply

Designing Different Timeout Handling Strategies

  1. Friendly Reminder: Send reminder message after timeout, then end process
  2. Default Value Handling: Use default value to continue process after timeout
  3. Re-ask: Re-ask question after timeout, giving user second chance

Notes

Clear Prompt Information

  1. Specific Instructions: In message reply before Wait Node, clearly tell users what information they need to provide
  2. Format Requirements: If there are specific format requirements for user reply, clearly state them
  3. Expected Reply Type: Clearly inform users whether they need to reply with text, options, or upload files

Reasonable Timeout Settings

  1. Based on Question Complexity: Complex questions need longer wait times
  2. Consider User Scenario: Understand user environment, mobile users may need longer response time
  3. Avoid Too Short Timeout: Too short timeout may cause timeout before user can reply

Handling Unexpected Input

  1. Input Validation: Add condition node after Wait Node to validate if user input meets expectations
  2. Error Handling: Provide clear error messages for unexpected input and possibly request re-input
  3. Compatible with Multiple Expressions: Consider cases where users may express same meaning in different ways

Common Issues

How to determine if user reply is valid content?

  1. Use Conditional Branch Node: Add conditional branch node after Wait Node
  2. Set Validation Conditions: Such as checking if message content is empty, contains specific keywords
  3. Separate Processing: Process valid and invalid replies through different branches

What to do if receiving file instead of text after Wait Node?

  1. Check Message Type: Use conditional branch node to check "Message Type" parameter
  2. File Processing Path: When message type is file, follow specific processing branch
  3. File Validation: Check if file extension, size, etc. meet expectations
  4. Prompt Re-upload: If file doesn't meet requirements, guide user to re-upload

How to handle multiple user replies?

Wait Node will only capture and process the first reply message from user. To handle multiple replies:

  1. Chain Multiple Wait Nodes: Design multiple consecutive Wait Nodes, each processing one reply
  2. Use History Message Query: Query user history messages when needed to get multiple replies
  3. Clear Guidance: Clearly inform users in process that they need to provide all information in single message

Common Node Combinations

  1. Message Reply Node: Send prompt information before waiting, telling users what they need to provide
  2. Conditional Branch Node: Process user reply, determine if it meets expectations
  3. Large Model Call Node: Analyze user reply content, generate corresponding response
  4. Variable Save Node: Save user reply for use in subsequent process
Node TypeCombination Reason
Message Reply NodeSend prompt information before waiting, telling users what they need to provide
Conditional Branch NodeProcess user reply, determine if it meets expectations
Large Model Call NodeAnalyze user reply content, generate corresponding response
Variable Save NodeSave user reply for use in subsequent process

Released under the Apache 2.0 License