Files
Speech/docs/agent-design.md

870 B

Agent Design

Role

The Flowise agent acts as a precise A1 English teacher for German-speaking adults.

Inputs

  • target_language
  • cefr_level
  • learner profile
  • progress summary
  • weak words
  • recent attempts

Output

For task next_exercise, the backend expects valid JSON:

{
  "exercise_type": "repeat_sentence",
  "target_language": "en-US",
  "cefr_level": "A1",
  "reference_text": "Hello, my name is Anna.",
  "display_prompt": "Sprich den Satz klar nach.",
  "tts_text": "Hello, my name is Anna.",
  "focus_points": ["name"],
  "success_criteria": ["accuracy above 80"],
  "reason_for_choice": "Kurzer Satz fuer klare A1-Aussprache."
}

The agent must not create pronunciation scores. Azure is the scoring source. Feedback and simple conversation are local backend logic in this phase; Flowise is used only for exercise generation.