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.
New Human Input
Old Human Input
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:
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:
Recipient
Use it when
How they get the request
A contact
You work with them regularly. Pick them from your workspace’s Contacts.
If their email changes, new requests follow it without any change to your workflow.
When anyone on the team can decide, pick the whole workspace instead. External contacts aren’t included.
Workspace members: by email, and also in your team’s IM once their IM identity is bound in Contacts.
External contacts: by email only, and they need no Dify account to respond.
An email address
A one-off recipient you don’t need to keep in Contacts. Type it in.
By email.
A variable
The run decides who responds, such as an address an earlier node collected.
The variable must hold exactly one address; an empty or invalid value is skipped.
By email only, even when the address is a workspace member’s.
Initiator
The person running the app should confirm the step themselves.
Not available in a workflow that starts from a trigger.
In a web app, the form appears right in the app.
Through the Service API, your integration responds.
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
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
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.
Field type
What recipients do
Paragraph
Enter text. The field can start empty, or pre-filled with a variable (such as LLM output to refine) or static text.
No maximum length, but very long inputs may exceed downstream LLM context windows.
If the input is optional, pre-fill it with static text such as None, so recipients can submit without typing.
Select
Pick one option. List the options yourself, or take them from an array[string] variable.
Single File / File List
Upload one file, or several.
File upload limits are tunable via environment variables:
UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, and UPLOAD_AUDIO_FILE_SIZE_LIMIT cap per-file size by extension.
WORKFLOW_FILE_UPLOAD_LIMIT caps the max files a File List field can be configured to accept.
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 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
Approve a Refund
Revise a Draft Until Approved
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
Put an If-Else node right after Start that checks whether amount, a number input, is under 50.
If-Else Condition
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
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
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
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.
Add a text input to Start, lead_email, for the order system to fill in with the lead’s email.
In the Human Input node’s Recipients, click Insert variable and pick lead_email.
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
Under User Actions, add two buttons: Approve and Reject.
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
Refund Request
5
The result shows whether the refund was approved, rejected, or never decided
Connect Approve and Reject to their own Output nodes (Refund approved and Refund rejected), each returning the note.
Connect the Timeout branch to a third (No decision), so a refund no one decided on is never counted as approved or rejected.
Draft Revision Workflow
This workflow has an LLM write a short blog post from a brief, and a reviewer approves the draft or sends it back with feedback for the LLM to revise. The back-and-forth can go on for up to three rounds.At the end, the workflow returns the final draft and how the review ended: approved, timed out, or still unapproved after three rounds.
To try this workflow in your workspace, get its template from Dify Marketplace.
It’s designed around these goals:
1
The reviewer can go back and forth over several rounds
Put the LLM node (Write or revise the draft) and the Human Input node inside a Loop, so each round sends the reviewer a new request with that round’s draft.Every round is the same two steps: the LLM writes or revises, then the reviewer reviews. The Loop repeats them until a condition says stop, so you build them once instead of copying them for each round.
In the Human Input node, add the reviewer in Recipients and two buttons under User Actions: Approve and Request changes.
Inside the Loop
2
The reviewer can send the draft back with feedback
In the Human Input node’s Form Content, show the draft, then add a Paragraph field named feedback. Pre-fill it with None, so the reviewer can approve without typing.
Form Content with the Feedback Field
Review Request
3
Each round revises the last draft instead of starting over
When a new round starts, the outputs of the previous round’s nodes are gone: round 2 can’t read the draft the LLM wrote in round 1, or the feedback the reviewer typed. Only loop variables carry over, along with the workflow’s own inputs such as the brief.So in the Loop’s Loop Variables, add draft and feedback, both strings that start empty.
Loop Variables
A Variable Assigner is the node that saves a value into a loop variable. Add one for each:
Right after the LLM, add Save the draft to overwrite draft with the LLM’s output. The next round revises this draft.
Save the Draft Assigner
At the end of the Request changes branch, add Save the feedback to overwrite feedback with what the reviewer typed, so the next round’s LLM sees it.
Save the Feedback Assigner
Give the LLM the brief from Start, draft, and feedback in its prompt. Tell it to write a first draft while draft is empty, and after that to revise only what the feedback asks.
Prompts in Write or Revise the Draft
4
The review stops when the reviewer approves, no one responds, or three rounds are up
To let the Loop know when to stop, record how each round ended:
In Loop Variables, add a third, decision, that starts as pending.
End the Approve branch with a Variable Assigner (Mark as approved) that sets it to approved.
Mark as Approved Assigner
End the Timeout branch with another (Mark as timed out) that sets it to timed_out.
Then tell the Loop when to stop:
Set the Loop’s Loop Termination Condition to decision is approved OR decision is timed_out.
Loop Termination Condition
Set Maximum Loop Count to 3. The loop then stops with the third draft, and the reviewer’s last feedback isn’t applied.
Maximum Loop Count
5
The result shows how the review ended
After the loop, an Output node (Final draft) returns the draft, decision, and feedback.
Final Draft Output Variables
decision already says whether the reviewer approved or didn’t respond. To also mark a review that ran out of rounds, go back to Save the feedback and add a second variable that sets decision to changes_requested.
Save the Feedback Assigner with Two Variables
In that case, feedback holds the reviewer’s last request, which no round got to apply. Whoever finishes the draft can start from there.
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:
Old node
New node
Web app delivery
Initiator
Members picked by name
Their contacts
External email addresses
Email addresses
All workspace members
Your workspace, which covers every member
Email subject and body
Message template, unchanged
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:
Reason
What to do
a disabled delivery method still contains configuration
An email method you turned off still has recipients or text. Clear it, or turn it back on if you want those recipients included.
a workspace member cannot be resolved to a contact or verified email
A member you picked has left the workspace or hasn’t accepted their invitation yet. Remove them, or migrate once they’ve accepted.
an enabled email method is incomplete
Fill in the email’s subject and body.
a recipient email is invalid
Correct or remove the address.
To go back to the old nodes after migrating, restore an earlier published version from version history.
With the old Human Input node, the request shows up in the web app for whoever is running it, or goes out as an email link, and anyone with the link can respond.
Configure the following to define how the node requests and processes human input:
Delivery method: How the request form reaches recipients.
Form content: What information recipients will see and what they can interact with.
User action: What decisions recipients can make and how the workflow proceeds accordingly.
Timeout: How long to wait and what happens if no recipient responds.
Delivery Method
Choose the channel through which the request is delivered. Currently available methods:
Webapp: Displays the request form to the web app end user. Not available in workflows started by a Trigger.
External clients can drive the web app form lifecycle through the Service API. See API Integration Flow.
Email: Sends a request link via email to specific workspace members, external email addresses, or every member of the workspace. Anyone with the link can respond, no Dify account required.
The request closes after the first response regardless of delivery method.
Form Content
Customize the form recipients see and interact with:
Format and structure with MarkdownUse headings, lists, bold text, links, and other Markdown elements to present information clearly.
Display dynamic data with variablesReference workflow variables to show dynamic content, such as AI-generated text for review or a file someone uploaded at an upstream Human Input node for approval.In web app delivery, the form itself displays to end users. Any variables you reference render their values directly in the form, so no Answer or Output node is needed before the Human Input node.
Reasoning models emit their thinking process alongside the final answer. Referencing the text output variable shows both by default.To show only the answer, toggle on Enable reasoning tag separation for the corresponding LLM node.
Collect input with form fieldsAdd fields into the request form to capture different types of input from recipients. Each field becomes a variable for downstream use.For example, in a blog review workflow, you can pass recipient feedback to a downstream LLM node for content revision.
Field Type
Description
Paragraph
Text input. Can start empty, or pre-filled with variables (e.g., LLM output to refine) or static text (examples or default values).
No maximum length, but very long inputs may exceed downstream LLM context windows.
Select
Single-choice selection from a list of options. Define options manually, or reference an array[string] variable to use its items as options.
Single File / File List
Single or multiple file uploads.
File upload limits are tunable via environment variables:
UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, and UPLOAD_AUDIO_FILE_SIZE_LIMIT cap per-file size by extension.
WORKFLOW_FILE_UPLOAD_LIMIT caps the max files a File List field can be configured to accept.
Only Paragraph is optional; Select, Single File, and File List are mandatory. The form’s action buttons stay disabled until all mandatory fields are filled.
After the recipient responds, the form content with all values filled in is available downstream as the __rendered_content variable. File field values render as plain-text placeholders: [file] for Single File and [N files] for File List.
User Action
Define the decision buttons that recipients can click, each routing the workflow to a different execution path.For example, a Post branch might lead to nodes that trigger content publishing, while a Regenerate branch might loop back to an LLM node to revise the content.Each button has a display title and an action ID. When a button is clicked, its ID is exposed downstream as __action_id and its title (button text) as __action_value.
Use preset button styles to visually distinguish actions.For example, use a prominent style for key actions like Approve and a subtler one for secondary options.
Timeout Strategy
Configure how long the request stays open before it expires. The default is 3 days.If no recipient responds before the timeout, the workflow follows the timeout branch from the node. Wire this branch to a fallback path, such as a notification or a retry loop.If no timeout branch is connected, the workflow ends.
Example: Content Review Workflow
Workflow Example
Request Form Example
This workflow drafts a blog post from the topic and language that a workflow initiator inputs, emails the draft to a reviewer, and finalizes the output based on the reviewer’s choice.It is designed around three things the reviewer should be able to do:
See the AI-generated draft: Reference the upstream LLM node’s text variable in the form so the rendered form displays the draft directly.
Edit the draft directly if needed: Add a Paragraph field named edits in the form, pre-filled with the same text variable, so the reviewer sees the draft as starting content and can edit in place.Because blog posts are long, the form’s Markdown display (point 1) reads better than a Paragraph field on its own. For shorter content, the pre-filled Paragraph field alone can handle both reading and editing.
Provide feedback for an AI revision:
Add a Paragraph field named feedback in the form for the reviewer’s feedback.
Connect two downstream LLM nodes in sequence:
A Regenerate node that takes the original draft text and the reviewer’s feedback to produce a revised draft.
A Check Revision node that takes feedback and the revised draft to verify whether the revision addresses the feedback. The verified result is what flows downstream.
On the received request form, the reviewer fills the relevant Paragraph fields (or leaves them blank) based on their judgment, then clicks the matching action button. Each action wires to a different output:
Approve: the original draft from the upstream LLM
Apply Edit: the reviewer’s edited content from the edits field
Regenerate: the revised draft from the downstream LLM pipeline
LLM Node Prompts for Reference
Generate Draft
Regenerate
Check Revision
System
Write a marketing blog post around the given topic in the specified language.
Check whether the draft below addresses the user's feedback. Return the draft unchanged if it does; revise it to address the feedback if it doesn't.
User
User Feedback: {{#human_input.feedback#}}Regenerated Draft: {{#regenerate.text#}}
Last modified on November 18, 2026
Was this page helpful?
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Dify Docs","description":"Dify is an open-source platform for building AI applications. It provides a comprehensive set of tools and features to help you build, deploy, and manage your AI applications.","colors":{"primary":"#0060FF","light":"#688FE8","dark":"#0034FF"},"logo":{"light":"https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg","dark":"https://assets-docs.dify.ai/2025/05/c51f1cda47c1d9a4a162d7736f6e4c53.svg","href":"https://docs.dify.ai"},"favicon":"https://mintcdn.com/dify-6c0370d8/7ofzWAXbPyxqXN2g/logo/dify-logo.png?fit=max\u0026auto=format\u0026n=7ofzWAXbPyxqXN2g\u0026q=85\u0026s=1ff6cbe1000cf72c39ff756308a85823","navbar":{"links":[{"href":"https://github.com/langgenius/dify","label":"GitHub"}],"primary":{"type":"button","label":"Try Dify","href":"https://cloud.dify.ai"}},"footer":{"socials":{"x":"https://x.com/dify_ai","github":"https://github.com/langgenius/dify-docs","linkedin":"https://www.linkedin.com/company/langgenius"}},"contextual":{"options":["copy","view","download-spec","claude","chatgpt","perplexity","mcp","add-mcp","cursor","vscode","devin-mcp"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"en/cloud/use-dify/getting-started/introduction"},{"language":"zh","href":"zh/cloud/use-dify/getting-started/introduction"},{"language":"ja","href":"ja/cloud/use-dify/getting-started/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dify-6c0370d8","hasAudioNarration":false,"actualSubdomain":"dify-6c0370d8","customDomains":["docs.dify.ai"],"gitSource":{"type":"github","owner":"langgenius","repo":"dify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10b0909ffae5051c3fe962"},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0d72081b9b83ebb21deed3","clientVersion":"0.0.4443","searchFilterCounts":[{"language":"en","tag":"Self-Host","count":343},{"language":"ja","tag":"セルフホスト","count":343},{"language":"zh","tag":"自部署","count":343},{"language":"en","tag":"Use","count":214},{"language":"ja","tag":"使い方","count":214},{"language":"zh","tag":"使用","count":214},{"language":"en","tag":"Developer Resources","count":208},{"language":"ja","tag":"開発者リソース","count":208},{"language":"zh","tag":"开发者资源","count":208},{"language":"en","tag":"API","count":155},{"language":"ja","tag":"API","count":155},{"language":"zh","tag":"API","count":155},{"language":"en","tag":"Cloud","count":110},{"language":"ja","tag":"Cloud","count":110},{"language":"zh","tag":"Cloud","count":110},{"language":"en","tag":"Knowledge APIs","count":106},{"language":"ja","tag":"ナレッジ API","count":106},{"language":"zh","tag":"知识库 API","count":106},{"language":"en","tag":"Orchestrate","count":87},{"language":"ja","tag":"オーケストレーション","count":87},{"language":"zh","tag":"编排","count":87},{"language":"en","tag":"Workflow \u0026 Chatflow","count":72},{"language":"ja","tag":"Workflow と Chatflow","count":72},{"language":"zh","tag":"Workflow 与 Chatflow","count":72},{"language":"en","tag":"Agent Knowledge Base","count":69},{"language":"ja","tag":"Agent ナレッジベース","count":69},{"language":"zh","tag":"Agent 知识库","count":69},{"language":"en","tag":"Classic Knowledge Base","count":67},{"language":"ja","tag":"従来型ナレッジベース","count":67},{"language":"zh","tag":"知识库","count":67}],"searchSettings":{"maxResults":12}},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"body{text-autospace:normal}html[data-current-path=\"/\"] .nav-tabs,html[data-current-path=\"/en/home\"] .nav-tabs,html[data-current-path=\"/zh/home\"] .nav-tabs,html[data-current-path=\"/ja/home\"] .nav-tabs{display:none}#sidebar-content a[href=\"/en/home\"],#sidebar-content a[href=\"/zh/home\"],#sidebar-content a[href=\"/ja/home\"],#sidebar-content *:has(>a[href=\"/en/home\"]),#sidebar-content *:has(>a[href=\"/zh/home\"]),#sidebar-content *:has(>a[href=\"/ja/home\"]){display:none}.uo-wrap{max-width:64rem;margin:0 auto;padding:2.5rem 2rem 4rem}.uo-hero{display:flex;gap:40px;align-items:center;margin:0 0 48px}.uo-hero-text{flex:1 1 100%}.uo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-top:24px}.uo-cta{display:inline-flex;align-items:center;gap:6px;background:#0060FF;color:#fff!important;padding:8px 18px;border-radius:8px;font-weight:600;text-decoration:none!important;border:none!important}.uo-cta:hover{background:#0034FF}.uo-secondary{font-weight:500}.uo-secondary a{text-decoration:none!important}.uo-secondary a:hover{color:#0060FF}.uo-grid{display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:16px}.uo-grid>*{grid-column:span 2;margin:0}.uo-grid>:nth-child(4):nth-last-child(2){grid-column:2 / span 2}.uo-help-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:10px;font-weight:500}@media (max-width: 900px){.uo-grid{grid-template-columns:1fr}.uo-grid>*,.uo-grid>:nth-child(4):nth-last-child(2){grid-column:auto}}"}]}
{"page":{"pagePath":"en/self-host/use-dify/nodes/human-input","slug":"/en/self-host/use-dify/nodes/human-input","pageMetadata":{"title":"Human Input","description":"Pause workflows to request human input","href":"/en/self-host/use-dify/nodes/human-input"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Pause workflows to request human input\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Columns,Frame,Heading,Info,Note,OptimizedImage,Step,Steps,Tab,Table,Tabs,Tip}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`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.`}),`\n`,_jsxs(_components.p,{children:[`By embedding human judgement directly where it matters, you can `,_jsx(_components.em,{children:`balance automated efficiency with human oversight`}),`.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Human Input comes in two versions. To move a workflow from the old one to the new one, see `,_jsx(_components.a,{href:`#migrate-from-the-old-node`,children:`Migrate from the Old Node`}),`.`]})}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`New Human Input`,id:`new-human-input`,\"data-child-tab-ids\":`[\"approve-a-refund\",\"revise-a-draft-until-approved\"]`,\"data-child-heading-ids\":`[\"choose-who-responds\",\"write-the-notification\",\"design-the-form\",\"form-content\",\"user-actions\",\"use-the-response\",\"set-a-timeout\",\"test-without-notifying-recipients\",\"how-recipients-respond\",\"examples\",\"migrate-from-the-old-node\"]`,children:[_jsx(_components.p,{children:`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.`}),_jsxs(Note,{children:[_jsx(_components.p,{children:`The new Human Input node needs these settings to reach recipients:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/en/self-host/deploy/configuration/environments#console_web_url`,children:_jsx(_components.code,{children:`CONSOLE_WEB_URL`})}),` and `,_jsx(_components.a,{href:`/en/self-host/deploy/configuration/environments#app_web_url`,children:_jsx(_components.code,{children:`APP_WEB_URL`})}),` = addresses recipients can open`]}),`\n`,_jsxs(_components.li,{children:[`For an IM that `,_jsx(_components.a,{href:`/en/self-host/use-dify/workspace/channels/overview#connect-your-im`,children:`shows requests as cards`}),`, `,_jsx(_components.a,{href:`/en/self-host/deploy/configuration/environments#trigger_url`,children:_jsx(_components.code,{children:`TRIGGER_URL`})}),` = an address your IM can reach over the internet, so clicks on card buttons get back to Dify`]}),`\n`]}),_jsxs(_components.p,{children:[`Email requests also need the deployment’s `,_jsx(_components.a,{href:`/en/self-host/deploy/configuration/environments#mail-configuration`,children:`mail configuration`}),`.`]})]}),_jsx(`a`,{id:`choose-who-responds`}),_jsx(Heading,{level:`2`,id:`choose-who-responds`,children:`Choose Who Responds`}),_jsxs(_components.p,{children:[`Anyone you add in `,_jsx(_components.strong,{children:`Recipients`}),` can respond, and the first response decides: the request then closes for everyone else. Add only people whose decision you’d accept.`]}),_jsx(_components.p,{children:`How you add someone determines how the request reaches them:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Recipient`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Use it when`}),_jsx(_components.th,{style:{textAlign:`left`},children:`How they get the request`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`A contact`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`You work with them regularly. Pick them from your workspace’s `,_jsx(_components.a,{href:`/en/self-host/use-dify/workspace/contacts`,children:`Contacts`}),`. `,_jsx(`br`,{}),_jsx(`br`,{}),`If their email changes, new requests follow it without any change to your workflow. `,_jsx(Info,{children:`When anyone on the team can decide, pick the whole workspace instead. External contacts aren’t included.`})]}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsxs(`ul`,{children:[_jsxs(`li`,{children:[`Workspace members: by email, and also in your team’s IM once their IM identity is `,_jsx(_components.a,{href:`/en/self-host/use-dify/workspace/contacts#bind-im-identities`,children:`bound in Contacts`}),`. `,_jsx(`br`,{}),_jsx(`br`,{})]}),_jsx(`li`,{children:`External contacts: by email only, and they need no Dify account to respond.`})]})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`An email address`}),_jsx(_components.td,{style:{textAlign:`left`},children:`A one-off recipient you don’t need to keep in Contacts. Type it in.`}),_jsx(_components.td,{style:{textAlign:`left`},children:`By email.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`A variable`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The run decides who responds, such as an address an earlier node collected. `,_jsx(`br`,{}),_jsx(`br`,{}),`The variable must hold exactly one address; an empty or invalid value is skipped.`]}),_jsx(_components.td,{style:{textAlign:`left`},children:`By email only, even when the address is a workspace member’s.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Initiator`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The person running the app should confirm the step themselves. `,_jsx(`br`,{}),_jsx(`br`,{}),`Not available in a workflow that starts from a trigger.`]}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsxs(`ul`,{children:[_jsxs(`li`,{children:[`In a web app, the form appears right in the app. `,_jsx(`br`,{}),_jsx(`br`,{})]}),_jsxs(`li`,{children:[`Through the `,_jsx(_components.a,{href:`/en/api-reference/guides/human-input-flow`,children:`Service API`}),`, your integration responds.`]})]})})]})]})]}),_jsx(_components.p,{children:`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.`}),_jsx(`a`,{id:`write-the-notification`}),_jsx(Heading,{level:`2`,id:`write-the-notification`,children:`Write the Notification`}),_jsx(_components.p,{children:`The message template is the notification that brings people to the form, by email and as a message in IM.`}),_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Message template`}),`, write a subject and body that tell people what they’re being asked to decide, and click `,_jsx(_components.strong,{children:`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.`]}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Message Template`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-message-template.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=e0abea7a538e07e58ca0725f3fe1853a`,alt:`Message Template`,\"data-og-width\":`1378`,width:`1378`,\"data-og-height\":`713`,height:`713`,\"data-path\":`images/use-dify/workflow/human-input-message-template.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-message-template.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=f55736cad0c2b79a47ee5973f9598970 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-message-template.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=e3912e58a5c82c72753755e66312b8fe 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-message-template.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=7d71806d8baa30e9346ee57c5cf9fd72 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-message-template.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=b02e5c926353b648cad274056eae4d37 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-message-template.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=32a5b51da1e410ed11a4ef619373f591 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-message-template.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=96df2c789f28df41b266a66a972b64ff 2500w`})}),_jsx(Frame,{caption:`Request as a Link Message`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ac6b307c0ce4deda3ac834fd87f89e43`,alt:`Request as a Link Message`,\"data-og-width\":`1228`,width:`1228`,\"data-og-height\":`536`,height:`536`,\"data-path\":`images/use-dify/workflow/human-input-im-link.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=154a4a34f340b556ebd205de0fcb1d67 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=0a9faecc1ee1a2387f87cccd590606e3 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=b3be16983fb47e89552ce6a4100fdebb 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=aa83ac8a91080b35417bfe5e51841c87 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=085f482a381ad58e3bef397240655289 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=43b45981d9f4eaa944bb711e92108ebd 2500w`})})]}),_jsxs(Info,{children:[_jsxs(_components.p,{children:[`In an IM that `,_jsx(_components.a,{href:`/en/self-host/use-dify/workspace/channels/overview#connect-your-im`,children:`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.`]}),_jsx(Frame,{caption:`Request as an IM Card`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=d906006fd4461432ae18f85550ae59dd`,alt:`Request as an IM Card`,\"data-og-width\":`1362`,width:`1362`,\"data-og-height\":`886`,height:`886`,\"data-path\":`images/use-dify/workflow/human-input-im-card.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=cbd7364f44f3c4eb758c50e1c3a5f841 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=678cb7476d661554a55aadd0a0d36b08 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ca14309e523a8deef11df5f372c074d9 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=122e8ca0d58ca872cc8dfdf18005527a 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=8144e2775c1c38c1060aab05751bbf1e 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=24a5f51d55ec78dfbf2b4cfecf403541 2500w`})})]}),_jsxs(_components.p,{children:[`To check how it reads, use `,_jsx(_components.strong,{children:`Test message`}),`: pick your IM as the `,_jsx(_components.strong,{children:`Test channel`}),` and click `,_jsx(_components.strong,{children:`Save and test`}),` to send it to yourself. It always arrives as a link message; to see the card your recipients get, do a `,_jsx(_components.a,{href:`#test-without-notifying-recipients`,children:`test run with Debug Mode on`}),`.`]}),_jsx(`a`,{id:`design-the-form`}),_jsx(Heading,{level:`2`,id:`design-the-form`,children:`Design the Form`}),_jsx(_components.p,{children:`A form has two parts: the content recipients read and fill in, and the buttons they click to decide.`}),_jsx(`a`,{id:`card-or-link`}),_jsx(Info,{children:_jsx(_components.p,{children:`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.`})}),_jsx(Heading,{level:`3`,id:`form-content`,children:`Form Content`}),_jsx(_components.p,{children:`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.`}),_jsx(Info,{children:_jsxs(_components.p,{children:[`Reasoning models emit their thinking process alongside the final answer, and referencing the LLM node’s `,_jsx(_components.code,{children:`text`}),` variable shows both. To show only the answer, turn on `,_jsx(_components.strong,{children:`Enable reasoning tag separation`}),` in that LLM node.`]})}),_jsxs(_components.p,{children:[`Insert input fields into the content wherever recipients should fill something in. The name you give a field in `,_jsx(_components.strong,{children:`Save Response As`}),` becomes its variable downstream.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`What recipients do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Paragraph`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Enter text. The field can start empty, or pre-filled with a variable (such as LLM output to refine) or static text. `,_jsx(`br`,{}),_jsx(`br`,{}),`No maximum length, but very long inputs may exceed downstream LLM context windows. `,_jsxs(Tip,{children:[`If the input is optional, pre-fill it with static text such as `,_jsx(_components.em,{children:`None`}),`, so recipients can submit without typing.`]})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Select`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Pick one option. List the options yourself, or take them from an `,_jsx(_components.code,{children:`array[string]`}),` variable.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Single File / File List`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Upload one file, or several. `,_jsxs(Info,{children:[`File upload limits are tunable via environment variables: `,_jsxs(`ul`,{children:[_jsxs(`li`,{children:[_jsx(_components.code,{children:`UPLOAD_FILE_SIZE_LIMIT`}),`, `,_jsx(_components.code,{children:`UPLOAD_IMAGE_FILE_SIZE_LIMIT`}),`, `,_jsx(_components.code,{children:`UPLOAD_VIDEO_FILE_SIZE_LIMIT`}),`, and `,_jsx(_components.code,{children:`UPLOAD_AUDIO_FILE_SIZE_LIMIT`}),` cap per-file size by extension.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`WORKFLOW_FILE_UPLOAD_LIMIT`}),` caps the max files a File List field can be configured to accept.`]})]}),`See `,_jsx(_components.a,{href:`/en/self-host/deploy/configuration/environments`,children:`Environment Variables`}),` for defaults.`]})]})]})]})]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`For a decision that sets where the workflow goes next, such as approve or reject, use buttons under `,_jsx(_components.strong,{children:`User Actions`}),` rather than a Select field. A Select field records the answer but doesn’t branch the workflow.`]})}),_jsx(Heading,{level:`3`,id:`user-actions`,children:`User Actions`}),_jsx(_components.p,{children:`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.`}),_jsx(`a`,{id:`use-the-response`}),_jsx(Heading,{level:`2`,id:`use-the-response`,children:`Use the Response`}),_jsx(_components.p,{children:`After someone responds, downstream nodes can use:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Each input field’s value.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`__action_id`}),`: the action ID you gave the clicked button under `,_jsx(_components.strong,{children:`User Actions`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`__action_value`}),`: that button’s text.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`__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.`]}),`\n`,_jsxs(_components.p,{children:[`File fields appear as plain-text placeholders: `,_jsx(_components.code,{children:`[file]`}),` for Single File and `,_jsx(_components.code,{children:`[N files]`}),` for File List.`]}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`On the `,_jsx(_components.strong,{children:`Timeout`}),` branch, `,_jsx(_components.code,{children:`__action_id`}),` and `,_jsx(_components.code,{children:`__action_value`}),` are empty, and `,_jsx(_components.code,{children:`__rendered_content`}),` holds the form content without values.`]}),_jsx(`a`,{id:`set-a-timeout`}),_jsx(Heading,{level:`2`,id:`set-a-timeout`,children:`Set a Timeout`}),_jsxs(_components.p,{children:[`Set `,_jsx(_components.strong,{children:`Timeout`}),` to how long the decision can wait. When it runs out with no response, the run continues along the node’s `,_jsx(_components.strong,{children:`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.`]}),_jsx(_components.p,{children:`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.`}),_jsxs(_components.p,{children:[`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 `,_jsx(_components.strong,{children:`Timeout`}),` branch never runs.`]}),_jsxs(_components.p,{children:[`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 `,_jsx(_components.a,{href:`/en/self-host/deploy/configuration/environments#human_input_global_timeout_seconds`,children:_jsx(_components.code,{children:`HUMAN_INPUT_GLOBAL_TIMEOUT_SECONDS`})}),`, which applies to every run on the deployment.`]}),_jsx(`a`,{id:`test-without-notifying-recipients`}),_jsx(Heading,{level:`2`,id:`test-without-notifying-recipients`,children:`Test Without Notifying Recipients`}),_jsx(_components.p,{children:`Test runs from the editor send real requests to your recipients. To test without reaching anyone else, you have two options:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`With a connected IM and your own IM identity `,_jsx(_components.a,{href:`/en/self-host/use-dify/workspace/contacts#bind-im-identities`,children:`bound to your contact`}),`, a test run with `,_jsx(_components.strong,{children:`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.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Run this step`}),` shows only the form, right in the editor, and sends nothing to anyone.`]}),`\n`]}),`\n`]}),_jsx(`a`,{id:`what-recipients-see`}),_jsx(Heading,{level:`2`,id:`how-recipients-respond`,children:`How Recipients Respond`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsx(_components.p,{children:`They don’t need access to the app itself.`}),`\n`,_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Request as an IM Card`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=d906006fd4461432ae18f85550ae59dd`,alt:`Request as an IM Card`,\"data-og-width\":`1362`,width:`1362`,\"data-og-height\":`886`,height:`886`,\"data-path\":`images/use-dify/workflow/human-input-im-card.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=cbd7364f44f3c4eb758c50e1c3a5f841 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=678cb7476d661554a55aadd0a0d36b08 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ca14309e523a8deef11df5f372c074d9 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=122e8ca0d58ca872cc8dfdf18005527a 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=8144e2775c1c38c1060aab05751bbf1e 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-card.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=24a5f51d55ec78dfbf2b4cfecf403541 2500w`})}),_jsx(Frame,{caption:`Request as a Link Message`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ac6b307c0ce4deda3ac834fd87f89e43`,alt:`Request as a Link Message`,\"data-og-width\":`1228`,width:`1228`,\"data-og-height\":`536`,height:`536`,\"data-path\":`images/use-dify/workflow/human-input-im-link.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=154a4a34f340b556ebd205de0fcb1d67 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=0a9faecc1ee1a2387f87cccd590606e3 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=b3be16983fb47e89552ce6a4100fdebb 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=aa83ac8a91080b35417bfe5e51841c87 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=085f482a381ad58e3bef397240655289 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-im-link.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=43b45981d9f4eaa944bb711e92108ebd 2500w`})})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`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.`}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`Once someone responds, no one else can.`}),_jsx(`a`,{id:`examples`}),_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Approve a Refund`,id:`approve-a-refund`,children:[_jsx(Frame,{caption:`Refund Approval Workflow`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=7320f38494f5d0f09a450a84dcc8cc0a`,alt:`Refund Approval Workflow`,\"data-og-width\":`2372`,width:`2372`,\"data-og-height\":`860`,height:`860`,\"data-path\":`images/use-dify/workflow/human-input-example-refund.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=820d00342f707fbf5f19048b62fba136 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=58abab7d13574adb4123985dfa67d0dc 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=bd8eb45ae7a85ea70ab1a6b7afe23516 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=79af2f4c54f8089b1ac7c3c8094c18a7 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=359c21c6ae74d8837b8d84f4fdf44f9d 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=96afe5dded0e07e43cac53632586739a 2500w`})}),_jsx(_components.p,{children:`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.`}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`To try this workflow in your workspace, get `,_jsx(_components.a,{href:`https://marketplace.dify.ai/template/riskey/658ab503-d550-4957-9d11-1ae8b8b9ceda`,children:`its template`}),` from Dify Marketplace.`]})}),_jsx(_components.p,{children:`It’s designed around these goals:`}),_jsxs(Steps,{children:[_jsx(Step,{title:`Only refunds that need judgment reach the lead`,children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Put an If-Else node right after Start that checks whether `,_jsx(_components.code,{children:`amount`}),`, a number input, is under 50.`,`\n`,_jsx(Frame,{caption:`If-Else Condition`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-ifelse.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=edb8eed563b4ef5238f8ea6aef2e9519`,alt:`If-Else Condition`,width:`400`,\"data-og-width\":`800`,\"data-og-height\":`322`,\"data-path\":`images/use-dify/workflow/human-input-example-refund-ifelse.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-ifelse.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=6f270eb14d40be02c074e2ffac7f45b6 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-ifelse.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=4bd58cd3a8132970f6b16350fabaa5e4 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-ifelse.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=134180bb3fee9f52e18c826be7f5b44e 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-ifelse.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=284dff981c3600f95fa3ec3e9c054d2b 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-ifelse.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=300be9bd44d0003b1d6dccc5f554e59e 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-ifelse.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=4a3d77c5b819abcd36f409ed6aec012b 2500w`})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Connect the branch for refunds under 50 straight to an Output node (`,_jsx(_components.em,{children:`Refund auto-approved`}),`), and the other branch to the LLM.`]}),`\n`]})}),_jsx(Step,{title:`The lead sees what the AI recommends, and why`,children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In an LLM node (`,_jsx(_components.em,{children:`Recommend a decision`}),`):`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Put the refund policy in the system prompt and the order in the user prompt: its ID, customer, amount, and reason, all from Start.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Ask it to give its verdict, `,_jsx(_components.em,{children:`Approve`}),` or `,_jsx(_components.em,{children:`Reject`}),`, on the first line, then cite the policy in one or two sentences.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Frame,{caption:`Prompts in Recommend a Decision`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-llm.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=812de32af68b79e19c420f61f74eba9b`,alt:`Prompts in Recommend a Decision`,width:`400`,\"data-og-width\":`800`,\"data-og-height\":`1154`,\"data-path\":`images/use-dify/workflow/human-input-example-refund-llm.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-llm.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=c4962efe11f7d2a512e43eae26eaeb62 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-llm.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=36957c49bd722d80a37c6802799d207a 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-llm.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=6ff3cc34ac0ff70ebadd2207a53236f5 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-llm.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ede52f7f6efe31def93cbf0cd1290226 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-llm.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=c953963b4d48b47ebf7fb40ac466528e 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-llm.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=2bb80f6400fe3a6f48867a5fa541e73d 2500w`})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In the Human Input node’s `,_jsx(_components.strong,{children:`Form Content`}),`, show the order details, then the LLM’s `,_jsx(_components.code,{children:`text`}),` output under a bold `,_jsx(_components.em,{children:`AI recommendation`}),` label.`]}),`\n`,_jsx(_components.p,{children:`With the reason in front of them, the lead can catch a wrong recommendation.`}),`\n`,_jsx(Frame,{caption:`Form Content with the AI Recommendation`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=d6cae51242b55f3bb6e8fa7563261fd0`,alt:`Form Content with the AI Recommendation`,width:`376`,\"data-og-width\":`752`,\"data-og-height\":`590`,\"data-path\":`images/use-dify/workflow/human-input-example-refund-form.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=44f2e981041c09034f41ef55ab9d0a7b 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=0a12a07ce5617a6bd08698de10ea6d72 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=a87373d94e696d191dfd38557314a40d 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=dd092e942b5175a0e50c194c0f46bdce 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=e7869e99ce34c687b09ee0916a16e742 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=78c8124204badec9741c406fd41c2486 2500w`})}),`\n`]}),`\n`]})}),_jsxs(Step,{title:`Each request goes to the lead who handles that order`,children:[_jsx(_components.p,{children:`Different orders might be handled by different leads, so the workflow takes the lead’s address from each order instead of naming one person.`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Add a text input to Start, `,_jsx(_components.code,{children:`lead_email`}),`, for the order system to fill in with the lead’s email.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In the Human Input node’s `,_jsx(_components.strong,{children:`Recipients`}),`, click `,_jsx(_components.strong,{children:`Insert variable`}),` and pick `,_jsx(_components.code,{children:`lead_email`}),`.`]}),`\n`,_jsx(Frame,{caption:`Lead Email as the Recipient`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-recipients.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=f6f9bef761ae4d4e9cf7c910769f2003`,alt:`Lead Email as the Recipient`,width:`400`,\"data-og-width\":`796`,\"data-og-height\":`576`,\"data-path\":`images/use-dify/workflow/human-input-example-refund-recipients.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-recipients.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=1a3f7a65209d265b097e020e68ac6d0b 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-recipients.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=f5e8d04b7b6b5e682855fd6b4e650b30 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-recipients.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=82ce538c8beaac20f2f43932a5a97b27 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-recipients.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=2598a5113b58bcd7645e36b4445f99cb 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-recipients.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=0661b6a296454ce8a8f3690717d94c76 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-recipients.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=0d6a51f0f6cfd512da19c43a612eac8d 2500w`})}),`\n`]}),`\n`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`If one lead handles every refund, you don’t need a variable: add them in `,_jsx(_components.strong,{children:`Recipients`}),` directly.`]})})]}),_jsxs(Step,{title:`The lead can respond in one click, with an optional note`,children:[_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Under `,_jsx(_components.strong,{children:`User Actions`}),`, add two buttons: `,_jsx(_components.strong,{children:`Approve`}),` and `,_jsx(_components.strong,{children:`Reject`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`For the note, add one Paragraph field named `,_jsx(_components.code,{children:`note_to_customer`}),` and pre-fill it with the static text `,_jsx(_components.em,{children:`None`}),`, so the lead can approve or reject without typing.`]}),`\n`]}),`\n`]}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Note Field Pre-Filled with None`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-note-field.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=7f706fa58264b4cc83c6fefc8468a1a1`,alt:`Note Field Pre-Filled with None`,\"data-og-width\":`742`,width:`742`,\"data-og-height\":`730`,height:`730`,\"data-path\":`images/use-dify/workflow/human-input-example-refund-note-field.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-note-field.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=9ed7f8422120cf8807d7ac47ac42230c 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-note-field.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=710e09e9a87a27e5be12d02803f27e3a 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-note-field.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=4bf7f064814869bccd8fe56a34f3a3ec 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-note-field.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=042c2ca97e2b53055c7f0ea3909c56ad 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-note-field.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=c7d7b699cc134e0b2f6c2b891c5f56e7 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-note-field.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=b841b5c78d219b79d275358fdfa16f50 2500w`})}),_jsx(Frame,{caption:`Refund Request`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form-page.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=21fdd21cac1c0bd8a53780055b141f75`,alt:`Refund Request`,\"data-og-width\":`1370`,width:`1370`,\"data-og-height\":`1596`,height:`1596`,\"data-path\":`images/use-dify/workflow/human-input-example-refund-form-page.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form-page.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=2e4558bec4cfeac59c781e1ab9e5f126 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form-page.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=cdb864be4d07ac0c6c9ac9270652adf0 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form-page.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=e03df22d036afa1635a109a35b822255 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form-page.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=65028bf6d6e8d43ae6799fe48d933ce1 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form-page.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=17c2fe50dc29221b87807ba070428a3e 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-refund-form-page.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=2a8c914f481babcb53f4bcba519ebd7e 2500w`})})]})]}),_jsx(Step,{title:`The result shows whether the refund was approved, rejected, or never decided`,children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Connect `,_jsx(_components.strong,{children:`Approve`}),` and `,_jsx(_components.strong,{children:`Reject`}),` to their own Output nodes (`,_jsx(_components.em,{children:`Refund approved`}),` and `,_jsx(_components.em,{children:`Refund rejected`}),`), each returning the note.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Connect the `,_jsx(_components.strong,{children:`Timeout`}),` branch to a third (`,_jsx(_components.em,{children:`No decision`}),`), so a refund no one decided on is never counted as approved or rejected.`]}),`\n`]}),`\n`]})})]})]}),_jsxs(Tab,{title:`Revise a Draft Until Approved`,id:`revise-a-draft-until-approved`,children:[_jsx(Frame,{caption:`Draft Revision Workflow`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=7e1398f2582390be6d991f116e791ae4`,alt:`Draft Revision Workflow`,\"data-og-width\":`2314`,width:`2314`,\"data-og-height\":`594`,height:`594`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-loop.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=26880ab9a1b3959378cbefef24c92cc1 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=b1a21a2d10037835403a4a283bb1c296 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=155bb8d7ca1dc939b9fc978c58db9ae1 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=7eb08ebf2cc7d82740ea139c40fccb65 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=a18f18610e84335caf8a778eaa6397fd 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=26fa0534feb45220b5186ad6618919a1 2500w`})}),_jsx(_components.p,{children:`This workflow has an LLM write a short blog post from a brief, and a reviewer approves the draft or sends it back with feedback for the LLM to revise. The back-and-forth can go on for up to three rounds.`}),_jsx(_components.p,{children:`At the end, the workflow returns the final draft and how the review ended: approved, timed out, or still unapproved after three rounds.`}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`To try this workflow in your workspace, get `,_jsx(_components.a,{href:`https://marketplace.dify.ai/template/riskey/6b90ff99-3ad3-4cff-8160-9415a5bbab8e`,children:`its template`}),` from Dify Marketplace.`]})}),_jsx(_components.p,{children:`It’s designed around these goals:`}),_jsxs(Steps,{children:[_jsxs(Step,{title:`The reviewer can go back and forth over several rounds`,children:[_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Put the LLM node (`,_jsx(_components.em,{children:`Write or revise the draft`}),`) and the Human Input node inside a `,_jsx(_components.a,{href:`/en/self-host/use-dify/nodes/loop`,children:`Loop`}),`, so each round sends the reviewer a new request with that round’s draft.`]}),`\n`,_jsx(_components.p,{children:`Every round is the same two steps: the LLM writes or revises, then the reviewer reviews. The Loop repeats them until a condition says stop, so you build them once instead of copying them for each round.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In the Human Input node, add the reviewer in `,_jsx(_components.strong,{children:`Recipients`}),` and two buttons under `,_jsx(_components.strong,{children:`User Actions`}),`: `,_jsx(_components.strong,{children:`Approve`}),` and `,_jsx(_components.strong,{children:`Request changes`}),`.`]}),`\n`]}),`\n`]}),_jsx(Frame,{caption:`Inside the Loop`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-box.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=aa75bb664c36be4b725e8006212e1b12`,alt:`Inside the Loop`,\"data-og-width\":`1455`,width:`1455`,\"data-og-height\":`485`,height:`485`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-loop-box.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-box.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=446d7a4856cc889070cb6946de6871b4 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-box.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=f75662e4d991bf7316148873bc41cf24 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-box.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=9fd16bb5c881cff094b466e4200515cf 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-box.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=d328ebeff08abca16fc1e463d85e146e 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-box.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ac4417f77037a5af1959928b7ce16ee3 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-box.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=cc6e9ace004d15a91f9dbcaeeb30a7b7 2500w`})})]}),_jsxs(Step,{title:`The reviewer can send the draft back with feedback`,children:[_jsxs(_components.p,{children:[`In the Human Input node’s `,_jsx(_components.strong,{children:`Form Content`}),`, show the draft, then add a Paragraph field named `,_jsx(_components.code,{children:`feedback`}),`. Pre-fill it with `,_jsx(_components.em,{children:`None`}),`, so the reviewer can approve without typing.`]}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Form Content with the Feedback Field`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-form.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=9c871b0ea2c730b0b7b755ff5291d1ac`,alt:`Form Content with the Feedback Field`,\"data-og-width\":`800`,width:`800`,\"data-og-height\":`699`,height:`699`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-form.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-form.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=8c0d988ea386a814879a6e6c3b7e0edc 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-form.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=dcebfc4d101f57216d70e02f0ec3f4a8 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-form.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=1428fd167d412afa04ee0b6816a6936a 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-form.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=78f51f1e8663535d6b01a82232423741 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-form.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=e8ca416865b4659da9f0f577b9045ce5 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-form.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ba0288e15ccff72f2ae5f5685e9326af 2500w`})}),_jsx(Frame,{caption:`Review Request`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-card.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=8eb2979fe5e285cb45b744d0e1381062`,alt:`Review Request`,\"data-og-width\":`1212`,width:`1212`,\"data-og-height\":`1094`,height:`1094`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-card.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-card.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=72027db165e40ebc68a82e78c6cb0243 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-card.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=9be5b2d65b27c3bb6a5be3a26c2c06b6 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-card.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=3eb248c1368b1550f62f988f0ca16a51 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-card.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=893ab2e3a98b9bef499ed4d0f9dd4f52 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-card.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=d099e6c970e9b12cd5b94b2799e85533 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-card.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=1b6fffceb7f2ec8368236b8832310c88 2500w`})})]})]}),_jsxs(Step,{title:`Each round revises the last draft instead of starting over`,children:[_jsx(_components.p,{children:`When a new round starts, the outputs of the previous round’s nodes are gone: round 2 can’t read the draft the LLM wrote in round 1, or the feedback the reviewer typed. Only loop variables carry over, along with the workflow’s own inputs such as the brief.`}),_jsxs(_components.p,{children:[`So in the Loop’s `,_jsx(_components.strong,{children:`Loop Variables`}),`, add `,_jsx(_components.code,{children:`draft`}),` and `,_jsx(_components.code,{children:`feedback`}),`, both strings that start empty.`]}),_jsx(Frame,{caption:`Loop Variables`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-variables.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=cbd8c5db2c2f9d454003dda6bc626f06`,alt:`Loop Variables`,width:`400`,\"data-og-width\":`800`,\"data-og-height\":`594`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-loop-variables.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-variables.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=a4e2ffee7b16d89c66f1ba6fc69f2105 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-variables.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=9b3d921f3a0b663f73f61405bf8e9359 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-variables.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=e51af0bcbd322057a47cb123c5a828fe 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-variables.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=4ddee52b170990369ae621d866bf0865 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-variables.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=f3047c152bb19f3809696c9121a9c312 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-variables.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=a0734dd851afa89566938a65cbb46930 2500w`})}),_jsx(_components.p,{children:`A Variable Assigner is the node that saves a value into a loop variable. Add one for each:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Right after the LLM, add `,_jsx(_components.em,{children:`Save the draft`}),` to overwrite `,_jsx(_components.code,{children:`draft`}),` with the LLM’s output. The next round revises this draft.`]}),`\n`,_jsx(Frame,{caption:`Save the Draft Assigner`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-draft.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=159aac236a0f63b80e2999cf44cfab68`,alt:`Save the Draft Assigner`,\"data-og-width\":`2166`,width:`2166`,\"data-og-height\":`876`,height:`876`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-save-draft.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-draft.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=a8140348a3218661647e28fcb1d49586 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-draft.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ce3bf9e29ad50c6283769a0848c4e09e 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-draft.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=8cd1681437762224d666bb8e3127b6c1 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-draft.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=e96be6c402a11accb59eab5dafb3b711 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-draft.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=c85121c69a18b6ac628dc6e81995e35a 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-draft.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=5a68795d4a8cfe407292170f00960bfa 2500w`})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`At the end of the `,_jsx(_components.strong,{children:`Request changes`}),` branch, add `,_jsx(_components.em,{children:`Save the feedback`}),` to overwrite `,_jsx(_components.code,{children:`feedback`}),` with what the reviewer typed, so the next round’s LLM sees it.`]}),`\n`,_jsx(Frame,{caption:`Save the Feedback Assigner`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=98cfea12ec47a8a50456cc85cb244155`,alt:`Save the Feedback Assigner`,\"data-og-width\":`2172`,width:`2172`,\"data-og-height\":`956`,height:`956`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-save-feedback.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=07aa35a21d517bb0e0ee9e92ce9f9818 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=40badf15fa7719dd106a4daeefa95a7f 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=3b754978f40d4206d574a5635cf857b9 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=97e7c53b988906188e4b65ca45cead12 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=09cc5072c3456241c02bcff9bcf727e4 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=7903de1fb834b469e67f12b4d8ae75c0 2500w`})}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`Give the LLM the brief from Start, `,_jsx(_components.code,{children:`draft`}),`, and `,_jsx(_components.code,{children:`feedback`}),` in its prompt. Tell it to write a first draft while `,_jsx(_components.code,{children:`draft`}),` is empty, and after that to revise only what the feedback asks.`]}),_jsx(Frame,{caption:`Prompts in Write or Revise the Draft`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-llm.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=a67d6e78b7b02f17754178128a93e59a`,alt:`Prompts in Write or Revise the Draft`,width:`404`,\"data-og-width\":`808`,\"data-og-height\":`1292`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-llm.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-llm.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ff50395d52e7fb16f8d35902aaa6bf3f 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-llm.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=c884a5d57d2974404041fcfbdd3e5291 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-llm.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=6adbe7dd5ae7e51c8a3a3e8330d86ecb 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-llm.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=433841aaba1bfcd09632f54fc37a595f 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-llm.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=f4c7461bfbad879e291ab48ded926c1a 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-llm.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=b230ec445e6a9e46735e1b593e0ed4fd 2500w`})})]}),_jsxs(Step,{title:`The review stops when the reviewer approves, no one responds, or three rounds are up`,children:[_jsx(_components.p,{children:`To let the Loop know when to stop, record how each round ended:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Loop Variables`}),`, add a third, `,_jsx(_components.code,{children:`decision`}),`, that starts as `,_jsx(_components.code,{children:`pending`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`End the `,_jsx(_components.strong,{children:`Approve`}),` branch with a Variable Assigner (`,_jsx(_components.em,{children:`Mark as approved`}),`) that sets it to `,_jsx(_components.code,{children:`approved`}),`.`]}),`\n`,_jsx(Frame,{caption:`Mark as Approved Assigner`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-mark-approved.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=c895e806c25c42ecd03f288ff000cd79`,alt:`Mark as Approved Assigner`,width:`560`,\"data-og-width\":`1120`,\"data-og-height\":`457`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-mark-approved.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-mark-approved.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=e9d6c17df4758e9989892fef23590379 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-mark-approved.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=eb3107468adfd245d03fb56827f1d6d5 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-mark-approved.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=7d1b4a8738ff410dc51947fbf0a8a320 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-mark-approved.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=f1fe601e5a03b07818ddd676dc588f2d 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-mark-approved.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=2f1295134daf38355643f06343b1d3de 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-mark-approved.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=8c05a9623e988278ed05bb866899b532 2500w`})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`End the `,_jsx(_components.strong,{children:`Timeout`}),` branch with another (`,_jsx(_components.em,{children:`Mark as timed out`}),`) that sets it to `,_jsx(_components.code,{children:`timed_out`}),`.`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`Then tell the Loop when to stop:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Set the Loop’s `,_jsx(_components.strong,{children:`Loop Termination Condition`}),` to `,_jsx(_components.code,{children:`decision`}),` is `,_jsx(_components.code,{children:`approved`}),` OR `,_jsx(_components.code,{children:`decision`}),` is `,_jsx(_components.code,{children:`timed_out`}),`.`]}),`\n`,_jsx(Frame,{caption:`Loop Termination Condition`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-termination.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=b2f0c7ae5adab91c1cc446e36479c529`,alt:`Loop Termination Condition`,width:`400`,\"data-og-width\":`800`,\"data-og-height\":`428`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-loop-termination.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-termination.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=9c74cff01959cca568afcaafcb7256d9 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-termination.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=661802a54fe49ec6eb873ed2f53af43b 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-termination.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=1e26ebf4298e532c0755121c8a8d56cf 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-termination.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=2a51ad9cd587b83d2d70ee46122f4321 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-termination.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=e2c2c30914e7e00606acee96849cd769 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-loop-termination.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=2c7dea08db2773ce8c6c1ab0ba8eadb6 2500w`})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.strong,{children:`Maximum Loop Count`}),` to 3. The loop then stops with the third draft, and the reviewer’s last feedback isn’t applied.`]}),`\n`,_jsx(Frame,{caption:`Maximum Loop Count`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-max-loop-count.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=6b16b919da0aa9d75e27bde982c7bd1b`,alt:`Maximum Loop Count`,width:`400`,\"data-og-width\":`800`,\"data-og-height\":`188`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-max-loop-count.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-max-loop-count.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ce46dea1aeba2ce786ea0fc212cefad3 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-max-loop-count.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=3d3596df075896807c5ec2cf0ada307b 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-max-loop-count.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=5db113b1d3d096592ec3cc35f91cb710 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-max-loop-count.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=9e20d5b15257a18338794d87f3519d32 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-max-loop-count.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=8721ed6b16edba6e13509860eec88c74 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-max-loop-count.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=5949d009073d1e420209107cb509fcf2 2500w`})}),`\n`]}),`\n`]})]}),_jsxs(Step,{title:`The result shows how the review ended`,children:[_jsxs(_components.p,{children:[`After the loop, an Output node (`,_jsx(_components.em,{children:`Final draft`}),`) returns the draft, `,_jsx(_components.code,{children:`decision`}),`, and `,_jsx(_components.code,{children:`feedback`}),`.`]}),_jsx(Frame,{caption:`Final Draft Output Variables`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-final-draft.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=f127f6f67fbc5563c20602651b98efe7`,alt:`Final Draft Output Variables`,width:`441`,\"data-og-width\":`882`,\"data-og-height\":`644`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-final-draft.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-final-draft.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ed62547b295dec79fc1099cefd7f2294 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-final-draft.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=ec8f99dca8381950e35f24c0e38ed0ca 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-final-draft.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=5bf8db3130ea84b44523ba33661afaac 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-final-draft.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=82b4d3832386431a0c7e070ba679e7e0 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-final-draft.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=7be83c9e38df42354b0dd48812d8b7d5 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-final-draft.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=0c08803806a2c827bd23c1cff341e461 2500w`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`decision`}),` already says whether the reviewer approved or didn’t respond. To also mark a review that ran out of rounds, go back to `,_jsx(_components.em,{children:`Save the feedback`}),` and add a second variable that sets `,_jsx(_components.code,{children:`decision`}),` to `,_jsx(_components.code,{children:`changes_requested`}),`.`]}),_jsx(Frame,{caption:`Save the Feedback Assigner with Two Variables`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback-two-variables.png?fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=cfaccca55c149a6b1156ef3c1dff8a45`,alt:`Save the Feedback Assigner with Two Variables`,width:`560`,\"data-og-width\":`1120`,\"data-og-height\":`625`,\"data-path\":`images/use-dify/workflow/human-input-example-revise-save-feedback-two-variables.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback-two-variables.png?w=280\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=f075e1312d4ca742e8e9c03fea1d7597 280w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback-two-variables.png?w=560\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=a6d0028c10aacd2c47771de7bb81b546 560w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback-two-variables.png?w=840\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=7253dd7947821d135a1c2984dd89aa0b 840w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback-two-variables.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=48b294d6b0fa1c8c146ebfbabae92de4 1100w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback-two-variables.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=c9fff60298f68f098fde6188e7546ff2 1650w, https://mintcdn.com/dify-6c0370d8/Q8QYd_xcsh-LWaCu/images/use-dify/workflow/human-input-example-revise-save-feedback-two-variables.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Q8QYd_xcsh-LWaCu\u0026q=85\u0026s=2345bd7550f3fdef8e5afe2531b7bc42 2500w`})}),_jsxs(_components.p,{children:[`In that case, `,_jsx(_components.code,{children:`feedback`}),` holds the reviewer’s last request, which no round got to apply. Whoever finishes the draft can start from there.`]})]})]})]})]}),_jsx(`a`,{id:`migrate-from-the-old-node`}),_jsx(Heading,{level:`2`,id:`migrate-from-the-old-node`,children:`Migrate from the Old Node`}),_jsx(_components.p,{children:`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.`}),_jsxs(_components.p,{children:[`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 `,_jsx(_components.strong,{children:`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.`]}),_jsx(_components.p,{children:`Here’s what carries over:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Old node`}),_jsx(_components.th,{style:{textAlign:`left`},children:`New node`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Web app delivery`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Initiator`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Members picked by name`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Their contacts`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`External email addresses`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Email addresses`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`All workspace members`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Your workspace, which covers every member`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Email subject and body`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Message template, unchanged`})]})]})]}),_jsx(_components.p,{children:`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.`}),_jsx(_components.p,{children:`If any node can’t be migrated, nothing changes. Common reasons:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Reason`}),_jsx(_components.th,{style:{textAlign:`left`},children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`a disabled delivery method still contains configuration`}),_jsx(_components.td,{style:{textAlign:`left`},children:`An email method you turned off still has recipients or text. Clear it, or turn it back on if you want those recipients included.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`a workspace member cannot be resolved to a contact or verified email`}),_jsx(_components.td,{style:{textAlign:`left`},children:`A member you picked has left the workspace or hasn’t accepted their invitation yet. Remove them, or migrate once they’ve accepted.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`an enabled email method is incomplete`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Fill in the email’s subject and body.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`a recipient email is invalid`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Correct or remove the address.`})]})]})]}),_jsx(_components.p,{children:`To go back to the old nodes after migrating, restore an earlier published version from version history.`})]}),_jsxs(Tab,{title:`Old Human Input`,id:`old-human-input`,\"data-child-tab-ids\":`[\"generate-draft\",\"regenerate\",\"check-revision\"]`,\"data-child-heading-ids\":`[\"configuration\",\"delivery-method\",\"form-content-2\",\"user-action\",\"timeout-strategy\",\"example%3A-content-review-workflow\"]`,children:[_jsx(_components.p,{children:`With the old Human Input node, the request shows up in the web app for whoever is running it, or goes out as an email link, and anyone with the link can respond.`}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`For a workflow design example, see `,_jsx(_components.a,{href:`#example-content-review-workflow`,children:`Example: Content Review Workflow`}),`.`]})}),_jsx(Heading,{level:`2`,id:`configuration`,children:`Configuration`}),_jsx(_components.p,{children:`Configure the following to define how the node requests and processes human input:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Delivery method`}),`: How the request form reaches recipients.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Form content`}),`: What information recipients will see and what they can interact with.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`User action`}),`: What decisions recipients can make and how the workflow proceeds accordingly.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Timeout`}),`: How long to wait and what happens if no recipient responds.`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`delivery-method`,children:`Delivery Method`}),_jsx(_components.p,{children:`Choose the channel through which the request is delivered. Currently available methods:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Webapp`}),`: Displays the request form to the web app end user. Not available in workflows started by a Trigger.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`External clients can drive the web app form lifecycle through the Service API. See `,_jsx(_components.a,{href:`/en/api-reference/guides/human-input-flow`,children:`API Integration Flow`}),`.`]})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Email`}),`: Sends a request link via email to specific workspace members, external email addresses, or every member of the workspace. Anyone with the link can respond, no Dify account required.`]}),`\n`]}),`\n`]}),_jsx(Note,{children:_jsx(_components.p,{children:`The request closes after the first response regardless of delivery method.`})}),_jsx(Heading,{level:`3`,id:`form-content-2`,children:`Form Content`}),_jsx(_components.p,{children:`Customize the form recipients see and interact with:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Format and structure with Markdown`})}),`\n`,_jsx(_components.p,{children:`Use headings, lists, bold text, links, and other Markdown elements to present information clearly.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Display dynamic data with variables`})}),`\n`,_jsx(_components.p,{children:`Reference workflow variables to show dynamic content, such as AI-generated text for review or a file someone uploaded at an upstream Human Input node for approval.`}),`\n`,_jsxs(_components.p,{children:[`In web app delivery, the form itself displays to end users. Any variables you reference render their values directly in the form, so `,_jsx(_components.strong,{children:`no Answer or Output node is needed before the Human Input node`}),`.`]}),`\n`,_jsxs(Tip,{children:[_jsxs(_components.p,{children:[`Reasoning models emit their thinking process alongside the final answer. Referencing the `,_jsx(_components.code,{children:`text`}),` output variable shows both by default.`]}),_jsxs(_components.p,{children:[`To show only the answer, toggle on `,_jsx(_components.strong,{children:`Enable reasoning tag separation`}),` for the corresponding LLM node.`]})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Collect input with form fields`})}),`\n`,_jsx(_components.p,{children:`Add fields into the request form to capture different types of input from recipients. Each field becomes a variable for downstream use.`}),`\n`,_jsx(_components.p,{children:`For example, in a blog review workflow, you can pass recipient feedback to a downstream LLM node for content revision.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Paragraph`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Text input. Can start empty, or pre-filled with variables (e.g., LLM output to refine) or static text (examples or default values). `,_jsx(`br`,{}),_jsx(`br`,{}),`No maximum length, but very long inputs may exceed downstream LLM context windows.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Select`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Single-choice selection from a list of options. Define options manually, or reference an `,_jsx(_components.code,{children:`array[string]`}),` variable to use its items as options.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Single File / File List`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Single or multiple file uploads. `,_jsxs(Info,{children:[`File upload limits are tunable via environment variables: `,_jsxs(`ul`,{children:[_jsxs(`li`,{children:[_jsx(_components.code,{children:`UPLOAD_FILE_SIZE_LIMIT`}),`, `,_jsx(_components.code,{children:`UPLOAD_IMAGE_FILE_SIZE_LIMIT`}),`, `,_jsx(_components.code,{children:`UPLOAD_VIDEO_FILE_SIZE_LIMIT`}),`, and `,_jsx(_components.code,{children:`UPLOAD_AUDIO_FILE_SIZE_LIMIT`}),` cap per-file size by extension.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`WORKFLOW_FILE_UPLOAD_LIMIT`}),` caps the max files a File List field can be configured to accept.`]})]}),`See `,_jsx(_components.a,{href:`/en/self-host/deploy/configuration/environments`,children:`Environment Variables`}),` for defaults.`]})]})]})]})]}),`\n`,_jsx(Note,{children:`Only Paragraph is optional; Select, Single File, and File List are mandatory. The form’s action buttons stay disabled until all mandatory fields are filled.`}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`After the recipient responds, the form content with all values filled in is available downstream as the `,_jsx(_components.code,{children:`__rendered_content`}),` variable. File field values render as plain-text placeholders: `,_jsx(_components.code,{children:`[file]`}),` for Single File and `,_jsx(_components.code,{children:`[N files]`}),` for File List.`]}),_jsx(Heading,{level:`3`,id:`user-action`,children:`User Action`}),_jsx(_components.p,{children:`Define the decision buttons that recipients can click, each routing the workflow to a different execution path.`}),_jsxs(_components.p,{children:[`For example, a `,_jsx(_components.code,{children:`Post`}),` branch might lead to nodes that trigger content publishing, while a `,_jsx(_components.code,{children:`Regenerate`}),` branch might loop back to an LLM node to revise the content.`]}),_jsxs(_components.p,{children:[`Each button has a display title and an action ID. When a button is clicked, its ID is exposed downstream as `,_jsx(_components.code,{children:`__action_id`}),` and its title (button text) as `,_jsx(_components.code,{children:`__action_value`}),`.`]}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/lwIzCowco7hnsTRZ/images/use-dify/workflow/human-input-action-button-config.png?fit=max\u0026auto=format\u0026n=lwIzCowco7hnsTRZ\u0026q=85\u0026s=59333898aec4d46bab326b83fe93b589`,alt:`Action Button Configuration`,\"data-og-width\":`1088`,width:`1088`,\"data-og-height\":`192`,height:`192`,\"data-path\":`images/use-dify/workflow/human-input-action-button-config.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/lwIzCowco7hnsTRZ/images/use-dify/workflow/human-input-action-button-config.png?w=280\u0026fit=max\u0026auto=format\u0026n=lwIzCowco7hnsTRZ\u0026q=85\u0026s=1637208fc7b2a256eecd9c9a857f278a 280w, https://mintcdn.com/dify-6c0370d8/lwIzCowco7hnsTRZ/images/use-dify/workflow/human-input-action-button-config.png?w=560\u0026fit=max\u0026auto=format\u0026n=lwIzCowco7hnsTRZ\u0026q=85\u0026s=0602250904d9376c554bac4226afdbcc 560w, https://mintcdn.com/dify-6c0370d8/lwIzCowco7hnsTRZ/images/use-dify/workflow/human-input-action-button-config.png?w=840\u0026fit=max\u0026auto=format\u0026n=lwIzCowco7hnsTRZ\u0026q=85\u0026s=b06be88aa1f510db8aae59ef57729ea2 840w, https://mintcdn.com/dify-6c0370d8/lwIzCowco7hnsTRZ/images/use-dify/workflow/human-input-action-button-config.png?w=1100\u0026fit=max\u0026auto=format\u0026n=lwIzCowco7hnsTRZ\u0026q=85\u0026s=cc0336b9d2a6593b074156994a055418 1100w, https://mintcdn.com/dify-6c0370d8/lwIzCowco7hnsTRZ/images/use-dify/workflow/human-input-action-button-config.png?w=1650\u0026fit=max\u0026auto=format\u0026n=lwIzCowco7hnsTRZ\u0026q=85\u0026s=1aa80f410b7116ba275227aeee664cf1 1650w, https://mintcdn.com/dify-6c0370d8/lwIzCowco7hnsTRZ/images/use-dify/workflow/human-input-action-button-config.png?w=2500\u0026fit=max\u0026auto=format\u0026n=lwIzCowco7hnsTRZ\u0026q=85\u0026s=54072a1ac2dac62e850665c2821e0fb2 2500w`})}),_jsxs(Tip,{children:[_jsx(_components.p,{children:`Use preset button styles to visually distinguish actions.`}),_jsxs(_components.p,{children:[`For example, use a prominent style for key actions like `,_jsx(_components.code,{children:`Approve`}),` and a subtler one for secondary options.`]})]}),_jsx(Heading,{level:`3`,id:`timeout-strategy`,children:`Timeout Strategy`}),_jsx(_components.p,{children:`Configure how long the request stays open before it expires. The default is 3 days.`}),_jsx(_components.p,{children:`If no recipient responds before the timeout, the workflow follows the timeout branch from the node. Wire this branch to a fallback path, such as a notification or a retry loop.`}),_jsx(_components.p,{children:`If no timeout branch is connected, the workflow ends.`}),_jsx(Heading,{level:`2`,id:`example-content-review-workflow`,children:`Example: Content Review Workflow`}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Workflow Example`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-workflow-example.png?fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=48cd296671394258ae626a59a68d229a`,alt:`Workflow Example`,\"data-og-width\":`3102`,width:`3102`,\"data-og-height\":`1388`,height:`1388`,\"data-path\":`images/use-dify/workflow/human-input-workflow-example.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-workflow-example.png?w=280\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=f118dd323a11e92f0436382f71ca389a 280w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-workflow-example.png?w=560\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=35348263fb5d8514af1c3537039040d7 560w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-workflow-example.png?w=840\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=101879d0a41a876948f25d2d872c7dac 840w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-workflow-example.png?w=1100\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=1a7000354c208ef5718b66a616734f74 1100w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-workflow-example.png?w=1650\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=d4f545cc18ec502ca9d1fba703d1ca32 1650w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-workflow-example.png?w=2500\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=d243b81b2a75d7c5c2272ddb202ed257 2500w`})}),_jsx(Frame,{caption:`Request Form Example`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-request-form-example.png?fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=6affcae54d33092e8a930078bf24559f`,alt:`Request Form Example`,\"data-og-width\":`923`,width:`923`,\"data-og-height\":`1704`,height:`1704`,\"data-path\":`images/use-dify/workflow/human-input-request-form-example.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-request-form-example.png?w=280\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=6b3c8173e700fc5227bd72e25993908c 280w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-request-form-example.png?w=560\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=1bc562fed2d1feea719893db5d60e0d9 560w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-request-form-example.png?w=840\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=0d9eb4dedecbe701acc7e9e3fea3362a 840w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-request-form-example.png?w=1100\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=0ae0dddbba57f16039d96ff5dea13420 1100w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-request-form-example.png?w=1650\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=291a05d5d164a438b9c2e1b9ec5a78f4 1650w, https://mintcdn.com/dify-6c0370d8/kGlB52nIHTqxEdjP/images/use-dify/workflow/human-input-request-form-example.png?w=2500\u0026fit=max\u0026auto=format\u0026n=kGlB52nIHTqxEdjP\u0026q=85\u0026s=7796897b6c22ff99a5690ff7fb4d0e1c 2500w`})})]}),_jsxs(_components.p,{children:[`This workflow drafts a blog post from the `,_jsx(_components.code,{children:`topic`}),` and `,_jsx(_components.code,{children:`language`}),` that a workflow initiator inputs, emails the draft to a reviewer, and finalizes the output based on the reviewer’s choice.`]}),_jsx(_components.p,{children:`It is designed around three things the reviewer should be able to do:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`See the AI-generated draft`}),`: Reference the upstream LLM node’s `,_jsx(_components.code,{children:`text`}),` variable in the form so the rendered form displays the draft directly.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Edit the draft directly if needed`}),`: Add a Paragraph field named `,_jsx(_components.code,{children:`edits`}),` in the form, pre-filled with the same `,_jsx(_components.code,{children:`text`}),` variable, so the reviewer sees the draft as starting content and can edit in place.`]}),`\n`,_jsx(_components.p,{children:`Because blog posts are long, the form’s Markdown display (point 1) reads better than a Paragraph field on its own. For shorter content, the pre-filled Paragraph field alone can handle both reading and editing.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Provide feedback for an AI revision`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add a Paragraph field named `,_jsx(_components.code,{children:`feedback`}),` in the form for the reviewer’s feedback.`]}),`\n`,_jsxs(_components.li,{children:[`Connect two downstream LLM nodes in sequence:`,`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`A Regenerate node that takes the original draft `,_jsx(_components.code,{children:`text`}),` and the reviewer’s `,_jsx(_components.code,{children:`feedback`}),` to produce a revised draft.`]}),`\n`,_jsxs(_components.li,{children:[`A Check Revision node that takes `,_jsx(_components.code,{children:`feedback`}),` and the revised draft to verify whether the revision addresses the feedback. The verified result is what flows downstream.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`On the received request form, the reviewer fills the relevant Paragraph fields (or leaves them blank) based on their judgment, then clicks the matching action button. Each action wires to a different output:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Approve`}),`: the original draft from the upstream LLM`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Apply Edit`}),`: the reviewer’s edited content from the `,_jsx(_components.code,{children:`edits`}),` field`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Regenerate`}),`: the revised draft from the downstream LLM pipeline`]}),`\n`]}),_jsx(Accordion,{title:`LLM Node Prompts for Reference`,id:`llm-node-prompts-for-reference`,children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Generate Draft`,id:`generate-draft`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`System`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Write a marketing blog post around the given topic in the specified language.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`User`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Topic: {{#user_input.topic#}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Language: {{#user_input.language#}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),_jsxs(Tab,{title:`Regenerate`,id:`regenerate`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`System`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Regenerate the draft based on user feedback.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`User`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Draft: {{#generate_draft.text#}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Feedback: {{#human_input.feedback#}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),_jsxs(Tab,{title:`Check Revision`,id:`check-revision`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`System`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Check whether the draft below addresses the user's feedback. Return the draft unchanged if it does; revise it to address the feedback if it doesn't.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`User`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Feedback: {{#human_input.feedback#}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Regenerated Draft: {{#regenerate.text#}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})]})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Human Input","description":"Pause workflows to request human input","href":"/en/self-host/use-dify/nodes/human-input"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Choose Who Responds","slug":"choose-who-responds","depth":2,"children":[],"tabId":"new-human-input"},{"title":"Write the Notification","slug":"write-the-notification","depth":2,"children":[],"tabId":"new-human-input"},{"title":"Design the Form","slug":"design-the-form","depth":2,"children":[{"title":"Form Content","slug":"form-content","depth":3,"children":[],"tabId":"new-human-input"},{"title":"User Actions","slug":"user-actions","depth":3,"children":[],"tabId":"new-human-input"}],"tabId":"new-human-input"},{"title":"Use the Response","slug":"use-the-response","depth":2,"children":[],"tabId":"new-human-input"},{"title":"Set a Timeout","slug":"set-a-timeout","depth":2,"children":[],"tabId":"new-human-input"},{"title":"Test Without Notifying Recipients","slug":"test-without-notifying-recipients","depth":2,"children":[],"tabId":"new-human-input"},{"title":"How Recipients Respond","slug":"how-recipients-respond","depth":2,"children":[],"tabId":"new-human-input"},{"title":"Examples","slug":"examples","depth":2,"children":[],"tabId":"new-human-input"},{"title":"Migrate from the Old Node","slug":"migrate-from-the-old-node","depth":2,"children":[],"tabId":"new-human-input"},{"title":"Configuration","slug":"configuration","depth":2,"children":[{"title":"Delivery Method","slug":"delivery-method","depth":3,"children":[],"tabId":"old-human-input"},{"title":"Form Content","slug":"form-content-2","depth":3,"children":[],"tabId":"old-human-input"},{"title":"User Action","slug":"user-action","depth":3,"children":[],"tabId":"old-human-input"},{"title":"Timeout Strategy","slug":"timeout-strategy","depth":3,"children":[],"tabId":"old-human-input"}],"tabId":"old-human-input"},{"title":"Example: Content Review Workflow","slug":"example-content-review-workflow","depth":2,"children":[],"tabId":"old-human-input"}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dify-6c0370d8/90066d529e522771/contributing-footer.js","/_mintlify/custom/dify-6c0370d8/ad2fa6ff7c6c4955/reo-beacon.js","/_mintlify/custom/dify-6c0370d8/1e076e0f45b86b02/ga4-consent.js"],"subdomain":"dify-6c0370d8","siteName":"Dify Docs","title":"Human Input - Dify Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/self-host/use-dify/nodes/human-input","matchLevel":0},"zh":{"href":"/zh/self-host/use-dify/nodes/human-input","matchLevel":1},"ja":{"href":"/ja/self-host/use-dify/nodes/human-input","matchLevel":1}}},"lastModified":"2026-11-18T09:18:12.919Z","gitLastModified":"2026-11-18T09:17:26.000Z","originalFileLocation":"en/self-host/use-dify/nodes/human-input.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Pause workflows to request human input\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dify Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Human Input - Dify Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Pause workflows to request human input\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dify Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dify-6c0370d8.mintlify.site/_mintlify/api/og/v2?division=Nodes\u0026amp;title=Human+Input\u0026amp;description=Pause+workflows+to+request+human+input\u0026amp;theme=e95e546bd9c3a8e3c27c730b\u0026amp;signature=1fa49d23e67840fa549c2dc9d143680725c0c3266334efdf66b5644ed01ed54f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Human Input - Dify Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Pause workflows to request human input\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dify-6c0370d8.mintlify.site/_mintlify/api/og/v2?division=Nodes\u0026amp;title=Human+Input\u0026amp;description=Pause+workflows+to+request+human+input\u0026amp;theme=e95e546bd9c3a8e3c27c730b\u0026amp;signature=1fa49d23e67840fa549c2dc9d143680725c0c3266334efdf66b5644ed01ed54f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dify-6c0370d8/tWYYD8GkT0MUJV0z/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dify Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0060FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/self-host/use-dify/nodes/human-input.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.dify.ai/zh/self-host/use-dify/nodes/human-input\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.dify.ai/ja/self-host/use-dify/nodes/human-input\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dify.ai/#organization\",\"name\":\"Dify Docs\",\"url\":\"https://docs.dify.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dify.ai#website\",\"name\":\"Dify Docs\",\"url\":\"https://docs.dify.ai\",\"publisher\":{\"@id\":\"https://docs.dify.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input#webpage\",\"url\":\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input\",\"name\":\"Human Input\",\"description\":\"Pause workflows to request human input\",\"dateModified\":\"2026-11-18T09:17:26.000Z\",\"isPartOf\":{\"@id\":\"https://docs.dify.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orchestrate\",\"item\":\"https://docs.dify.ai/en/self-host/use-dify/build/workflow-chatflow\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Workflow \u0026 Chatflow\",\"item\":\"https://docs.dify.ai/en/self-host/use-dify/build/workflow-chatflow\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Nodes\",\"item\":\"https://docs.dify.ai/en/self-host/use-dify/nodes/user-input\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Human Input\",\"item\":\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input#article\",\"headline\":\"Human Input\",\"name\":\"Human Input\",\"description\":\"Pause workflows to request human input\",\"url\":\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dify.ai/en/self-host/use-dify/nodes/human-input#webpage\"},\"dateModified\":\"2026-11-18T09:17:26.000Z\",\"publisher\":{\"@id\":\"https://docs.dify.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dify.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dify Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dify Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/self-host/use-dify/nodes/human-input.md","siteName":"Dify Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"products":[{"product":"Cloud","icon":"cloud","pages":[{"title":"Cloud","href":"/en/cloud/use-dify/getting-started/introduction"}]},{"product":"Self-Host","icon":"server","tabs":[{"tab":"Deploy","icon":"server","pages":[{"title":"Deploy","href":"/en/self-host/deploy/overview"}]},{"tab":"Use","icon":"book-open","pages":[{"title":"Use Dify","sidebarTitle":"Overview","mode":"frame","href":"/en/self-host/use-dify/getting-started/introduction"},{"group":"Orchestrate","icon":"hammer","pages":[{"group":"Workflow \u0026 Chatflow","expanded":false,"pages":[{"title":"Workflow \u0026 Chatflow","sidebarTitle":"Overview","href":"/en/self-host/use-dify/build/workflow-chatflow"},{"title":"Orchestration Logic","href":"/en/self-host/use-dify/build/orchestrate-node"},{"group":"Nodes","expanded":false,"pages":[{"group":"Start","root":{"title":"Start Node","href":"/en/self-host/use-dify/nodes/start"},"pages":[{"title":"User Input","href":"/en/self-host/use-dify/nodes/user-input"},{"group":"Trigger","root":{"title":"Trigger","sidebarTitle":"Overview","href":"/en/self-host/use-dify/nodes/trigger/overview"},"pages":[{"title":"Schedule Trigger","href":"/en/self-host/use-dify/nodes/trigger/schedule-trigger"},{"title":"Integration Trigger","href":"/en/self-host/use-dify/nodes/trigger/plugin-trigger"},{"title":"Webhook Trigger","href":"/en/self-host/use-dify/nodes/trigger/webhook-trigger"}]}]},{"title":"LLM","href":"/en/self-host/use-dify/nodes/llm"},{"title":"Knowledge Retrieval","href":"/en/self-host/use-dify/nodes/knowledge-retrieval"},{"title":"Answer","href":"/en/self-host/use-dify/nodes/answer"},{"title":"Output","href":"/en/self-host/use-dify/nodes/output"},{"title":"Agent","href":"/en/self-host/use-dify/nodes/agent"},{"title":"Question Classifier","href":"/en/self-host/use-dify/nodes/question-classifier"},{"title":"If-Else","description":"Add conditional logic and branching to workflows","href":"/en/self-host/use-dify/nodes/ifelse"},{"title":"Human Input","href":"/en/self-host/use-dify/nodes/human-input"},{"title":"Iteration","description":"Process arrays by applying workflows to each element","href":"/en/self-host/use-dify/nodes/iteration"},{"title":"Loop","href":"/en/self-host/use-dify/nodes/loop"},{"title":"Code","href":"/en/self-host/use-dify/nodes/code"},{"title":"Template","href":"/en/self-host/use-dify/nodes/template"},{"title":"Variable Aggregator","href":"/en/self-host/use-dify/nodes/variable-aggregator"},{"title":"Document Extractor","href":"/en/self-host/use-dify/nodes/doc-extractor"},{"title":"Variable Assigner","href":"/en/self-host/use-dify/nodes/variable-assigner"},{"title":"Parameter Extractor","href":"/en/self-host/use-dify/nodes/parameter-extractor"},{"title":"HTTP Request","href":"/en/self-host/use-dify/nodes/http-request"},{"title":"List Operator","href":"/en/self-host/use-dify/nodes/list-operator"},{"title":"Tool Node","sidebarTitle":"Tool","href":"/en/self-host/use-dify/nodes/tools"}]},{"title":"Hotkeys","href":"/en/self-host/use-dify/build/shortcut-key"},{"title":"Version Control","href":"/en/self-host/use-dify/build/version-control"},{"title":"Snippets","sidebarTitle":"Snippets","href":"/en/self-host/use-dify/build/snippet"},{"title":"Collaborate with Teammates","sidebarTitle":"Collaboration","href":"/en/self-host/use-dify/build/workflow-collaboration"},{"group":"Debug","expanded":false,"pages":[{"title":"Handle Errors","href":"/en/self-host/use-dify/build/predefined-error-handling-logic"},{"title":"Single Node","href":"/en/self-host/use-dify/debug/step-run"},{"title":"Variable Inspector","href":"/en/self-host/use-dify/debug/variable-inspect"},{"title":"Run History","href":"/en/self-host/use-dify/debug/history-and-logs"},{"title":"Error Types","href":"/en/self-host/use-dify/debug/error-type"}]}]},{"group":"Agent","tag":"New","expanded":false,"pages":[{"title":"Agent","sidebarTitle":"Overview","href":"/en/self-host/use-dify/build/new-agent/overview"},{"title":"Build an Agent","sidebarTitle":"Build","href":"/en/self-host/use-dify/build/new-agent/build"}]},{"title":"Skills","sidebarTitle":"Skills","href":"/en/self-host/use-dify/build/skills"},{"group":"Basic Apps","expanded":false,"pages":[{"title":"Agent","tag":"Legacy","href":"/en/self-host/use-dify/build/agent"},{"title":"Chatbot","sidebarTitle":"Chatbot","href":"/en/self-host/use-dify/build/chatbot"},{"title":"Text Generator","sidebarTitle":"Text Generator","href":"/en/self-host/use-dify/build/text-generator"}]},{"title":"App Toolkit","href":"/en/self-host/use-dify/build/additional-features"},{"title":"Go to Anything","href":"/en/self-host/use-dify/build/goto-anything"}]},{"group":"Publish","icon":"paper-plane","expanded":false,"pages":[{"title":"Overview","href":"/en/self-host/use-dify/publish/README"},{"group":"Web App","pages":[{"title":"Workflow Web Apps","href":"/en/self-host/use-dify/publish/webapp/workflow-webapp"},{"title":"Chat Web Apps","href":"/en/self-host/use-dify/publish/webapp/chatflow-webapp"},{"title":"Settings","href":"/en/self-host/use-dify/publish/webapp/web-app-settings"},{"title":"Embed Your Web App","sidebarTitle":"Embeds","href":"/en/self-host/use-dify/publish/webapp/embedding-in-websites"}]},{"title":"MCP Server","href":"/en/self-host/use-dify/publish/publish-mcp"},{"title":"Publish Apps to Marketplace","sidebarTitle":"Marketplace","href":"/en/self-host/use-dify/publish/publish-to-marketplace"}]},{"group":"Monitor","icon":"chart-line","expanded":false,"pages":[{"title":"Dashboard","href":"/en/self-host/use-dify/monitor/analysis"},{"title":"Logs","href":"/en/self-host/use-dify/monitor/logs"},{"title":"Annotation System","href":"/en/self-host/use-dify/monitor/annotation-reply"},{"group":"Integrations","pages":[{"title":"Integrate with LangSmith","sidebarTitle":"LangSmith","href":"/en/self-host/use-dify/monitor/integrations/integrate-langsmith"},{"title":"Integrate with Langfuse","sidebarTitle":"Langfuse","href":"/en/self-host/use-dify/monitor/integrations/integrate-langfuse"},{"title":"Integrate with Opik","sidebarTitle":"Opik","href":"/en/self-host/use-dify/monitor/integrations/integrate-opik"},{"title":"Integrate with W\u0026B Weave","sidebarTitle":"W\u0026B Weave","href":"/en/self-host/use-dify/monitor/integrations/integrate-weave"},{"title":"Integrate with Arize","sidebarTitle":"Arize","href":"/en/self-host/use-dify/monitor/integrations/integrate-arize"},{"title":"Integrate with Phoenix","sidebarTitle":"Phoenix","href":"/en/self-host/use-dify/monitor/integrations/integrate-phoenix"},{"title":"Integrate with Alibaba Cloud Monitor","sidebarTitle":"Alibaba Cloud Monitor","href":"/en/self-host/use-dify/monitor/integrations/integrate-aliyun"},{"title":"Integrate with OpenTelemetry","sidebarTitle":"OpenTelemetry","href":"/en/self-host/use-dify/monitor/integrations/integrate-opentelemetry"}]}]},{"group":"Knowledge","icon":"book","expanded":false,"pages":[{"title":"Knowledge","sidebarTitle":"Overview","href":"/en/self-host/use-dify/knowledge/readme"},{"group":"Create","pages":[{"group":"Ready-to-Use Knowledge Base","pages":[{"title":"Create a Ready-to-Use Knowledge Base","sidebarTitle":"Overview","href":"/en/self-host/use-dify/knowledge/create-knowledge/introduction"},{"group":"Import Data","pages":[{"title":"Upload Local Files","href":"/en/self-host/use-dify/knowledge/create-knowledge/import-text-data/readme"},{"title":"Sync Data from Notion","href":"/en/self-host/use-dify/knowledge/create-knowledge/import-text-data/sync-from-notion"},{"title":"Import Data from Website","href":"/en/self-host/use-dify/knowledge/create-knowledge/import-text-data/sync-from-website"}]},{"title":"Configure the Chunk Settings","href":"/en/self-host/use-dify/knowledge/create-knowledge/chunking-and-cleaning-text"},{"title":"Specify the Index Method and Retrieval Settings","href":"/en/self-host/use-dify/knowledge/create-knowledge/setting-indexing-methods"}]},{"group":"Custom Knowledge Base","pages":[{"title":"Build a Custom Knowledge Base","sidebarTitle":"Overview","href":"/en/self-host/use-dify/knowledge/knowledge-pipeline/readme"},{"title":"Step 1: Create Knowledge Pipeline","href":"/en/self-host/use-dify/knowledge/knowledge-pipeline/create-knowledge-pipeline"},{"title":"Step 2: Orchestrate Knowledge Pipeline","href":"/en/self-host/use-dify/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration"},{"title":"Step 3: Publish Knowledge Pipeline","href":"/en/self-host/use-dify/knowledge/knowledge-pipeline/publish-knowledge-pipeline"},{"title":"Step 4: Upload Files","href":"/en/self-host/use-dify/knowledge/knowledge-pipeline/upload-files"},{"title":"Step 5: Manage and Use Knowledge Base","href":"/en/self-host/use-dify/knowledge/knowledge-pipeline/manage-knowledge-base"},{"title":"Authorize Data Source","href":"/en/self-host/use-dify/knowledge/knowledge-pipeline/authorize-data-source"}]},{"group":"Connect to External Knowledge","pages":[{"title":"Connect to External Knowledge Base","sidebarTitle":"Overview","href":"/en/self-host/use-dify/knowledge/connect-external-knowledge-base"},{"title":"External Knowledge API","href":"/en/self-host/use-dify/knowledge/external-knowledge-api"}]}]},{"group":"Manage","pages":[{"title":"Manage Knowledge Content","sidebarTitle":"Documents \u0026 Chunks","href":"/en/self-host/use-dify/knowledge/manage-knowledge/maintain-knowledge-documents"},{"title":"Manage Document Metadata","sidebarTitle":"Metadata","href":"/en/self-host/use-dify/knowledge/metadata"},{"group":"File Security Scan","root":{"title":"Scan Uploaded Files for Malware","sidebarTitle":"File Security Scan","href":"/en/self-host/use-dify/knowledge/file-security-scan"},"pages":[{"title":"Custom Endpoint Scanner API","sidebarTitle":"Custom Endpoint Scanner","href":"/en/self-host/use-dify/knowledge/file-security-scan-custom-endpoint"}]},{"title":"Manage Knowledge Settings","sidebarTitle":"Settings","href":"/en/self-host/use-dify/knowledge/manage-knowledge/introduction"}]},{"title":"Test Knowledge Retrieval","sidebarTitle":"Test Retrieval","href":"/en/self-host/use-dify/knowledge/test-retrieval"},{"title":"Integrate Knowledge within Apps","sidebarTitle":"Integrate in Apps","href":"/en/self-host/use-dify/knowledge/integrate-knowledge-within-application"}]},{"group":"Integrations","icon":"plug","expanded":false,"pages":[{"title":"Integrations","sidebarTitle":"Overview","href":"/en/self-host/use-dify/workspace/plugins"},{"title":"Model Providers","href":"/en/self-host/use-dify/workspace/model-providers"},{"title":"Dify Tools","sidebarTitle":"Tools","href":"/en/self-host/use-dify/workspace/tools"},{"group":"Custom Endpoint","pages":[{"title":"Custom Endpoints","sidebarTitle":"Overview","href":"/en/self-host/use-dify/workspace/api-extension/api-extension"},{"title":"External Data Tool","href":"/en/self-host/use-dify/workspace/api-extension/external-data-tool-api-extension"},{"title":"Sensitive Content Moderation","href":"/en/self-host/use-dify/workspace/api-extension/moderation-api-extension"},{"title":"Deploy Custom Endpoints Using Cloudflare Workers","href":"/en/self-host/use-dify/workspace/api-extension/cloudflare-worker"}]}]},{"group":"Workspace","icon":"briefcase","expanded":false,"pages":[{"title":"Overview","href":"/en/self-host/use-dify/workspace/readme"},{"title":"Export and Import Apps","sidebarTitle":"Export and Import","href":"/en/self-host/use-dify/workspace/export-import-apps"},{"title":"Manage Members","href":"/en/self-host/use-dify/workspace/team-members-management"},{"title":"Contacts","href":"/en/self-host/use-dify/workspace/contacts"},{"group":"Channels","root":{"title":"Channels","sidebarTitle":"Overview","href":"/en/self-host/use-dify/workspace/channels/overview"},"pages":[{"title":"Slack","href":"/en/self-host/use-dify/workspace/channels/slack"},{"title":"Feishu / Lark","href":"/en/self-host/use-dify/workspace/channels/feishu-lark"},{"title":"Microsoft Teams","href":"/en/self-host/use-dify/workspace/channels/ms-teams"},{"title":"DingTalk","href":"/en/self-host/use-dify/workspace/channels/dingtalk"},{"title":"WeCom","href":"/en/self-host/use-dify/workspace/channels/wecom"}]},{"title":"Personal Settings","href":"/en/self-host/use-dify/workspace/personal-account-management"}]}]},{"tab":"Learn","icon":"graduation-cap","pages":[{"title":"Learn","href":"/en/learn/key-concepts"}]},{"tab":"Developer Resources","icon":"code","menu":[{"item":"API","icon":"code","pages":[{"title":"API","href":"/en/api-reference/guides/get-started"}]},{"item":"CLI","icon":"terminal","pages":[{"title":"CLI","href":"/en/cli/overview"}]},{"item":"Plugins","icon":"code-pull-request","pages":[{"title":"Plugins","href":"/en/develop-plugin/getting-started/getting-started-dify-plugin"}]}],"pages":[{"title":"Developer Resources","href":"/en/api-reference/guides/get-started"}]}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/self-host/use-dify/nodes/human-input"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/self-host/use-dify/nodes/human-input"}]}]},"basePath":"","title":"Human Input - Dify Docs","deploymentId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","buildId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-e4mMzlVI.js","DynamicMarkdown-oxDihwef.js","zoom-image-lightbox-DCI5xCVC.js","lightbox-handle-r17bVUz3.js"]}