Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
38 changes: 38 additions & 0 deletions content/docs/chatflow/index.ja.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: Dify チャットフロー
description: Dify チャットフロー開発について学ぶ
enableComments: true
author: "Chase"
github_username: "ChasePassion"
---

## 🤔 チャットアシスタント vs チャットフロー:何が違うの?

Dify プラットフォームでは、さまざまなタイプの AI アプリケーションを構築できます。対話型 AI の開発では、一般的に **チャットアシスタント**(主に LLM に基づいた基本的な質問応答やチャットボット)と **チャットフロー**(対話の流れを編成できるもの)の 2 種類のモードに出会います。では、その違いは何でしょうか?

例えば、病院の案内チャットシステムでは、チャットフローを使うことで、ユーザーに選択肢を提示し、シナリオを切り替え、特定のナレッジベースを使って検索させることができます。これにより、複雑なシーンでも回答精度が大幅に向上し、システム負荷も軽減されます。

🌰 主な違いの比較表:

| 特徴 | チャットアシスタント | チャットフロー |
| ---------- | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| 主な目的 | 質問応答、テキスト生成などを素早く実装 | 複雑なロジックや多段階のやり取り、ユーザーガイド付きの対話アプリを構築 |
| 対話モード | 単発または簡易なマルチターン | 多段階、文脈対応、制御可能な対話フローに重点 |
| 編成能力 | 限定的または可視化なし。主にプロンプト + RAG | ノード接続による強力な可視化フロー、条件分岐・変数・ツール呼び出しなどをサポート |
| 状態管理 | LLM の短期記憶や簡単な文脈伝達に依存 | 内蔵されたメモリでノード間の会話履歴を管理・伝達可能 |
| 想定シーン | 基本的な Q&A ボット、コンテンツドラフト、プロトタイピング | スマートカスタマーサポート、タスク指向ボット、高度な意味理解、パーソナライズ、外部サービスとの統合など |
| 特殊ノード | 特定ノードへの依存は少なめ | `Answer`(ストリーム出力)、`sys.query`や`sys.conversation_id`などの入力変数 |
| 拡張機能 | 基本機能が中心 | オープニングメッセージ、質問提案、TTS、高度なファイル処理、コンテンツモデレーションなどをサポート |

## はじめよう

### 簡単なフロー構築:最初のスマートチャットフローを作ってみよう

<Cards>
<Card href="./chatflow/xueyeyoutong" title="はじめての Chatflow ボットを構築">
<p>
Dify
のビジュアルインターフェースを使ってシンプルなチャットボットを作成する方法を学びましょう。
</p>
</Card>
</Cards>
37 changes: 37 additions & 0 deletions content/docs/chatflow/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Dify Chatflow
description: Learn about developing with Dify Chatflow
enableComments: true
author: "Chase"
github_username: "ChasePassion"
---

## 🤔 Chat Assistant vs Chatflow: What's the Difference?

On the Dify platform, you can build various types of AI applications. When we talk about conversational AI, we often encounter two modes: **Chat Assistants** (typically basic Q&A or LLM-based bots) and **Chatflows** (orchestrated dialog flows). So, what's the difference?

A practical example is a hospital guide system. In a Chatflow, you can guide users to select one of several options, switch scenes, and retrieve knowledge from specific databases. This can significantly improve answer accuracy and reduce system load in complex scenarios like hospitals.

🌰 Key Differences at a Glance:

| Feature | Chat Assistant | Chatflow |
| ------------- | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Main Purpose | Quickly implement Q&A, text generation, etc. | Build dialogue applications with complex logic, multi-turn interaction, and user guidance |
| Interaction | Single or simple multi-turn conversations | Emphasizes multi-turn, context-aware, and controllable dialog flows |
| Orchestration | Limited or no visual orchestration, mostly Prompt + RAG | Powerful visual orchestration using node linking, with branching, variables, tool calls |
| State | Relies on LLM’s short-term memory or simple context | Built-in memory allows passing and managing dialog history across nodes |
| Use Cases | Basic Q&A bots, content drafting, rapid prototyping | Smart customer service, task-oriented bots, semantic understanding, personalized suggestions, service integration |
| Unique Nodes | Few special orchestration nodes | `Answer` (stream output), special input variables like `sys.query`, `sys.conversation_id` |
| Extensions | Basic features | Supports greetings, follow-up suggestions, TTS, advanced file handling, content moderation, etc. |

