Dify Workflow Basics
Build LLM apps visually with Dify: workflows and chatflows, prompts and variables, knowledge bases, routing, iteration, code nodes, structured extraction, API calls and streaming, with runnable Python for every testable piece.
What you'll learn
- Explain what Dify is, its app types, and how to choose between workflow and chatflow apps.
- Build workflows from start, LLM, knowledge retrieval, logic, code and end nodes with clean variables.
- Set up a knowledge base with sensible chunking and retrieval settings, and recognise retrieval failures.
- Route and loop with if/else, question classifiers, iteration and variable aggregation, and test routing accuracy.
- Call published workflows through the API in blocking and streaming modes from your own code.
- Debug, cost, secure and maintain Dify apps in production.
Syllabus
Getting to Know Dify
- What Dify Is
- App Types: Chatbot, Agent, Chatflow and Workflow
- Setting Up: Cloud or Self-Hosted, and Model Providers
Workflow Building Blocks
Knowledge Bases and Retrieval
- Creating a Knowledge Base and Chunking
- Retrieval Settings: Search Mode, Top K and Threshold
- Grounded Answers From Retrieved Context
Routing, Classification and Iteration
- If/Else Branches
- Question Classifier Node
- Iteration Over Lists
- Variable Aggregator and Merging Branches