Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Flowise Setup
|
||||
|
||||
Flowise laeuft in Docker als Service `flowise` und ist vom Backend intern ueber `http://flowise:3000` erreichbar.
|
||||
|
||||
## MVP-Agent
|
||||
|
||||
Fuer Agentflow V2 nutze zuerst die konkrete Anleitung in
|
||||
[`agentflow-v2-setup.md`](./agentflow-v2-setup.md). Sie passt zur aktuellen
|
||||
Go-Backend-Anbindung, die Flowise mit `question` und `form` aufruft.
|
||||
|
||||
1. Flowise im Browser oeffnen: http://localhost:3000
|
||||
2. Einen Chatflow oder Agentflow fuer `A1 English Teacher` erstellen.
|
||||
3. Den System Prompt aus `prompts/a1_teacher_system.md` verwenden.
|
||||
4. Den Chatflow speichern und die ID in `.env` setzen:
|
||||
|
||||
```bash
|
||||
FLOWISE_CHATFLOW_ID=...
|
||||
```
|
||||
|
||||
Das Backend erwartet JSON-Antworten mit:
|
||||
|
||||
```json
|
||||
{
|
||||
"exercise_type": "repeat_sentence",
|
||||
"target_text": "Hello, my name is Anna.",
|
||||
"teacher_feedback": "Uebe besonders 'name'.",
|
||||
"tts_text": "Hello, my name is Anna.",
|
||||
"ssml": "",
|
||||
"next_recommendation": "Sprich den Satz noch einmal langsam."
|
||||
}
|
||||
```
|
||||
|
||||
Wenn keine Chatflow-ID gesetzt ist, nutzt die API einen lokalen Fallback.
|
||||
Reference in New Issue
Block a user