# Rake User App routing rules ## Description // TODO describe use case ## Collection workspaceRoutingConditions ### Schema > Logic for ui same like for proactive rules ``` { workspaceRoutingConditionId, name, select, second, multiselect, platformIds, } ``` Example: ``` { workspaceRoutingConditionId: 0, name: "Web-page url", platformIds:[ 2 ], select: [ { "name" : "is any", "conditionId" : 11 }, { "name" : "equals", "conditionId" : 12, "second" : { "type" : "text", "placeholder" : "value" } }, { "name" : "contains", "conditionId" : 13, "second" : { "type" : "text", "placeholder" : "value" } }, { "name" : "does not contain", "conditionId" : 14, "second" : { "type" : "text", "placeholder" : "value" } } ], }, { workspaceRoutingConditionId: 1, name: "Facebook page name", }, { workspaceRoutingConditionId: 2, name: "Twilio SMS area code", }, { workspaceRoutingConditionId: 3, name: "Text field", select: [ { "name" : "is any", "conditionId" : 11 }, { "name" : "equals", "conditionId" : 12, "second" : { "type" : "text", "placeholder" : "value" } }, { "name" : "contains", "conditionId" : 13, "second" : { "type" : "text", "placeholder" : "value" } }, { "name" : "does not contain", "conditionId" : 14, "second" : { "type" : "text", "placeholder" : "value" } } ], } ``` ### UI On blade: second | select | multiselect ## Example in collection workspace ``` { workspaceRoutingDefault: { entityId: 4534534 }, workspaceRoutingRules:[ { workspaceRoutingRuleId: 0, name: 'Custom name', triggers: [ { workspaceRoutingConditionId: 0, conditionId: 11, arguments: [ 'https://domain.com/sales', ] }, { workspaceRoutingConditionId: 0, conditionId: 11, arguments: [ 'https://domain.com/support?cityId=56', ] } ], entityId: 3453, priority: 1, }, { workspaceRoutingRuleId: 1, triggers: [ { workspaceRoutingConditionId: 1, conditionId: 11, arguments: [ 'Qwer', ] }, ], entityId: 3478, priority: 3, }, { workspaceRoutingRuleId: 2, triggers: [ { workspaceRoutingConditionId: 2, conditionId: 11, arguments:[ 'https://domain.com/sales?cityId=56', ] }, ], entityId: 3478, priority: 2, } ] } ```