Data & AI Infrastructure
Dify
Assemble model-powered apps with a visual workflow canvas, prompts, and knowledge sources.
- G2 rating
- Pricing
- Cloud Sandbox
- US$0
- Cloud Professional
- US$590/workspace/year
- Cloud Team
- US$1,590/workspace/year
- Self-hosted
- Hosting and model costs vary
- Best for
- Developers or product teams prototyping an assistant with explicit controls for source selection.
Video tutorial
Dify Quickstart Guide: Build Your First AI Workflow · Dify · Watch on YouTube ↗
What is Dify?
Dify combines prompts, model calls, retrieval, and branching in a visual canvas. It is useful for developing an assistant when the team wants to inspect the steps between a user question and the response. Validate one small workflow and its fallback before wiring external services.
A workflow should handle missing evidence, not just its happy path. Build a fallback branch using representative source material and test it before connecting live data.
Set up and test a real workflow
Define the exact input and output fields for the first Dify workflow. Use a small collection of synthetic requests including unclear input and put a review route in the workflow. Keep the external action stubbed until the classification and routing decisions pass repeatable tests.
What to look for in the result
A helpdesk route classifies "external mouse stops responding" as hardware, "calendar app won't sync" as software, and "it broke" as review required. Compare the resulting categories, reasons, and review flag with the intended fixtures. Deliberately make one model response include an extra field. The workflow should validate the shape before passing data to downstream steps or otherwise make the failure visible.
| Problem | What to check | What to change |
|---|---|---|
| A poor classification triggers a real downstream action | Inspect how unknown input is routed and what the output validator accepts | Make manual review explicit and keep the live action disabled until the tests pass |
| Exported workflow behaves differently in a new workspace | Compare provider configuration, model version, and connected resources | Document the workspace prerequisites and rerun the fixed examples in the target environment |
Try it: Build a workflow for help-desk categories
Route three test messages to hardware, software, and manual review.
Classify “keyboard key is stuck” as hardware, “the spreadsheet app freezes” as software, and “please help” as manual review. Return only category, explanation, and whether review is required.
- Create a visual workflow with a model call and a restricted list of category outcomes.
- Run the three examples and inspect both model output and branch selection.
- Add one assignment with multiple issues. Define the expected route and verify that the workflow can recover from unsupported output.
What a usable result looks like
Specific examples go to their categories and vague inputs are routed to a person.
| Check | What you might see | What to do next |
|---|---|---|
| Hardware | Response chooses hardware. | Verify the branch linkage. |
| Software | Response chooses software. | Confirm the output data shape. |
| Unknown | Route is manual review. | Check alternative vague phrasing. |
What to save from the trial
A three-route workflow and a small reproducible case list.
Another scenario
Add a test knowledge base for IT answers and compare citation behavior on two known sources.
Use cases and what to check
| Use case | How to try it | What to check |
|---|---|---|
| Handbook assistant | Connect fictional policies and retrieve a small excerpt. | Confirm the supporting passage reaches the answer step. |
| Request classification | Route sample forms by classifier output. | Verify that ambiguous forms go to a safe review route. |
Which plan should you try?
| Plan | Price | Who should consider it |
|---|---|---|
| Cloud Sandbox | US$0 | Test one workspace against its published message and knowledge quotas. |
| Cloud Professional | US$590/workspace/year | Includes the listed team and message allowances. Dify announces a plan update from December 14. |
| Cloud Team | US$1,590/workspace/year | Compare seat, app, knowledge-storage, and message allowances. |
| Self-hosted | Hosting and model costs vary | Review the applicable software license and hosting responsibilities. |
Estimate message counts and connected providers separately before selecting a plan.
Provider pricing and access ↗ · Checked
What people say about Dify
1 featured user review.
Setting up a text summarization workflow
The reviewer used the platform to assemble a workflow that turned long text into shorter summaries without needing much coding experience.
4/5 · September 2, 2024 · G2 ↗ · Paraphrased
Limits to check
Inspect hosted workflow rules, secrets, and logs before using production content.
When to choose it
Dify makes sense for product or operations teams that can test a model-driven process with structured cases and benefit from visual editing. Consider maintaining the workflow in code when deterministic release and test control outweigh fast visual changes.
Common questions
- Can I verify routing without a real integration?
- Yes. Run the workflow in preview and record branch selections with fixtures.
- How should errors be presented?
- Give each expected failure a visible route and record what the user can do next.
Community posts
-
Test streaming when conditional branches reconnect ↗
A Dify issue shows a workflow whose output was interrupted when branches joined. The sample structure is useful for making a small regression fixture.
Dify GitHub Issues