UPDATEdify 1.20.0
Dify 1.20.0 connects approvals, tracing, and knowledge intake to existing workflows
This release sends human approvals through email and team messaging apps, exports app and Agent traces to any compatible OpenTelemetry collector, and scans knowledge files for malware before extraction and indexing. Scripts and personal agents can call the OpenAPI with scoped personal access tokens. Upgraders must also handle the retired shared.env file, HITL callback routing, and worker queues.
What changed in this release
38 checkpoints in 7 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
Approvals and collaboration
- New HITL is enabled by default and delivers approval requests through email and major team messaging apps.
- Shared contacts can sync IM directories, and workflows can reuse contacts or one-time and dynamic email recipients.
- Approvals can happen in supported IM cards or standalone forms with Dify login or email verification.
- Notification templates can include workflow context, while test notifications and delivery records help troubleshoot missing requests.
- Legacy Human Input nodes remain on an opt-in migration path rather than being taken over automatically by New HITL.
Execution visibility and troubleshooting
- The OpenTelemetry provider exports app and Agent traces to any compatible collector.
- Traces cover workflow steps, model calls, and tool activity so failures can be investigated in an existing monitoring platform.
- Langfuse tracing supports Langfuse v4 and the current Cloud ingestion service.
- Agent v2 in Chatflow can show live tool cards in streaming chats and expand request and response details.
- Blocking workflows release database connections before execution and return preparation failures immediately, avoiding pool exhaustion and hanging requests.
Knowledge bases and files
- Knowledge files can be scanned for malware before extraction and indexing under per-knowledge-base policies.
- Scanning supports Cloudmersive, Scanii, OPSWAT MetaDefender Cloud, and a Custom Endpoint.
- Files are blocked by default when scanning is unavailable or fails, and the document list shows the reason.
- GitHub knowledge sources can be selected from a tree of repositories, directories, issues, and pull requests.
- The knowledge-base description limit increases to 400 characters.
- External knowledge retrieval returns document metadata alongside content.
- Knowledge documents show specific failure reasons and processing stages, and Weaviate keyword and hybrid retrieval return BM25 scores again.
APIs and automation
- Personal access tokens call the Dify OpenAPI on a user's behalf with workspace and resource scopes.
- Tokens can have an expiration, updated scope, and revocation.
- OPENAPI_ENABLED now defaults to true and can be explicitly disabled when unnecessary.
- Custom API tools resolve OpenAPI server variables, percent-encode path parameters, and support OpenAPI 3.1 nullable unions.
Editing and navigation
- Goto Anything can narrow search results with selectable scopes.
- Search and navigation use drawers on smaller screens to preserve space for the current page.
- Direct links can open Studio's blank-app or template creation flows.
- Dialogs adapt to narrow viewports and maintain consistent lifecycles across accounts, knowledge, apps, Skills, and workflows.
Stability and security
- Inline SVG previews are sandboxed, and expired file links verify the original signature before renewal.
- Public streams redact node-retry details, while OAuth callback reuse, member-role permissions, and vector deletion scope are tightened.
- Runtime images update the compression dependency and Node.js security release, and the plugin daemon moves to 0.6.15-local.
- The Redis BRPOP busy loop and overlapping plugin upgrade checks are fixed, with upgrade checks capped at 20 across workers.
- Chatflow streams close properly after direct replies and reset the reconnect budget when a stream resumes.
- Agent execution preserves parallel calls to the same plugin tool, passes declared app inputs, and delivers uploaded images to vision models.
Upgrade and deployment
- shared.env is no longer loaded; shared API, worker, and Beat settings should move to api-worker.env.
- Public URLs can be managed through urls.defaults and urls.env, while root docker/.env retains highest precedence.
- New HITL requires forwarding the IM callback route and custom workers to consume two new Celery queues.
- Upgrading from 1.19.0 adds six migration revisions, and Evaluation migrations also apply to Community Edition.
- OpenShell deployments must upgrade the gateway and SDK together and stop relying on shared-volume Home Snapshots.
- Source deployments use Python 3.13, Node.js 24.22.3 or later in the 24.x line, and pnpm 12.18.0.
- Run docker compose up -d after changing environment files; a plain restart does not reload them.
On this page
ContextThe upgrade changes configuration before it changes daily work
Dify 1.20.0 connects approvals, troubleshooting, and knowledge intake to existing workflows instead of adding an isolated page. Approvers work in email or messaging apps, traces go to existing monitoring, and knowledge files are scanned before indexing. Self-hosted teams must start with configuration because shared.env is no longer loaded.
From 1.19.0, move shared settings to api-worker.env and consolidate public URLs in urls.env. For New HITL, add the callback route and two Celery queues before deciding on scanning, legacy-node migration, or personal access tokens.
Upgrade checks must go beyond whether containers start. Environment files decide whether API and workers share settings, callback routing carries approval cards back, and queues handle delivery and contact sync. A missed step can look like a missing approval or trace rather than a single feature failure.
This dify changelog covers seven groups: approvals, visibility, knowledge, APIs, editing, stability, and upgrades. The figure below counts items in each. The next sections expand five paths, then compare peers and 1.19.0.
Approval requests can now reach people in the channels they already use
- New HITL defaults on with email/IM approvals, shared contacts, templates, and forms.
- Legacy workflows opt in; set TRIGGER_URL, IM callback routing, and two Celery queues.
- Only WEBHOOK works and needs a public API; disabling it neither rolls back data nor halts running work, so validate recovery separately.
One execution can now feed monitoring and show tool activity in chat
- OpenTelemetry exports app/Agent steps, model calls, and tools via OTLP/HTTP protobuf.
- Langfuse v4 and current Cloud ingestion work; those deployments should upgrade to keep traces.
- Agent v2 tool cards appear only in streaming Chatflows, not buffered output or replay; the capability needs its own feature flag.
Knowledge files now face a malware scan before extraction and indexing
- After FILE_SCAN_ENABLED, admins configure Cloudmersive, Scanii, OPSWAT, or a custom endpoint per KB.
- Scans run before extraction/indexing for classic KBs, RAG Pipeline local files, and Agent uploads.
- Unavailable or failed scans block by default; tune fallback, timeout, retry, and clean-verdict reuse.
Scripts no longer need to borrow a Console session to call the OpenAPI
- Personal tokens call the OpenAPI with workspace/resource scopes, optional expiry, and revocation.
- OPENAPI_ENABLED defaults on for scripts, CI, and personal agents; disable it if unwanted.
- Tokens need one SECRET_KEY across API replicas; record scope, expiry, and revocation owner.
GitHub knowledge sources add a tree for selecting exact pages to import
- New or existing KBs can select repos, directories, issues, and PRs from an expandable GitHub tree.
- Knowledge-base descriptions now allow 400 characters for scope, conventions, and exclusions.
- External retrieval returns document metadata for filtering, citation, or audit, not plain text alone.
Comparable self-hosted tools put the same actions behind different entry points
Flowise 3.1.4 and Langflow 1.13.4 are the comparison versions confirmed by their official release pages. Feature descriptions come from the vendors' official current documentation, accessed 2026-11-27, and describe the documented present rather than reconstructing the release date. The tools are not equivalent to Dify in nodes, components, or events. The table compares where readers do the same task and where records or credentials live; cell counts are not a ranking.
Read the knowledge-file row separately: Flowise sends uploads to a vector store or text loader, Langflow uses central file management before a source component, and Dify adds a pre-index scan. The control points differ.
Approval mechanisms also differ. Flowise and Langflow focus on pausing a run at a node or checkpoint, while Dify also carries requests to external channels, verifies approver identity, and keeps delivery records. The table shows the extra dependencies a handoff must maintain.
| Update | Flowise 3.1.4 (version from release page; features from current official docs) | Langflow 1.13.4 (version from release page; features from current official docs) | Dify 1.20.0 |
|---|---|---|---|
| Human approval | Human Input node pauses runs; Agent tools can require approval. | Checkpoint resumes after Human Input or Agent-tool approval. | Email/IM cards or forms, with shared contacts, templates, and delivery records. |
| Execution visibility | Agentflow V2 tracing plus analytics; streaming includes usedTools. | Native component/tool spans; Playground prints Agent tools and output. | OTel app/Agent traces; live Agent v2 tool cards in streaming chat. |
| Knowledge-file intake | Chat uploads go to a vector store or through File Loader into text. | Files enter local/S3 management, then a source component feeds Knowledge Base. | Per-KB malware scan before extraction/indexing, blocked on default failure. |
| API automation credentials | Chatflow API key checked in the Authorization header. | API key inherits creator permissions and can be revoked. | Personal token scopes workspaces/resources, with expiry and revocation. |
| GitHub knowledge source | GitHub loader takes repo, branch, recursion, and ignore paths. | Langflow's current docs do not describe a GitHub knowledge-source selector; they only describe Read File or Data Operations source components that feed a DataFrame to Knowledge Base. | Pick exact pages from a GitHub tree of repos, directories, issues, and PRs. |
Vertical comparison: Dify 1.20.0 extends the tracing, approval, and automation entry points from 1.19.0
Stay within the same release channel and focus on steps readers change. Dify 1.19.0 brought persisted Workflow Tool steps into external traces; 1.20.0 broadens destinations and adds approval delivery, knowledge scanning, and personal tokens.
Separate existing capabilities from new entry points. The old trace hierarchy is not new, New HITL does not auto-take over legacy nodes, and personal tokens add an OpenAPI path beside 1.19.0 account-based difyctl.
This table is for upgrade planning, not a full changelog. Teams using 1.19.0 nested traces should confirm parent-child hierarchy survives the new provider; teams migrating legacy approvals should keep old delivery records and callbacks from mixing with new settings.
| Feature | 1.19.0 | 1.20.0 |
|---|---|---|
| Trace destination | Shared providers for Langfuse, LangSmith, Opik, and others. | OTel provider for any collector; Langfuse v4 and current Cloud ingestion. |
| Trace content | Persisted steps inside Workflow Tools, with nested and repeated-call hierarchy. | Workflow steps, model calls, and tool activity for app and Agent runs. |
| Human approval | Existing Human Input nodes. | New HITL on by default; email/IM, contacts, forms; legacy migration opt-in. |
| OpenAPI automation | difyctl uses account identity for workspace Skills. | Scoped personal tokens for OpenAPI; OPENAPI_ENABLED defaults on. |
| Docker configuration | shared.env supported and read before api-worker.env. | shared.env retired; shared settings move to api-worker.env; urls.env manages URLs. |
Release analysisValidate one low-risk flow before expanding enablement
Station view, not independently tested: four groups feel this most—teams approving in Slack, Feishu, or Teams; those using Langfuse Cloud or self-hosted v4; instances accepting external uploads; and scripts or personal agents using the OpenAPI. If none apply, finish configuration migration and wait for a business need.
In the horizontal comparison, Flowise's official current docs place approvals and visibility in Human Input nodes, tracing, and usedTools events; Langflow's official current docs use checkpoints, native Traces, and Playground. Their release pages confirm the 3.1.4 and 1.13.4 version numbers. Dify makes delivery, export, scanning, and scoped tokens platform entry points. Choose by fit, not component count.
On execution visibility, n8n's 2.49.7 release page confirms the version, while its official current docs say OpenTelemetry emits workflow.execute and nested node.execute spans; the feature remains in Preview, and n8n warns against relying on it in production workflows. LangGraph checkpointers persist graph state for resume and human-in-the-loop, while Dify exports app/Agent workflow, model, and tool traces. They serve runtime telemetry, state persistence, and application tracing respectively, so they are not substitutes.
Station view, not independently tested: validate one low-risk approval flow and one external-upload knowledge base before migrating other legacy Human Input nodes. Check callbacks, queues, delivery records, and default scan blocking, because New HITL relies on Webhook callbacks and async queues.
Station view, not independently tested: issue personal tokens with minimum workspace/resource scope and an expiry, and confirm a test trace reaches your collector before switching alerts. This keeps credential handoff and monitoring cutover separately reversible.
AIGenLab views
Not independently testedAccept one low-risk approval flow and one knowledge base that allows external uploads first, then migrate the remaining Human Input nodes.
New HITL is on by default and depends on webhook callbacks and an async queue; when scanning is unavailable, files are blocked by default.
For automation, issue personal access tokens from the smallest workspace and scope with an expiry date, and confirm test traces reach the team's own collector before switching alerting.
Personal access tokens support scopes, expiry and revocation, and the OpenTelemetry provider can point at an existing collector.
Official sources and scope
- Dify 1.20.0 release notes This article's version, change list, impact, limits, upgrade and database migration details
- Dify 1.19.0 release notes The earlier state of nested tracing, Human Input, difyctl and shared.env in the vertical comparison
- Flowise 3.1.4 release Confirms the Flowise 3.1.4 version number only; it does not show which release a comparison row belongs to
- Flowise Human In The Loop Flowise's Human Input node and the manual approval paths for agent tools
- Flowise Streaming Visibility of usedTools in Flowise streaming events
- Flowise Analytic Flowise Agentflow V2 step tracing and analytics platform integration
- Flowise Uploads Where Flowise chat uploads enter the vector store or the File Loader
- Flowise chatflow-level authorization How Flowise assigns API keys per chatflow
- Flowise GitHub document loader Repository, branch, recursion and path filters for the Flowise GitHub loader
- Langflow 1.13.4 release Confirms the Langflow 1.13.4 version number only; it does not show which release a comparison row belongs to
- Langflow Human-in-the-Loop Checkpoint-style human approval in Langflow, and approval for agent tools
- Langflow Traces Native components, tools and LangChain spans in Langflow
- Langflow Manage files Langflow's single entry point for local or S3 file management
- Langflow Knowledge Base How the Langflow source component supplies a DataFrame to the Knowledge Base
- Langflow Playground Langflow Playground showing agent tools and output
- Langflow API keys and authentication Creating, inheriting permissions for, and revoking Langflow API keys
- n8n 2.49.7 release Confirms the n8n 2.49.7 version number only; it does not show which release the OpenTelemetry work belongs to
- n8n Trace executions with OpenTelemetry workflow.execute, nested node.execute and the Preview boundary in n8n's current documentation
- LangGraph Persistence What the LangGraph checkpointer saves, restores and enables for human-in-the-loop
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.