Skip to main content
The Human Input node pauses workflows at key points to deliver a customizable request form. Recipients can use the form to review information, provide input, and choose from predefined decisions that determine how the workflow proceeds. By embedding human judgement directly where it matters, you can balance automated efficiency with human oversight.
Human Input comes in two versions. To move a workflow from the old one to the new one, see Migrate from the Old Node.
With the new Human Input node, requests reach people where they already work. Everyone gets them by email, and workspace members also get them in the team’s IM (instant messaging app). Only the people a request is sent to can respond.
The new Human Input node needs these settings to reach recipients:Email requests also need the deployment’s mail configuration.

Choose Who Responds

Anyone you add in Recipients can respond, and the first response decides: the request then closes for everyone else. Add only people whose decision you’d accept.How you add someone determines how the request reaches them:If none of the recipients can be reached, the run fails at this node. When a recipient might be missing at run time, such as a variable that comes back empty, add another recipient you know can be reached.

Write the Notification

The message template is the notification that brings people to the form, by email and as a message in IM.In Message template, write a subject and body that tell people what they’re being asked to decide, and click Insert Request URL to add the link to the form. The subject and the body can use variables, and the body can also use Markdown.
Message Template

Message Template

Request as a Link Message

Request as a Link Message

In an IM that shows requests as cards, people get the form itself instead and respond right in the IM. The card is headed by the node’s title, so give the node a title that tells people what the request is about.
Request as an IM Card

Request as an IM Card

To check how it reads, use Test message: pick your IM as the Test channel and click Save and test to send it to yourself. It always arrives as a link message; to see the card your recipients get, do a test run with Debug Mode on.

Design the Form

A form has two parts: the content recipients read and fill in, and the buttons they click to decide.
To let members respond right in the IM, avoid file fields. In an IM that shows cards, a form with one arrives as a link message instead.

Form Content

Write what recipients need to see to decide, formatted with Markdown. Reference variables to show their values, such as a draft that an upstream LLM wrote.
Reasoning models emit their thinking process alongside the final answer, and referencing the LLM node’s text variable shows both. To show only the answer, turn on Enable reasoning tag separation in that LLM node.
Insert input fields into the content wherever recipients should fill something in. The name you give a field in Save Response As becomes its variable downstream.
For a decision that sets where the workflow goes next, such as approve or reject, use buttons under User Actions rather than a Select field. A Select field records the answer but doesn’t branch the workflow.

User Actions

Add the buttons recipients choose from. Each button you add gets its own branch from the node, so connect each one to what that decision should lead to.

Use the Response

After someone responds, downstream nodes can use:
  • Each input field’s value.
  • __action_id: the action ID you gave the clicked button under User Actions.
  • __action_value: that button’s text.
  • __rendered_content: the form content with the submitted values filled in, for when you want to keep or pass on a record of the completed form. File fields appear as plain-text placeholders: [file] for Single File and [N files] for File List.
On the Timeout branch, __action_id and __action_value are empty, and __rendered_content holds the form content without values.

Set a Timeout

Set Timeout to how long the decision can wait. When it runs out with no response, the run continues along the node’s Timeout branch. Connect that branch to a fallback, such as notifying someone or taking a default decision. If you leave it unconnected, the run simply ends there.Each run also has an overall limit of 7 days by default, counted from when the run started. When a run reaches it, any request still waiting expires, and the run stops without taking any branch. So a Human Input node later in the run may have less time left than its own timeout.For example, a workflow has two Human Input nodes in a row, and someone responds to the first request 5 days after it was sent. When the run reaches the second node, only 2 days are left. If the second node’s timeout is 3 days, the run stops after 2 days, and that node’s Timeout branch never runs.To make sure a later node’s fallback can run, set its timeout shorter than the time the run will have left. Or raise the overall limit with HUMAN_INPUT_GLOBAL_TIMEOUT_SECONDS, which applies to every run on the deployment.

Test Without Notifying Recipients

Test runs from the editor send real requests to your recipients. To test without reaching anyone else, you have two options:
  • With a connected IM and your own IM identity bound to your contact, a test run with Debug Mode on goes through the whole flow, but sends the request only to you, in your team’s IM. The request arrives the way your recipients would get it.
  • Run this step shows only the form, right in the editor, and sends nothing to anyone.

How Recipients Respond

  • When the request arrives as an IM card, workspace members can respond right in it. From a link, they sign in to Dify with the account the request was sent to. They don’t need access to the app itself.
    Request as an IM Card

    Request as an IM Card

    Request as a Link Message

    Request as a Link Message

  • External contacts, and people added by email address or through a variable, open the link and enter a code sent to that address before responding.
Once someone responds, no one else can.

Examples

Refund Approval Workflow

Refund Approval Workflow

This workflow handles refund requests for an online store. Small refunds are approved automatically. For larger ones, an LLM checks the request against the refund policy and recommends a decision, and the support lead responsible for the order approves or rejects it.
To try this workflow in your workspace, get its template from Dify Marketplace.
It’s designed around these goals:
1

Only refunds that need judgment reach the lead

  1. Put an If-Else node right after Start that checks whether amount, a number input, is under 50.
    If-Else Condition

    If-Else Condition

  2. Connect the branch for refunds under 50 straight to an Output node (Refund auto-approved), and the other branch to the LLM.
2

The lead sees what the AI recommends, and why

  1. In an LLM node (Recommend a decision):
    • Put the refund policy in the system prompt and the order in the user prompt: its ID, customer, amount, and reason, all from Start.
    • Ask it to give its verdict, Approve or Reject, on the first line, then cite the policy in one or two sentences.
    Prompts in Recommend a Decision

    Prompts in Recommend a Decision

  2. In the Human Input node’s Form Content, show the order details, then the LLM’s text output under a bold AI recommendation label. With the reason in front of them, the lead can catch a wrong recommendation.
    Form Content with the AI Recommendation

    Form Content with the AI Recommendation

3

Each request goes to the lead who handles that order

Different orders might be handled by different leads, so the workflow takes the lead’s address from each order instead of naming one person.
  1. Add a text input to Start, lead_email, for the order system to fill in with the lead’s email.
  2. In the Human Input node’s Recipients, click Insert variable and pick lead_email.
    Lead Email as the Recipient

    Lead Email as the Recipient

If one lead handles every refund, you don’t need a variable: add them in Recipients directly.
4

The lead can respond in one click, with an optional note

  1. Under User Actions, add two buttons: Approve and Reject.
  2. For the note, add one Paragraph field named note_to_customer and pre-fill it with the static text None, so the lead can approve or reject without typing.
Note Field Pre-Filled with None

Note Field Pre-Filled with None

Refund Request

Refund Request

5

The result shows whether the refund was approved, rejected, or never decided

  1. Connect Approve and Reject to their own Output nodes (Refund approved and Refund rejected), each returning the note.
  2. Connect the Timeout branch to a third (No decision), so a refund no one decided on is never counted as approved or rejected.

Migrate from the Old Node

Upgrading to a version with the new node doesn’t change existing workflows. Their old nodes keep running, and requests already waiting on an old form can still be answered.A workflow can’t mix old and new Human Input nodes. To add a new one to a workflow that still has old ones, migrate them first: click Migrate now at the top of the canvas to convert every old node in the draft at once. The published version doesn’t change until you publish again, so you can review the converted nodes first.Here’s what carries over:Everything else stays as it was: form content, input fields, buttons, the timeout, the node’s connections, and the output variables that downstream nodes reference.If any node can’t be migrated, nothing changes. Common reasons:To go back to the old nodes after migrating, restore an earlier published version from version history.
Last modified on November 18, 2026