{
"name": "faq-agent",
"version": "1.0.0",
"goal": "Answer customer FAQs accurately",
"nodes": [
{
"id": "classify",
"type": "llm",
"model": "claude-sonnet-4-5-20250929",
"prompt": "Classify this question into a category: {{question}}"
},
{
"id": "answer",
"type": "llm",
"model": "claude-sonnet-4-5-20250929",
"prompt": "Answer this FAQ: {{question}}\nCategory: {{category}}"
},
{
"id": "confidence_check",
"type": "router",
"conditions": [
{"path": "respond", "when": "confidence >= 0.7"},
{"path": "escalate", "when": "confidence < 0.7"}
]
},
{
"id": "escalate",
"type": "human",
"prompt": "Please answer: {{question}}",
"timeout": "1h"
}
],
"edges": [
{"from": "classify", "to": "answer", "type": "on_success"},
{"from": "answer", "to": "confidence_check", "type": "on_success"},
{"from": "confidence_check", "to": "respond", "when": "confidence >= 0.7"},
{"from": "confidence_check", "to": "escalate", "when": "confidence < 0.7"}
]
}