Share some useful Dify workflows, suitable for both personal use and learning. Please use Dify version 0.10.0 or above to import. Features like parallel tasks, session variables, forms, and echart rendering are now supported.
All Workflows are basically free to use. More Workflows are being collected and organized...
Here are some common questions from the group, updated periodically. The content is concise but hopefully helpful.
How to install third-party libraries like pandas in sandbox?
A: Open /docker/volumes/sandbox/dependencies/python-requirements.txt, add the required dependencies, and restart sandbox.How to fix errors when running numpy>2.0, matplotlib, scikit-learn code in sandbox?
A: Try https://github.com/svcvit/dify-sandbox-py, a simplified sandbox I developed that removes permissions restrictions.How to handle string data transmission limit between nodes?
A: Modify these lines in .env: CODE_MAX_STRING_LENGTH: 1000000 TEMPLATE_TRANSFORM_MAX_LENGTH: 1000000 Then restart the containerCan I display images in the chat window using image URLs? I tried markdown but nothing showed up.
A: Your approach is correct, but the image isn't showing because it doesn't support cross-origin requests
Large file upload to knowledge base fails even after config modification. Here's the upload file configuration:
A: Nginx settings also need to be modified; search for 'nginx' in .env file
Knowledge base perpetual queuing issue
A: Modify this line in .env: LOG_FILE=/app/logs/server.log; then restart the containerIs DuckDuckGo translation unavailable now?
A: I figured it out - my server has a proxy, but Dify running in Docker doesn'tHow to change Dify's official example applications from English to Chinese?
A: Click on your profile picture in the top right, go to Settings, Language, switch to another language first, then switch to ChineseWhat to do if I forgot the admin password?
A: Run this command: docker exec -it docker-api-1 flask reset-passwordIf you want to experience OpenAI or Anthropic models, you can use CoffBox services. For configuration instructions, refer to How to Use CoffBox Service in Dify
All DSLs are in workflow mode, which can be conveniently published as tools and embedded in ChatBot processes. Workflows include basic inputs, conditional judgments, variable aggregators, outputs, and other components.
You can refer to the description of each yml below to find the Workflow you need, then locate the corresponding file in the DSL folder, copy the file's URL, and import it into your Dify account.
File | Description | Source |
---|---|---|
matplotlib.yml |
Use matplotlib for plotting, output images as base64, and render through replies. Note: Official sandbox has complex permissions, matplotlib won't work even after installation. Please use dify-sandbox-py | WeChat @svcvit |
jieba.yml |
Jieba word segmentation example, please use dify-sandbox-py | WeChat @svcvit |
File | Description | Source |
---|---|---|
json-repair.yml |
Fix non-standard JSON output from large models (missing quotes, extra brackets) into parseable JSON | WeChat @svcvit |
File | Description | Source |
---|---|---|
json_translate.yml |
Parse content for translation in JSON, use iterator for translation, and combine into new JSON while maintaining original structure | WeChat @svcvit |
File | Description | Source |
---|---|---|
Form表单聊天Demo.yml |
Access to models after logging in through dialog box | WeChat @svcvit |
File | Description | Source |
---|---|---|
中译英.yml |
Using Baoyu's Prompt, literal translation -> reflection -> free translation, to convert Chinese into high-quality English. | N/A |
DuckDuckGo 翻译+LLM 二次翻译.yml |
Similar to three-step translation, but replaces the first literal translation with traditional translation engine, saving tokens, improving translation efficiency while maintaining quality. | N/A |
translation_workflow.yml |
Using Agentic Workflow by Andrew Ng, input 'input language', 'target language', 'country', 'original text' to get more detailed translation results | translation-agent |
宝玉的英译中优化版.yml |
Baoyu's English-to-Chinese translation optimization version, mainly optimizing prompts and XML tags | 翻译 GPT 的提示词更新和优化 |
全书翻译.yml |
DIFY official example, split long text, translate in iterator, and combine into new JSON | DIFY Official Exploration |
File | Description | Source |
---|---|---|
SEO Slug Generator.yml |
Generate URL slugs for blog posts, reference from Baoyu's X | |
Document_chat_template.yml |
A template for knowledge base chat | Winson-030 |
搜索大师.yml |
Search using SearXNG, then retrieve search content using jina | Winson-030 |
标题党创作.yml |
A blockbuster web writer | ghostviper |
文章仿写-单图_多图自动搭配.yml |
Article imitation | ghostviper |
Text to Card Iteration.yml |
Automatically generate small red book cards. | 🔥Dify Workflow-Agent Design Exchange @Arthur |
Dify 运营一条龙.yml |
One-stop operation for small red book, Douyin, Weibo, and Bilibili. (2024/11/21 updated, main process no longer works due to image generation service issues and resolution limitations, resulting in incorrect image generation) | Dify One-Click Generation of Multi-Size Cover and Full-Platform Text |
Jina Reader Jinja.yml |
A Q&A workflow based on TavilySearch and Jina | 🔥Dify Workflow-Agent Design Exchange Group Sharing |
llm2o1.cn.yml |
Task decomposition -> step extraction -> iterative step execution -> summary -> output result | @okooo5km |
dify_course_demo.yml |
Automatically generate a full course. | dify_course |
simple-kimi.yml |
Simple self-made Kimi | aws-samples |
Claude3 Code Translation.yml |
Code translation workflow between different programming languages | aws-samples |
File | Description | Source |
---|---|---|
根据用户的意图进行回复.yml |
Determine user intent, choose different workflow paths, and respond accordingly | N/A |
mem0ai |
A chatbot with memory | dify-plugin-mem0ai |
记忆测试.yml |
Add short-term memory, CoT thought chain example, automatic Q&A chatbot can also actively trigger, choose the best response based on context | WeChat svcvit |
File | Description | Source |
---|---|---|
Python Coding Prompt.yml |
Generate Python code through chat dialogue | Sonnet 3.5 for Coding 😍 - System Prompt |
Register for a Dify account, add models.
Copy the Workflow URL, import the DSL file, publish your own Workflow, and use it.