A flow worker takes user input and processes it using the rules set out by a bot builder on the ServisBOT canvas. A flow worker can be created through the CLI or through the Add Resource
button on a bot’s detail page.
Type: Flow Worker
Save this json to a file and create a worker using the cli command sb-cli worker create file.json
{
"Data": {
"settings": {
"type": "flows",
"body": {
"users": {
"_": {
"editor": {
"view": {
"view-grid-size": 20,
"view-snap-grid": true,
"view-show-grid": true,
"view-show-tips": true,
"view-node-status": true
}
}
}
}
},
"path": "/"
},
"sessions": {
"type": "flows",
"body": [],
"path": "/"
},
"flows": {
"type": "flows",
"body": [
{
"disabled": false,
"id": "a635abea.f55998",
"label": "Flow 1",
"type": "tab",
"info": ""
}
],
"path": "/"
},
"credentials": {
"type": "flows",
"body": {},
"path": "/"
}
},
"Organization": "trollin",
"Config": {
"Avatar": "default-bot"
},
"Enabled": true,
"Description": "A classic flow based worker which messages terminate in",
"Type": "r2-avalanche-worker",
"Name": "blankflowClassicFlowWorker",
"Status": "published",
}
Once you have created the worker using the CLI, it will return an ID for you. You need to then update/create a bot and place the filter worker at the top with the id and the type of r2-avalanche-worker