AgentSkillsCN

Agent Wiring

Agent连线

SKILL.md

Agent Wiring Checklist

Apply when creating new agents or adding capabilities in lib/services/aria/.

Walk through:

  1. Which agent handles this? (FollowUpAgent, SentimentAgent, RecoveryAgent, RevenueEngagementAgent, SmsPilot, or new?)
  2. What event triggers it? (call_ended, booking_created, form_submit, inbound_sms, cron?)
  3. Where does the trigger fire? (vapi-webhook-ultimate.js, sms-handler.js, SequenceEngine, ops-scheduler.js?)
  4. What data does the agent need? What tables does it query?
  5. What action does it take? (send SMS, update thread state, alert owner, log decision?)
  6. What gets logged in aria_orchestration_log? (every agent decision needs a receipt with reasoning)
  7. What oversight tier? (Tier 1 auto, Tier 2 supervised with delay, Tier 3 human required)
  8. What safety rails? (rate limit, opt-out check, active sequence check, loop prevention?)

Register in AriaAgentOrchestrator.js following existing pattern. All agents must be non-blocking (setImmediate or fire-and-forget with try/catch).