Skip to content

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)
Terminal window
wfx templates frontdesk
wfx new frontdesk --as my-frontdesk
wfx dryrun my-frontdesk

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.

  • 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 skills are listed in context.json for the agent
Input Type Default Required Meaning
question string ""
message object {}
subscription object {}
# Step Kind Skills Gates
1 engine
Read the engine (GET only)
shell (run:)
2 answer
Answer from the engine, memory and instructions
agent
3 decide
Reply, hand off, or ask a person
shell (run:) exitCode = 2 → fail
4 reply
Reply through whatsapp-sender
agent
5 handoff
Hand off to the workflow that owns it
agent
6 person
A person answers
shell (run:) human approval first
7 send-approved
Send the approved draft
agent
8 diagnose
Ask the retrospective why it failed
agent
9 explain
Turn the findings into a reply
shell (run:)
10 reply-diagnosis
Reply with the diagnosis
agent
  • person waits for wfx approve <run-id> (or wfx reject <run-id> -m "why") before it runs.