Skip to content

Files

Latest commit

Nov 25, 2024
4ec0c56 · Nov 25, 2024

History

History
163 lines (116 loc) · 10.2 KB

README_EN.md

File metadata and controls

163 lines (116 loc) · 10.2 KB

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

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

2024-11-20 Updates

File Description Source
json-repair.yml Fix non-standard JSON output from large models (missing quotes, extra brackets) into parseable JSON WeChat @svcvit

2024-11-15 Updates

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

2024-11-14 Updates

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

2024-11-12 Updates

File Description Source
Form表单聊天Demo.yml Access to models after logging in through dialog box WeChat @svcvit

Translation

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

Tools

File Description Source
SEO Slug Generator.yml Generate URL slugs for blog posts, reference from Baoyu's X twitter
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

Chatbots

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

Code

File Description Source
Python Coding Prompt.yml Generate Python code through chat dialogue Sonnet 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