Human Input Node

The Human Input Node is a crucial component that allows for manual intervention or decision-making within an automated workflow. It pauses the workflow execution and waits for human input before proceeding.

Key Features #

  1. Input Types
    • Approval: Requests a simple approve/reject decision
    • Modification: Allows for editing or modifying content
  2. Assignment Options
    • Assign to User: Send the task to a specific WordPress user
    • Assign to Role: Assign the task to any user with a particular role
  3. Content and Instructions
    • Custom content field for providing context or data to review
    • Separate instructions field for guiding the human reviewer
  4. Dynamic Data Integration
    • Can display data from previous nodes in the workflow
    • Supports tags like [[field_name] from node-id] for dynamic content
  5. Multiple Outputs
    • Approval: ‘Approve’ and ‘Reject’ paths
    • Modification: ‘Modified’ path with updated content
  6. Customizable Node Name
    • Allows setting a custom name for easy identification in complex workflows

Functionality in Detail #

1. Task Creation and Assignment #

  • When the workflow reaches this node, it creates a human task in the system.
  • Tasks are assigned based on the configured user or role.
  • Assigned users receive notifications (email or in-dashboard) about pending tasks.

2. Workflow Pause and Resume #

  • The workflow execution pauses at this node.
  • It resumes automatically once human input is provided.
  • Implements a queuing system to manage multiple paused workflows efficiently.

3. User Interface for Task Completion #

  • Provides an intuitive interface in the WordPress admin area for completing tasks.
  • For approval tasks:
    • Shows relevant information and ‘Approve’, ‘Revert’ and ‘Reject’ buttons.
    • Optionally allows adding comments with the decision.
  • For modification tasks:
    • Displays editable content with the original version for reference.
    • Provides a rich text editor for making changes.

4. Decision Handling #

  • Approval decisions:
    • ‘Approve’: Workflow continues along the approval path.
    • ‘Reject’: Can either terminate the workflow or redirect to a rejection handling path.
    • ‘Revert’: Allows sending the task back to an alternate workflow path for adjustments.
  • Modification:
    • Updated content is passed along to subsequent nodes in the workflow.

Use Cases #

  1. Content Approval Workflows
    • Review and approve AI-generated content before publication.
    • Validate data entries or form submissions.
  2. Decision-Based Process Routing
    • Human decision points in customer service workflows.
    • Approval steps in expense or leave request systems.
  3. Collaborative Content Creation
    • Allow human edits to AI-generated drafts.
    • Implement multi-stage review processes for important documents.
  4. Quality Control
    • Manual checks in data processing or product listing workflows.
    • Verification steps in user registration or order processing.
  5. Exception Handling
    • Human intervention for cases that don’t meet predefined criteria.
    • Manual resolution of conflicts in automated systems.

Integration with Other Nodes #

  • Can be placed anywhere in the workflow where human intervention is needed.
  • Often follows AI Model nodes for human verification of AI outputs.
  • Can precede Condition nodes to determine workflow paths based on human decisions.
  • Integrates seamlessly with Output nodes to action human decisions (e.g., publish approved content).

The Human Input Node bridges the gap between automated processes and human judgment, allowing for flexible, supervised workflows that combine the efficiency of automation with the nuance of human decision-making. It’s especially valuable in scenarios where legal, ethical, or quality considerations require a “human-in-the-loop” approach.

What are your feelings
Updated on October 1, 2024