Build a support email workflow¶
This learning path starts with one synthetic email and grows it into a reviewable support draft. You will author the files yourself, then compare them with the runnable final example.
- Set up the project.
- Classify one email.
- Extract the requested action.
- Route to a branch.
- Look up an account.
- Try a bounded model tool loop.
- Handle several requests.
- Evaluate the workflow.
- Connect it to your application.
The setting stays the same: a fictional subscription support team receives
Please review the duplicate charge on invoice INV-7 for account A-100.
The direct path classifies the email, extracts an account reference, looks up a
synthetic account, and drafts a reply for an agent to review. It never sends
email or changes an account.
The final example contains three workflows. support_email uses an authored
direct MCP call. agent_reply shows a bounded model tool loop for the same
read-only lookup; it is an alternative, not the next step in one invocation.
support_multi prepares independent requests in a bounded collection.
Offline scripted model responses prove wiring and validation. Live model
quality requires separate evaluation.
Foliqant runs one bounded invocation in memory. A host owns incoming HTTP, identity checks, persistence, and sending a reviewed reply. See HTTP integration for that boundary.