Install
openclaw skills install fieldy-ai-webhookWire a Fieldy webhook transform into Moltbot hooks.
openclaw skills install fieldy-ai-webhookYou’ll configure Moltbot Gateway webhooks so an incoming request to POST /hooks/fieldy runs through a transform module (fieldy-webhook.js) before triggering an agent run.
Behavior notes (defaults in fieldy-webhook.js):
fieldy-webhook.js (under <workspace>/fieldy/transcripts/).fieldy-webhook.js.Your hooks.transformsDir is:
/root/clawd/skills/fieldy/scripts
Move the script from this repo:
src/fieldy-webhook.js/root/clawd/skills/fieldy/scripts/fieldy-webhook.jsNotes:
fieldy-webhook.js (matches the config below).~/.clawdbot/moltbot.jsonAdd this config:
"hooks": {
"token": "insert-your-token",
"transformsDir": "/root/clawd/skills/fieldy/scripts",
"mappings": [
{
"match": {
"path": "fieldy"
},
"action": "agent",
"name": "Fieldy",
"messageTemplate": "{{message}}",
"deliver": true,
"transform": {
"module": "fieldy-webhook.js"
}
}
]
}
Important:
hooks.token is required when hooks are enabled (see Webhooks docs).hooks.enabled: true exists somewhere in your config (and optionally hooks.path, default is /hooks).Plugins/config changes generally require a gateway restart. After restarting, the webhook endpoint should be live.
https://your-url.com/hooks/fieldy?token=insert-your-token
Note: Moltbot supports sending the token via header too, but many webhook providers only support query params. Moltbot still accepts ?token= (see Webhooks docs).
Example request (adjust host/port and token):
curl -X POST "http://127.0.0.1:18789/hooks/fieldy" \
-H "Authorization: Bearer insert-your-token" \
-H "Content-Type: application/json" \
-d '{"transcript":"Hey Fieldy summarize this: hello world"}'