View Module Export Code
JSON
{
"subflows": [
{
"flow": [
{
"id": 22,
"module": "json:TransformToJSON",
"version": 1,
"parameters": {
"space": ""
},
"mapper": {
"object": "{{21.data.conversations}}"
},
"metadata": {
"designer": {
"x": -485,
"y": -1267
},
"restore": {
"parameters": {
"space": {
"label": "Empty"
}
}
},
"parameters": [
{
"name": "space",
"type": "select",
"label": "Indentation",
"validate": {
"enum": [
"tab",
"2",
"4"
]
}
}
],
"expect": [
{
"name": "object",
"type": "any",
"label": "Object"
}
]
}
},
{
"id": 23,
"module": "regexp:Parser",
"version": 1,
"parameters": {
"pattern": "\"id\":(?<tag_id>\\d+),\"lighten_color\"",
"global": true,
"sensitive": true,
"multiline": false,
"singleline": false,
"continueWhenNoRes": false,
"ignoreInfiniteLoopsWhenGlobal": false
},
"mapper": {
"text": "{{22.json}}"
},
"metadata": {
"designer": {
"x": -241,
"y": -1264
},
"restore": {},
"parameters": [
{
"name": "pattern",
"type": "text",
"label": "Pattern",
"required": true
},
{
"name": "global",
"type": "boolean",
"label": "Global match",
"required": true
},
{
"name": "sensitive",
"type": "boolean",
"label": "Case sensitive",
"required": true
},
{
"name": "multiline",
"type": "boolean",
"label": "Multiline",
"required": true
},
{
"name": "singleline",
"type": "boolean",
"label": "Singleline",
"required": true
},
{
"name": "continueWhenNoRes",
"type": "boolean",
"label": "Continue the execution of the route even if the module finds no matches",
"required": true
},
{
"name": "ignoreInfiniteLoopsWhenGlobal",
"type": "boolean",
"label": "Ignore errors when there is an infinite search loop",
"required": true
}
],
"expect": [
{
"name": "text",
"type": "text",
"label": "Text"
}
],
"interface": [
{
"type": "text",
"name": "tag_id",
"label": "tag_id"
},
{
"type": "uinteger",
"name": "i",
"label": "i"
},
{
"type": "any",
"name": "__IMTMATCH__",
"label": "Fallback Match"
}
]
}
},
{
"id": 26,
"module": "util:FunctionAggregator2",
"version": 1,
"parameters": {
"fn": "count",
"feeder": 23
},
"mapper": {
"value": "{{23.tag_id}}"
},
"metadata": {
"designer": {
"x": 5,
"y": -1264
},
"restore": {
"parameters": {
"fn": {
"label": "COUNT"
}
},
"extra": {
"feeder": {
"label": "Text parser - Match pattern [23]"
}
}
},
"parameters": [
{
"name": "fn",
"type": "select",
"label": "Aggregate function",
"required": true,
"validate": {
"enum": [
"avg",
"sum",
"count",
"max",
"min"
]
}
}
],
"expect": [
{
"name": "value",
"type": "number",
"label": "Value"
}
],
"advanced": true
},
"flags": {
"groupBy": "{{23.tag_id}}"
}
},
{
"id": 27,
"module": "builtin:BasicAggregator",
"version": 1,
"parameters": {
"feeder": 26
},
"mapper": {
"__IMTKEY__": "{{26.`__IMTKEY__`}}",
"result": "{{26.result}}"
},
"metadata": {
"designer": {
"x": 253,
"y": -1264
},
"restore": {
"extra": {
"feeder": {
"label": "Tools - Numeric aggregator [26]"
},
"target": {
"label": "Custom"
}
}
}
}
},
{
"id": 28,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "tag_counts",
"scope": "roundtrip",
"value": "{{toCollection(27.array; \"__IMTKEY__\"; \"result\")}}"
},
"metadata": {
"designer": {
"x": 500,
"y": -1265
},
"restore": {
"expect": {
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "name",
"type": "text",
"label": "Variable name",
"required": true
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
},
{
"name": "value",
"type": "any",
"label": "Variable value"
}
],
"interface": [
{
"name": "tag_counts",
"label": "tag_counts",
"type": "any"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}