mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #14114] feat: Want to add support for native dify instead of relying on custom scripts #55812
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Mi0uno on GitHub (May 21, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14114
Check Existing Issues
Problem Description
Open WebUI currently does not natively support Dify’s Chatflows and Agent APIs, which limits its ability to serve as a frontend for more intelligent, multi-turn, and tool-enhanced conversations. Without this integration, users cannot take advantage of Dify’s dynamic message routing, tool calling, memory, and plugin system from within the Open WebUI interface.
Desired Solution you'd like
Add a setting to enter Dify’s API_KEY and API_BASE_URL.
Allow users to select a Dify Agent from a list fetched via the /v1/agents API.
Enable chat messages to be sent to POST /v1/agents/message, and display the agent's full response including tool outputs, thoughts, or citations.
Let users connect to specific Dify Chatflows via POST /v1/chat-messages with proper App ID.
Add support for chat history, user input, variable inputs, and plugin tool responses as defined in Chatflow configurations.
Optionally support file uploads if the selected chatflow supports them.
Automatically switch interface modes between base LLM chat, agent chat, and chatflow chat.
Show agent or flow name, and optionally any real-time actions taken (tools, plugins used, etc.).
Use Open WebUI’s excellent UI to present multi-modal or tool-based replies in a clean way.
Alternatives Considered
Manually using Open WebUI’s custom API mode to route messages to Dify agents.
Downsides: Requires technical knowledge, lacks UI binding, no history/thread support.
Using Dify's own web UI.
Downsides: Limited customization, some users prefer the Open WebUI frontend for its local and extensible nature.
Additional Context
Dify Docs: https://docs.dify.ai
Relevant APIs:
POST /v1/agents/message
POST /v1/chat-messages
This feature would turn Open WebUI into a universal frontend for both open-source LLMs and enterprise-grade Dify deployments, enabling power users to orchestrate intelligent agents and dynamic chatflows in a familiar interface.
@tjbck commented on GitHub (May 21, 2025):
You should use Functions.
@Mi0uno commented on GitHub (May 21, 2025):
The use of functions is not particularly convenient