# 知识拆解工作流 **工作流名称:** upload_knowldge **功能:** 上传资料并提炼知识点 --- ## 配置信息 **API端点:** ``` URL: http://dify.ireborn.com.cn/v1/workflows/run API Key: app-LZhZcMO6CiriLMOLB2PwUGHx ``` **请求参数:** ```json { "inputs": { "file": { "type": "document", "transfer_method": "local_file", "upload_file_id": "dify_file_id" }, "course_name": "课程名称", "course_id": "1", "material_id": "16" }, "response_mode": "streaming", "user": "kaopeilian" } ``` --- ## 实现方式 ### Streaming模式直接完成 - 使用 `response_mode: "streaming"` - 后端完整处理SSE流至 `workflow_finished` - 前端180秒超时,等待最终状态 - 无需轮询 ### 状态映射 - `running` → 分析中 - `succeeded` → 分析完成(刷新知识点) - `failed` → 分析失败 - `stopped` → 分析已停止 --- **最后更新:** 2025-10-12