Essay Feedback for Language Learners
Detect the essay's target language, grade it, and translate the feedback into the learner's native language.
A learner submits an essay in their target language. The pipeline detects the language, evaluates grammar and style, and returns feedback in the learner's native language so they can actually understand it.
Tree
Blocks
detect-target-language (llm)
Output schema:
grade-essay (llm)
Output schema:
translate-feedback (llm)
API call
Why this shape?
- Three blocks, not one. Grading and translating are different concerns — and the translator should never see the original essay (saves tokens and avoids re-grading bias).
- Detection is its own block because the grader prompt depends on it (
{{previous_output.language_name}}). Inlining detection into the grader would force a single prompt to do two unrelated jobs and would lose the structuredlanguage_codeyou might want for analytics. - No
codeblock at the end because the structured output from the translator is the response shape. Don't add aggregation steps you don't need.