## Get Started

### Easy Orchestration: Build Your First Smart Chatflow

<Cards>
<Card href="./chatflow/xueyeyoutong" title="Build Your First Chatflow Bot">
<p>
Learn how to use Dify's visual interface to create a simple dialog bot.
</p>
</Card>
</Cards>
35 changes: 35 additions & 0 deletions content/docs/chatflow/index.zh.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: Dify 聊天流
description: 了解 Dify 聊天流的开发
enableComments: true
author: "Chase"
github_username: "ChasePassion"
---

## 🤔 聊天助手 & 聊天流:有什么区别?

在 Dify 平台中,您可以构建多种类型的 AI 应用。当我们谈论对话式 AI 时,通常会遇到"聊天助手"(通常指基于 LLM 的基础问答或聊天机器人)和"Chatflow"(可编排的对话流)这两种模式。那么这两种模式有什么区别呢?

一个直观的例子是医院的导医便民系统,在 Chatflow 里面你可以要求用户选择指定的选项之一,进入一个新的场景,使用特定的知识库检索,这在医院这种复杂场景下可以大大提高答案准确度、降低系统负荷。

🌰 核心区别一览:

| 特性 | 聊天助手 | 聊天流 |
| -------- | -------------------------------------------- | ---------------------------------------------------------------------------------- |
| 核心目标 | 快速实现问答、文本生成等功能 | 构建具有复杂逻辑、多轮交互、可引导用户的对话式应用 |
| 交互模式 | 单轮或简单的多轮,直接反馈 | 强调多轮、上下文感知、可控的对话流程 |
| 编排能力 | 有限或无可视化编排,通常是 Prompt 工程 + RAG | 通过节点连接实现强大的可视化编排,支持条件分支、变量、工具调用等 |
| 状态管理 | 依赖 LLM 的短期记忆或简单上下文传递 | 内置聊天记忆 (Memory),可在节点间传递和管理多轮对话历史 |
| 适用场景 | 基础问答机器人、内容初稿生成、快速原型验证 | 智能客服、任务导向型机器人、复杂语义理解与应答、个性化推荐、集成外部服务的对话应用 |
| 特有节点 | 较少依赖特定编排节点 | `Answer` (流式输出)、特定输入变量 (`sys.query`, `sys.conversation_id`) 等 |
| 扩展功能 | 基础功能为主 | 支持对话开场白、后续问题建议、TTS、更复杂的文件处理逻辑、内容审核等 |

## 开始使用

### 轻松编排:构建您的第一个智能聊天流

<Cards>
<Card href="./chatflow/xueyeyoutong" title="构建您的第一个Chatflow机器人">
<p>学习使用 Dify 的可视化界面编排一个简单的对话机器人。</p>
</Card>
</Cards>
10 changes: 10 additions & 0 deletions content/docs/chatflow/meta.ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"title": "チャットフロー",
"icon": "flow-chart",
"defaultOpen": true,
"pages": [
"node",
"playground",
"xueyeyoutong"
]
}
10 changes: 10 additions & 0 deletions content/docs/chatflow/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"title": "chatflow",
"icon": "flow-chart",
"defaultOpen": true,
"pages": [
"node",
"playground",
"xueyeyoutong"
]
}
10 changes: 10 additions & 0 deletions content/docs/chatflow/meta.zh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"title": "聊天流",
"icon": "flow-chart",
"defaultOpen": true,
"pages": [
"node",
"playground",
"xueyeyoutong"
]
}
Loading