这里写个配置的例子。
{
"actions": {
"test_webhook": {
"webhook": {
"scheme": "http",
"host": "10.255.255.101",
"port": 3000,
"method": "post",
"path": "/",
"params": {},
"headers": {
"Content-Type": "application/json"
},
"body": "{\"text\":{{#toJson}}ctx.payload{{/toJson}},\"channel\":\"123123@chatroom\",\"username\":\"{{ctx.metadata.name}}\"}",
"connection_timeout_in_millis": 5000,
"read_timeout_millis": 5000
}
}
}
}参考文档