fangyuanjian
v0.1.29
Published
OpenClaw custom IM channel plugin (fangyuanjian)
Downloads
254
Readme
fangyuanjian OpenClaw Plugin
fangyuanjian is an OpenClaw channel plugin for connecting your IM system through WebSocket subscription plus HTTP send.
Current Defaults
baseUrl:http://8.135.53.3:5601/sendPath:/websocket/sendwsUrl:ws://8.135.53.3:5601/ws/subscribewsPath:/ws/subscribe
In normal setup, the user only needs to provide botToken.
Install
openclaw plugins install fangyuanjianChannel Config
See examples/config.example.jsonc.
Main fields:
channels.fangyuanjian.botToken: required bot tokenchannels.fangyuanjian.baseUrl: override HTTP base URL if neededchannels.fangyuanjian.sendPath: override send endpoint if neededchannels.fangyuanjian.wsUrl: override websocket URL if neededchannels.fangyuanjian.wsPath: fallback websocket path
Payload Mapping
Inbound websocket payload should contain at least:
{
"conversationId": "fyj:96605",
"from": "fyj:103917",
"to": "fyj:96605",
"gid": "",
"messageType": "direct",
"text": "hello",
"botToken": "your-bot-token"
}Outbound HTTP send payload is currently:
{
"conversationId": "fyj:96605",
"from": "fyj:103917",
"to": "fyj:96605",
"gid": "",
"messageType": "direct",
"text": "hello",
"botToken": "your-bot-token"
}The plugin caches the last inbound route context and reuses from, to, gid, messageType, and botToken when replying.
Notes
- The package bundles
wsandzod. - OpenClaw plugin SDK imports remain external and are resolved from the host OpenClaw installation.
openclaw.plugin.jsonandpackage.jsonare included for npm installation and plugin discovery.
