Last updated: November 30, 2026
Dify 1.20.0, released November 18, 2026, sends Human Input approvals to email, Slack, Teams and other chat tools, exports app and Agent traces to any OpenTelemetry collector, restores Langfuse tracing after its endpoint change, scans knowledge uploads for malware and adds personal access tokens for the Dify OpenAPI.
Contents
- What changed in Dify 1.20.0
- New HITL approvals in email and chat tools
- OpenTelemetry and Langfuse v4 tracing
- Malware scanning for knowledge uploads
- Personal access tokens and the OpenAPI
- How to upgrade a Docker Compose install
- New settings and defaults
- Plans and availability
- Dify 1.19.0 vs. 1.20.0
- Limitations to plan for
- Frequently asked questions
What changed in Dify 1.20.0
Dify is an open-source platform for building LLM apps, workflows and agents. Version 1.20.0 targets teams running Dify in production. It also upgrades the bundled plugin daemon to 0.6.15-local (release notes).
| Feature | What it does | How to turn it on |
|---|---|---|
| New HITL | Approval requests through email, Slack, Feishu/Lark, Microsoft Teams, DingTalk or WeCom | On by default (NEXT_PUBLIC_ENABLE_HITL_IM=true) |
| OpenTelemetry provider | Exports app and Agent traces to any OTLP/HTTP collector | Per app or Agent, under Monitoring |
| Langfuse v4 support | Works with the current Langfuse Cloud ingestion service | Upgrade; existing settings keep working |
| File Security Scan | Checks knowledge uploads for malware before indexing | FILE_SCAN_ENABLED=true, then per knowledge base |
| Personal access tokens | Scoped tokens for scripts, CI jobs and agents | Account page; OpenAPI now on by default |
| Live Agent tool activity | Shows Agent v2 tool calls in Chatflow as they run | NEXT_PUBLIC_ENABLE_AGENT_V2_IN_CHATFLOW=true |
Smaller additions include a tree picker for GitHub knowledge sources, scoped search in Goto Anything, longer knowledge base descriptions (400 characters by default) and document metadata in external knowledge retrieval.
New HITL approvals in email and chat tools
New HITL extends the Human Input node. Teams set up shared channels, a central contact list and notification templates once, then reuse them across workflows (release notes).
- Approvers can respond in supported chat cards or open a standalone form, verified by Dify login or email.
- Templates can pull workflow variables into the subject and body.
- Test sends and delivery records help find requests that never arrived.
- Legacy Human Input nodes are not migrated automatically; migration is opt-in per workflow.
A paused workflow can wait up to 604,800 seconds (7 days) by default, set by HUMAN_INPUT_GLOBAL_TIMEOUT_SECONDS. Chat callbacks use webhook mode only, so the API must be reachable from the internet.
OpenTelemetry and Langfuse v4 tracing
The new OpenTelemetry tracing provider sends every finished run of an app or Agent to your own backend. Workflow traces start with a workflow span and add one span per node, so failed steps can be found by filtering for error status (OpenTelemetry docs).
Each app or Agent sends to one tracing provider at a time; use a Collector to reach several backends. Traces include prompts, inputs and outputs, and Dify does not mask values that look like secrets.
Langfuse users have a specific reason to upgrade. The release notes state that Langfuse Cloud retired its legacy ingestion endpoint on November 16, 2026, and self-hosted Langfuse v4 rejects events sent to it (release notes). Version 1.20.0 supports Langfuse v4. For gateway-side controls, see our Langfuse AI Gateway guardrails guide.
Malware scanning for knowledge uploads
File Security Scan checks files uploaded to a knowledge base before they are indexed. A workspace owner or admin adds a scanner under Integrations → File Security Scan: Cloudmersive, Scanii, MetaDefender Cloud or a Custom Endpoint for an in-house service (file scan docs).
Scanning only covers files uploaded after it is turned on. Content from Notion, website crawls, online documents and online drives is not scanned, and neither are files sent to apps, workflows or chats. Infected files are always blocked, and both fallback policies default to blocking.
Personal access tokens and the OpenAPI
Personal access tokens let scripts, CI jobs and coding agents act as you through difyctl without a Console session. Any member can create one on the Account page (personal settings docs).
Each token has an expiration, a list of apps it can run and the workspaces it can manage. The expiration cannot be changed later, but name and scopes can. A token never exceeds your role. Deleting a token stops it at once. In 1.20.0, OPENAPI_ENABLED now defaults to true.
How to upgrade a Docker Compose install
These steps follow the release notes for a Docker Compose deployment (upgrade guide):
- Back up the database, vector store, uploaded files, plugin daemon storage, secrets and environment files.
- Move settings from
envs/core-services/shared.env, which is no longer loaded, intoapi-worker.env. - Create
urls.envfromurls.defaultsand set your public URLs there. - Run
docker compose stop -t -1, thengit fetch --tagsandgit checkout 1.20.0. - Run
docker compose pullanddocker compose up -d; a plain restart does not reload environment files. - Keep
MIGRATION_ENABLED=trueso the six new database revisions apply. - Add
/callbacks/human-input/v2/im/to any custom reverse proxy and keep both new Celery queues consumed.
Keep SECRET_KEY identical across API replicas, since personal access tokens depend on it. Source installs need Python 3.13, Node.js 24.22.3 or later in the 24.x line and pnpm 12.18.0.
New settings and defaults
| Setting | Default | Purpose |
|---|---|---|
OPENAPI_ENABLED |
true (was false) |
Enables /openapi/v1/* for tokens and difyctl |
FILE_SCAN_REQUEST_TIMEOUT_SECONDS |
300 | Timeout for one scanner request |
FILE_SCAN_MAX_ATTEMPTS |
3 | Retries when a scanner is unreachable |
FILE_SCAN_CLEAN_VERDICT_TTL_HOURS |
24 | Reuse window for a clean verdict |
DATASET_DESCRIPTION_MAX_LENGTH |
400 | Knowledge base description limit |
Plans and availability
Dify Cloud pricing, with annual billing, lists Sandbox free with 200 message credits, Professional at $590 per workspace per year with 5,000 credits a month and Team at $1,590 per workspace per year with 10,000 credits a month (pricing). The Community Edition is open source and self-hosted.
The documentation pages cited here sit in the self-hosted section, and the release notes do not say when each feature reaches Dify Cloud.
Dify 1.19.0 vs. 1.20.0
| Area | Dify 1.19.0 | Dify 1.20.0 |
|---|---|---|
| Approvals | New HITL chat delivery off by default | On by default, with contacts and templates |
| Tracing | Vendor-specific providers | Adds generic OpenTelemetry and Langfuse v4 |
| Knowledge uploads | No malware scanning | Optional scanning with fallback policies |
| API automation | OpenAPI off by default | Personal access tokens, OpenAPI on |
If you are comparing workflow platforms, see our n8n 2.48 guide, the LangGraph CLI 0.4.44 guide and the CrewAI 1.15.46 guide.
Limitations to plan for
- OpenTelemetry export uses OTLP/HTTP with protobuf only; gRPC is not supported (release notes).
- Live Agent tool activity needs streaming output and is not replayed from chat history.
- Under default proxy rules, a public
https://collector must listen on port 443. - OpenShell sandbox users lose shared-volume Home Snapshots and must upgrade the gateway to 0.1.3 or later.
Frequently asked questions
When was Dify 1.20.0 released?
Dify 1.20.0 was published on GitHub on November 18, 2026, as a feature release with the 1.19.0 to 1.20.0 changelog.
Does Dify support OpenTelemetry tracing?
Yes. From version 1.20.0, each app or Agent can use the OpenTelemetry tracing provider to send traces to a compatible collector. Dify sends OTLP over HTTP with protobuf; gRPC is not supported.
Why should Langfuse users upgrade to Dify 1.20.0?
Langfuse Cloud retired its legacy ingestion endpoint on November 16, 2026. Dify 1.20.0 supports Langfuse v4 and the current ingestion service, so traces keep arriving.
Which malware scanners work with Dify?
Dify 1.20.0 supports Cloudmersive, Scanii, OPSWAT MetaDefender Cloud and a Custom Endpoint. Scanning is off by default, requires FILE_SCAN_ENABLED=true and must also be turned on in each knowledge base.
How much does Dify cost?
The pricing page lists a free Sandbox plan with 200 message credits, Professional at $590 per workspace per year and Team at $1,590 per workspace per year with annual billing. The Community Edition is open source and self-hosted.
Sources
- Dify 1.20.0 release notes (GitHub)
- Integrate with OpenTelemetry (Dify docs)
- Scan Uploaded Files for Malware (Dify docs)
- Personal Settings and personal access tokens (Dify docs)
- Dify pricing
Featured image: Dify logo, official asset from the Dify Brand Guidelines design kit, used under the Dify Brand Usage Terms for editorial coverage. Dify is a trademark of LangGenius, Inc. FreeAnswers is not affiliated with or endorsed by Dify.