ContentsTap to jump to a section+
- Dify 1.20.0 shipped on 18 November 2026; approval requests in AI workflows can go by email and Slack, Feishu/Lark, Microsoft Teams, DingTalk or WeCom, but not Zalo.
- Malware scanning for knowledge uploads is off by default; it needs FILE_SCAN_ENABLED and must also be enabled per knowledge base.
- Self-hosted servers must move settings out of shared.env, run six database migrations and review OPENAPI_ENABLED, now true by default.
Dify 1.20 brings human approval steps into messaging tools
LangGenius released Dify 1.20.0 on 18 November 2026. Dify is an open-source platform for building AI applications such as chatbots, document assistants and multi-step workflows that call language models.
The headline feature is New HITL, short for human-in-the-loop: a person's approval step inside an AI workflow. Approval requests can now go by email and through Slack, Feishu/Lark, Microsoft Teams, DingTalk or WeCom.
Businesses that self-host Dify and teams that monitor AI apps with Langfuse need to pay most attention. Dify 1.20's messaging list does not include Zalo, so Vietnamese teams that rely on Zalo still need email or another tool for approvals.
Dify 1.20.0 is a feature release, not an emergency patch, but the upgrade changes how Docker settings load and adds six database migrations. Anyone sending traces to Langfuse Cloud should upgrade soon, as Dify says Langfuse retired its legacy ingestion endpoint on 16 November 2026.
Read the upgrade guide, back up, move settings out of shared.env and rehearse on a copy before upgrading a server that serves users.
Approval requests reach approvers where they work
With New HITL, an AI workflow can pause where a person must decide, such as a refund, and send the approver a card with the details, a note field and Approve or Reject buttons. The cover and the image below are examples from Dify's official documentation using sample data.
Dify says the feature includes shared channels, centralised contacts, notification templates and verified approval forms. Existing workflows with Human Input nodes move to the new approach only when an administrator opts in.
By default a workflow can wait up to seven days for human input. Friday Works' assessment is that decisions involving money or customers deserve a backup approver and a shorter deadline, so a workflow does not hang for a week.

Malware scanning for knowledge uploads, if you switch it on
A knowledge base is where Dify stores documents for the AI to consult when answering. Dify 1.20 can scan uploaded files with an anti-malware tool before their content is extracted and indexed.
Scanning is off by default: administrators must set FILE_SCAN_ENABLED=true for the deployment and then enable it per knowledge base. When a scanner is unavailable or a file cannot be scanned, Dify's default policy is to block the file.
Friday Works' assessment is that businesses letting staff or customers upload documents to a chatbot should turn this on. A knowledge base fed from many sources is harder to police by hand than an internal folder.
Changes that can break the upgrade
Dify 1.20 no longer loads docker/envs/core-services/shared.env. Shared API, worker and Beat settings must move to api-worker.env before containers are recreated.
Upgrading from 1.19.0 adds six database migrations and two new queues, human_input_delivery and human_input_contact_sync, for Celery, Dify's background task system. The upgrade guide asks for both queues in the worker configuration so approval cards are delivered and contacts stay in sync.
OPENAPI_ENABLED now defaults to true, so /openapi/v1/* endpoints are on for personal access tokens. These tokens let scripts, CI jobs or agents call Dify on a user's behalf; businesses that do not need them should set the value back to false.
Checklist for self-hosted Dify servers
This list follows the Dify 1.20.0 upgrade guide. Businesses that want human approval steps in a chatbot or AI workflow can talk to Friday Works about designing the approval flow, access rights and notification channels, including channels Dify does not offer, such as Zalo.
- Back up the database, vector store, uploaded files and configuration files before upgrading.
- Move shared.env settings into api-worker.env, then run docker compose up -d to reload configuration.
- Add the human_input_delivery and human_input_contact_sync queues to workers; route the callback path if you use WEBHOOK mode.
- Set OPENAPI_ENABLED=false if you do not use personal access tokens.
- Enable FILE_SCAN_ENABLED and choose a scanner for knowledge bases that accept outside files.
- Upgrade soon if you send traces to Langfuse Cloud or Langfuse v4.
References
Sources used in this guide
We prioritise official guidance and primary technical sources. Visit each source for full context and the latest updates.
- Dify v1.20.0 release notes — New HITL, OpenTelemetry, malware scanning, personal access tokens, configuration changes and upgrade guide (18 November 2026)LangGenius (Dify) ↗︎
- Dify documentation merge for release 1.20.0 (commit df4a8b67, 18 November 2026) adding the HITL approval-card imagesLangGenius (dify-docs) ↗︎
- Cover: images/use-dify/workflow/human-input-im-card.png; inline: images/use-dify/workspace/channels-slack-request-card.png — official Dify documentation images added for 1.20.0, vendor sample data. Licence CC BY 4.0 (LangGenius). Framed by Friday Works on a neutral canvas (cover 1200×1200); content unchanged.LangGenius (dify-docs), CC BY 4.0 ↗︎
