← 返回
AI智能 Key 中文

Fieldy AI Webhook

Wire a Fieldy webhook transform into Moltbot hooks.
{"answer":"将 Fieldy webhook 转换接入 Moltbot hooks。"}
mrzilvis
AI智能 clawhub v0.1.2 1 版本 100000 Key: 需要
★ 3
Stars
📥 2,585
下载
💾 326
安装
1
版本
#latest

概述

What this sets up

You’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):

  • Saying "Hey, Fieldy" (or just "Fieldy") will trigger the agent with the text after the wake word.
  • Transcripts without the wake word will not wake the agent; they’ll only be logged to JSONL files by fieldy-webhook.js (under /fieldy/transcripts/).
  • You can adjust wake words, parsing, and logging behavior by editing fieldy-webhook.js.

1) Put the transform script in the configured transforms dir

Your hooks.transformsDir is:

/root/clawd/skills/fieldy/scripts

Move the script from this repo:

  • From: src/fieldy-webhook.js
  • To: /root/clawd/skills/fieldy/scripts/fieldy-webhook.js

Notes:

  • Make sure the destination filename is exactly fieldy-webhook.js (matches the config below).

2) Add the webhook mapping to ~/.clawdbot/moltbot.json

Add 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).
  • Ensure hooks.enabled: true exists somewhere in your config (and optionally hooks.path, default is /hooks).

3) Restart the Gateway

Plugins/config changes generally require a gateway restart. After restarting, the webhook endpoint should be live.

4) Configure the webhook URL in the Fieldy app

  • Log in to your Fieldy app
  • Go to SettingsDeveloper Settings
  • Set Webhook Endpoint URL to:

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).

5) Test

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"}'

版本历史

共 1 个版本

  • v0.1.2 当前
    2026-03-28 13:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,701
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 796,000
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 833 📥 212,782