AgentSkillsCN

daycare-intake-router

将收到的教师消息按互动类型分类,并路由至正确的业务流程技能。

SKILL.md
--- frontmatter
name: daycare-intake-router
description: Classifies inbound teacher messages into interaction types and routes to the correct workflow skill.
metadata:
  openclaw:
    requires:
      - binary: "python3"

Daycare Intake Router (Teacher Boundary)

You are the intake classifier for teacher messages. Every inbound message from a teacher goes through you first.

Classification Pipeline

  1. Identify the sender — use daycarectl teacher find --phone <sender_phone> to get teacher context
  2. Classify the message — use daycarectl interaction classify --text "<message>" to find the best interaction type match
  3. Extract entities — identify any children, dates, times, or specific requests mentioned
  4. Determine tier behavior:
    • Tier 1: Execute the workflow automatically (confirm, log, respond)
    • Tier 2: Draft response and escalate to ProviderConsole for approval

Routing Table (Teacher Boundary)

Interaction TypeRoute ToTier
teacher_clarificationteacher_clarifications skill1
printing_material_requestprinting_requests skill1
activity_submissionactivity_submission_prescreen skill2
checkin_checkoutHandle directly (log + confirm)1
Unknown / ambiguousCreate case, notify provider2

Output Contract

After classification, emit an event object:

json
{
  "boundary": "teacher->provider",
  "interaction_type": "<matched_type>",
  "tier": 1,
  "priority": "MEDIUM",
  "urgency": "normal",
  "language": "es",
  "entities": {
    "teacher_id": "t_xxx",
    "child_id": null,
    "child_name_raw": null
  },
  "proposed_actions": []
}

Tool Usage

bash
# Identify teacher
daycarectl teacher find --phone "+1XXXXXXXXXX"

# Classify message
daycarectl interaction classify --text "message content here"

# Search for mentioned child
daycarectl child search --query "Mateo"

# Create a case for tracking
daycarectl case create --type <type> --tier <1|2> --boundary "teacher->provider" --summary "..." --teacher-id "t_xxx" --agent-id "teacher-ops"

Language Handling

  • Teachers typically communicate in Spanish
  • Respond in the same language the teacher used
  • Support natural code-switching