handle_inbound
ActiveTool of Agent Broker
Receive, classify, and route inbound messages on behalf of an SMB. Classifies intent (booking request, cancellation, inquiry, complaint), enriches with context, and routes to the appropriate handler or escalation path. EXAMPLE USER QUERIES THAT MATCH THIS TOOL: user: "Process this customer reply for me: 'Yes I want to book Tuesday'" -> call handle_inbound({"raw_message": "Yes I want to book Tuesday", "channel": "sms"}) WHEN TO USE: Use when an SMB needs inbound message triage — classifying incoming contact-form submissions, SMS replies, voicemails, or email inquiries. WHEN NOT TO USE: Do not use for outbound communications. Do not use for compliance-flagged recipient lists without verified opt-in records. COST: $0.03 per_inbound LATENCY: ~3000ms EXECUTION: async_by_default (use get_outcome to retrieve result)
Parameters schema
{
"type": "object",
"required": [
"smb_id",
"inbound_channel",
"raw_message"
],
"properties": {
"sender": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
}
}
},
"smb_id": {
"type": "string"
},
"raw_message": {
"type": "string"
},
"routing_rules": {
"type": "object",
"description": "Optional override routing policy for this SMB"
},
"inbound_channel": {
"enum": [
"sms",
"email",
"voice_voicemail",
"web_form",
"api"
],
"type": "string"
},
"received_at_iso": {
"type": "string",
"format": "date-time"
}
}
}Parent server
Agent Broker
https://github.com/basilalshukaili/agentbroker
1/7 registries