Hello Dify Logo

Dify Workflow

Learn about Dify workflow development

🤔 Chatflow & Workflow: What's the differences?

In Dify's advanced application types, there are Chatflow and Workflow. Chatflow behaves more like a chatbot, that is, a robot that can interact with users in a loop; while Workflow behaves more like a script, which is only executed once when called and is usually used as the application backend.

You need to choose the appropriate application type according to the application scenario you are building. In this demonstration, we will choose the Workflow type.

🌰 In a nutshell:

FeatureChatflowWorkflow
TriggerInitiated by user messages and continues in a loopInvoked once per API call, completes then stops
Interaction modelConversational, multi-turnOne-shot script-like execution
State managementMaintains context across turnsStateless except for inputs/outputs of a single run
Best suited forFront-end chat experiences, support botsBack-end automation, data processing pipelines
Response formatNatural language text, rich cardsStructured JSON or other machine-readable payload

Get Started

Vibe coding: building MVP

Steven Lynn
Steven Lynn

On this page