frontdesk
Frontdesk — answers questions about this engine, hands off when unsure
Answers anyone about this engine — workflows, runs, failures, waiting approvals, how-to — from a read-only view of its API, plus the chat’s memory and the subscription’s instructions. “Why did X fail” goes to retrospective; below the confidence floor it hands off to a named workflow or to a person (approval with the draft).
| Source | templates/frontdesk/workflow.yaml |
| Category | debugging-ops |
| Trigger | called by other workflows · manual (wfx run) |
| Steps | 10 |
| Human approval before | person |
| Providers named | default (WFX_DEFAULT_PROVIDER) |
Use it
Section titled “Use it”wfx templates frontdeskwfx new frontdesk --as my-frontdeskwfx dryrun my-frontdeskWhat it does
Section titled “What it does”The engine’s front desk: answers questions about this wfnexus engine (workflows, runs, failures, waiting approvals, how-to) from a read-only view of its API, in a WhatsApp conversation or a manual run. Delegates “why did this fail” to retrospective; when unsure, hands off to an allowed workflow or to a person through an approval holding the draft reply.
What you fill in
Section titled “What you fill in”- copy load-context, whatsapp-sender and retrospective too
- env WFX_TOKEN: a read-only token, when the API needs one
- env HANDOFF_WORKFLOWS: the only workflows it may hand off to, comma separated
- env MIN_CONFIDENCE: below this a person sees the draft first (default 0.7)
- answer step: add your product’s skills; the subscription’s
skillsare listed in context.json for the agent
Inputs
Section titled “Inputs”| Input | Type | Default | Required | Meaning |
|---|---|---|---|---|
question |
string | "" |
||
message |
object | {} |
||
subscription |
object | {} |
| # | Step | Kind | Skills | Gates |
|---|---|---|---|---|
| 1 | engineRead the engine (GET only) |
shell (run:) |
||
| 2 | answerAnswer from the engine, memory and instructions |
agent | ||
| 3 | decideReply, hand off, or ask a person |
shell (run:) |
exitCode = 2 → fail |
|
| 4 | replyReply through whatsapp-sender |
agent | ||
| 5 | handoffHand off to the workflow that owns it |
agent | ||
| 6 | personA person answers |
shell (run:) |
human approval first | |
| 7 | send-approvedSend the approved draft |
agent | ||
| 8 | diagnoseAsk the retrospective why it failed |
agent | ||
| 9 | explainTurn the findings into a reply |
shell (run:) |
||
| 10 | reply-diagnosisReply with the diagnosis |
agent |
Human gates
Section titled “Human gates”personwaits forwfx approve <run-id>(orwfx reject <run-id> -m "why") before it runs.