logo
8
3
Login
svcvit<svcvit@gmail.com>
update

Awesome-Dify-Workflow

English | 中文

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...

Frequently Asked Questions

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 container
Can I display images in the chat window using image URLs? I tried markdown but nothing showed up. Example Image

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: Example Image

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 container
Is DuckDuckGo translation unavailable now? A: I figured it out - my server has a proxy, but Dify running in Docker doesn't
How 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 Chinese
What to do if I forgot the admin password? A: Run this command: docker exec -it docker-api-1 flask reset-password

Models

If 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

Reference Screenshots

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.

DSL Directory

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.

2024-11-22 Updates

FileDescriptionSource
matplotlib.ymlUse 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.ymlJieba word segmentation example, please use dify-sandbox-py WeChat @svcvit

2024-11-20 Updates

FileDescriptionSource
json-repair.ymlFix non-standard JSON output from large models (missing quotes, extra brackets) into parseable JSON WeChat @svcvit

2024-11-15 Updates

FileDescriptionSource
json_translate.ymlParse content for translation in JSON, use iterator for translation, and combine into new JSON while maintaining original structure WeChat @svcvit

2024-11-14 Updates

FileDescriptionSource
腾讯云SubtitleInfo.ymlA code-related example for Tencent Cloud authorization information encryption. Reference for using code nodes. WeChat Group
chart_demo.ymlRender charts through reply content. You can also combine with SQL queries to generate required content WeChat @svcvit

2024-11-12 Updates

FileDescriptionSource
Form表单聊天Demo.ymlAccess to models after logging in through dialog box WeChat @svcvit

Translation

FileDescriptionSource
中译英.ymlUsing Baoyu's Prompt, literal translation -> reflection -> free translation, to convert Chinese into high-quality English. N/A
DuckDuckGo 翻译+LLM 二次翻译.ymlSimilar 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.ymlUsing Agentic Workflow by Andrew Ng, input 'input language', 'target language', 'country', 'original text' to get more detailed translation results translation-agent
宝玉的英译中优化版.ymlBaoyu's English-to-Chinese translation optimization version, mainly optimizing prompts and XML tags 翻译 GPT 的提示词更新和优化
全书翻译.ymlDIFY official example, split long text, translate in iterator, and combine into new JSON DIFY Official Exploration

Tools

FileDescriptionSource
SEO Slug Generator.ymlGenerate URL slugs for blog posts, reference from Baoyu's X twitter
Document_chat_template.ymlA template for knowledge base chat Winson-030
搜索大师.ymlSearch using SearXNG, then retrieve search content using jina Winson-030
标题党创作.ymlA blockbuster web writer ghostviper
文章仿写-单图_多图自动搭配.ymlArticle imitation ghostviper
Text to Card Iteration.ymlAutomatically generate small red book cards.🔥Dify Workflow-Agent Design Exchange @Arthur
Dify 运营一条龙.ymlOne-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.ymlA Q&A workflow based on TavilySearch and Jina 🔥Dify Workflow-Agent Design Exchange Group Sharing
llm2o1.cn.ymlTask decomposition -> step extraction -> iterative step execution -> summary -> output result @okooo5km
dify_course_demo.ymlAutomatically generate a full course. dify_course
simple-kimi.ymlSimple self-made Kimi aws-samples
Claude3 Code Translation.ymlCode translation workflow between different programming languages aws-samples

Chatbots

FileDescriptionSource
根据用户的意图进行回复.ymlDetermine user intent, choose different workflow paths, and respond accordingly N/A
mem0aiA chatbot with memory dify-plugin-mem0ai
记忆测试.ymlAdd short-term memory, CoT thought chain example, automatic Q&A chatbot can also actively trigger, choose the best response based on context WeChat svcvit

Code

FileDescriptionSource
Python Coding Prompt.ymlGenerate Python code through chat dialogueSonnet 3.5 for Coding 😍 - System Prompt

Usage

Register for a Dify account, add models.

snap

snap

Copy the Workflow URL, import the DSL file, publish your own Workflow, and use it.

snap

snap

snap