Files
dify-guides/01-workflow/text-at-level.dify.yml
T
2026-09-21 09:24:25 +02:00

255 lines
6.1 KiB
YAML

app:
description: ''
icon: 🤖
icon_background: '#FFEAD5'
icon_type: emoji
mode: workflow
name: Text at level
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/openai:1.0.5@51583313a5988d5dca405063831ffeeacdc1f2e95f32a8c10b4c281ceef39ebb
version: null
kind: app
version: 0.7.0
workflow:
conversation_variables: []
environment_variables: []
features:
file_upload:
allowed_file_extensions:
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
allowed_file_types:
- image
allowed_file_upload_methods:
- local_file
- remote_url
enabled: false
fileUploadConfig:
attachment_image_file_size_limit: 2
audio_file_size_limit: 50
batch_count_limit: 5
file_size_limit: 15
file_upload_limit: 50
image_file_batch_limit: 10
image_file_size_limit: 10
knowledge_file_size_limit: 50
single_chunk_attachment_limit: 10
skill_file_size_limit: 50
video_file_size_limit: 100
workflow_file_upload_limit: 10
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
number_limits: 3
opening_statement: ''
retriever_resource:
enabled: true
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions: []
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
language: ''
voice: ''
graph:
edges:
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: llm
id: 1789938975576--1789939221760-target
source: '1789938975576'
sourceHandle: source
target: '1789939221760'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: llm
targetType: llm
id: 1789939221760--1789939284953-target
source: '1789939221760'
sourceHandle: source
target: '1789939284953'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: llm
targetType: end
id: 1789939284953--1789939323209-target
source: '1789939284953'
sourceHandle: source
target: '1789939323209'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
selected: false
title: User Input
type: start
variables:
- default: ''
hint: ''
label: The text you want to adapt
max_length: 5000
options: []
placeholder: ''
required: true
type: paragraph
variable: text
- hint: ''
label: Level
options:
- year 6
- year 7
- year 9
- year 12
placeholder: ''
required: true
type: select
variable: level
height: 134
id: '1789938975576'
position:
x: 80
y: 282
positionAbsolute:
x: 80
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
zIndex: 0
- data:
context:
enabled: false
variable_selector: []
model:
completion_params: {}
mode: chat
name: gpt-5-mini
provider: langgenius/openai/openai
prompt_template:
- id: f40476ac-a09a-4e92-b358-695f89703c7a
role: system
text: 'Rewrite the text below so that a student at this level can read it.
Keep all the factual content. Do not replace technical terms, but explain
them in a subordinate clause. Write short sentences.
Level: {{#1789938975576.level#}}
Text: {{#1789938975576.text#}}'
selected: false
title: LLM
type: llm
vision:
enabled: false
height: 87
id: '1789939221760'
position:
x: 382
y: 282
positionAbsolute:
x: 382
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
zIndex: 0
- data:
context:
enabled: false
variable_selector: []
model:
completion_params: {}
mode: chat
name: gpt-5-mini
provider: langgenius/openai/openai
prompt_template:
- id: 99018d18-8dd6-47d0-80b8-99d56108f7e0
role: system
text: 'Write three comprehension questions about the text below. Question
1 is about a fact in the text, question 2 about the main idea, question
3 asks the student to apply something. Do not give answers.
Text: {{#1789939221760.text#}}'
selected: false
title: LLM 2
type: llm
vision:
enabled: false
height: 87
id: '1789939284953'
position:
x: 684
y: 282
positionAbsolute:
x: 684
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
zIndex: 0
- data:
outputs:
- value_selector:
- '1789939221760'
- text
value_type: string
variable: rewritten_text
- value_selector:
- '1789939284953'
- text
value_type: string
variable: questions
selected: false
title: Output
type: end
height: 114
id: '1789939323209'
position:
x: 986
y: 282
positionAbsolute:
x: 986
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
zIndex: 0
viewport:
x: -877.9220779220777
y: 85.78808995882173
zoom: 1.4254038644282545
rag_pipeline_variables: []