🎯 A collection of real-world Dify workflow DSL examples and use cases
Dify Use Case Playground is a personal open-source repository that collects practical Dify workflow DSL examples and use cases. This repository serves as a learning resource and reference for building production-ready workflows using Dify's workflow engine.
This repository contains:
- 📋 Workflow DSL Files (
.yml) - Complete workflow definitions ready to import into Dify - 📖 Documentation (
README.md) - Detailed explanations for each use case - 🎨 Best Practices - Real-world patterns and solutions
- ✅ Production-ready workflows
- ✅ Comprehensive documentation
- ✅ Easy to import and customize
- ✅ Real-world use cases
- ✅ Best practices and patterns
- 🔒 Security: Automated secret scanning via CI/CD
- Daily News for Slack Channel - Automated daily news delivery to Slack channels using scheduled triggers
- Slack Trigger News Researcher - Intelligent Slack bot with question classification and news research capabilities
-
Browse Use Cases
- Explore the
usecases/directory - Each use case has its own folder with a
workflow.ymlandREADME.md
- Explore the
-
Import a Workflow
- Open Dify console
- Import the
.ymlfile from the use case folder - Follow the setup instructions in the use case README
-
Customize
- Modify the workflow according to your needs
- Update configuration parameters
- Test and deploy
.
├── README.md # This file (English)
├── README.zh-Hans.md # Simplified Chinese
├── README.zh-Hant.md # Traditional Chinese
├── README.ja.md # Japanese
├── LICENSE # Apache 2.0 License
├── .gitignore # Git ignore rules
├── .gitleaks.toml # Secret scanning configuration
├── .github/
│ └── workflows/
│ ├── secret-scanning.yml # CI/CD secret scanning workflow
│ └── code-language-check.yml # CI/CD language check workflow
└── usecases/ # Use case collection
├── daily-news-slack/
│ ├── workflow.yml # Workflow DSL file
│ └── README.md # Use case documentation (English)
└── slack-news-researcher/
├── workflow.yml # Workflow DSL file
└── README.md # Use case documentation (English)
- Dify platform access
- Required plugins and API keys (see individual use case READMEs)
🔒 This repository uses automated secret scanning to prevent accidental commits of sensitive information:
- CI/CD Integration: GitHub Actions workflow automatically scans for secrets on every push and pull request
- Tools Used:
- Gitleaks - Comprehensive secret detection
- Custom pattern matching for common sensitive data
- What's Checked: API keys, tokens, passwords, webhook URLs, AWS keys, Slack tokens, and more
Important: Never commit sensitive information like API keys, tokens, or credentials. Use environment variables or secure configuration management instead.
🌐 This project maintains an international positioning.
- ✅ Code files may contain Chinese or other languages - Encouraged for internationalization (i18n) support
- ✅ i18n fields (
zh_Hans,zh_Hant,ja_JP,pt_BR, etc.) in Dify workflow files are fully supported - ✅ Git commit messages must be in English - To maintain international project positioning
- ✅ Pull request titles and descriptions must be in English - For global collaboration
- 📖 Documentation files are available in multiple languages (English, Simplified Chinese, Traditional Chinese, Japanese)
Note: CI checks enforce English for git commit messages and PR content, but allow any language in code files for internationalization purposes.
This is a personal project, but suggestions and feedback are welcome! Feel free to:
- Open issues for bugs or feature requests
- Submit pull requests with improvements
- Share your own use cases
This repository uses branch protection rules to maintain code quality:
- All changes must go through Pull Requests
- PRs require at least one approval before merging
- All CI checks must pass before merging
- Direct pushes to
mainbranch are disabled
See Branch Protection Setup Guide for details on configuring these rules.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Personal project by @petrus
Note: This repository is maintained as a personal learning and reference resource. Use cases are based on real-world scenarios and may require customization for your specific needs.