[opc@openclaw-vnic ~]$ curl -X POST http://localhost:18789/hooks/sokoma-ride
-H "Authorization: Bearer 7dc690f8c6af42b8b70c3c7e08f1be3d0df6efda2c63c14e9de22b4d48c0a9e1"
-H "Content-Type: application/json"
-d '{
"rideId": "R45678",
"pickup": "Westlands, Nairobi",
"dropoff": "CBD, Nairobi",
"fareEstimate": 320.00,
"passengerName": "Jane Akinyi",
"phone": "+254712345678"
}'
Not Found[opc@openclaw-vnic ~]$
openclaw.json:
[opc@openclaw-vnic ~]$ cat .openclaw/openclaw.json
{
"agents": {
"defaults": {
"model": {
"primary": "openrouter/auto"
},
"workspace": "/home/opc/.openclaw/workspace",
"memorySearch": {
"enabled": false
}
},
"list": [
{
"id": "main"
},
{
"id": "dispatch",
"name": "Sokoma",
"agentDir": "/home/opc/.openclaw/agents/dispatch/agent",
"workspace": "/home/opc/.openclaw/workspace"
}
]
},
"hooks": {
"enabled": true,
"path": "/hooks",
"token": "7dc690f8c6af42b8b70c3c7e08f1be3d0df6efda2c63c14e9de22b4d48c0a9e1",
"mappings": [
{
"id": "sokoma-ride",
"match": {
"path": "sokoma-ride",
"source": "webhook"
},
"action": "agent",
"agentId": "dispatch",
"messageTemplate": "You are Sokoma, the friendly ride-sharing agent for the Sokoma drivers group in Nairobi.\n\nA new ride request webhook just came in. Format it nicely and post it immediately into this WhatsApp group so drivers can reply fast:\n\nGroup JID: 120363425991344445@g