Key concepts
Tools
Router
9min
a router allows you to branch the {{scenario singular lowercase}} flow into several chains of modules each route processes the data differently according to the condition you set filters help you to determine conditions via different operators such as less than , greater than , and so on order routes in the sequence you want and set up a fallback route that will process data that doesn't fit other routes see our {{scenario singular lowercase}} template for the controlled distribution of data flow adding a router to a {{scenario singular lowercase}} you can add a router in two different ways connect a router to a module click add another module in the search box, type flow controls and click it select router insert a router between two modules right click the bridge between two modules, and select add a router order routes you can set the order of routes in which {{product name}} processes them in the {{scenario singular lowercase}} this example shows the router that determines which hint to send you on slack according to tomorrow's weather click the router that contains the routes you want to order right click and select order routes a window appears click arrows and move routes according to your needs optional select auto align arranges with set order to visually arrange modules on the {{scenario singular lowercase}} canvas according to the set order click apply routes are processed sequentially, not in parallel {{product name}} won't process the second route unless it finishes processing the first one the fallback route a fallback route processes data that doesn't fit the condition of all other routes you can mark a route as a fallback if you want it to be executed last you can set up a filter for a fallback route same as for other routes to set up a fallback route, follow the steps click the route you want to mark as a fallback a filter window appears select yes click save you can recognize the fallback route by the special arrow icon on the router module select a whole branch you can manage all modules in the branch at once click the route menu, then click select whole branch it selects all the following modules you can copy or delete all selected modules at once example of a router with a fallback route you need to receive a message on slack depending on tomorrow's weather if the weather is hot, the message is wear shorts if the weather is cold, the message is wear a jacket if the weather is neither hot nor cold, the message is better stay at home the scenario looks like that the scenario flow is the weather module gets data about tomorrow's weather data goes to the router that processes routes in the determined order a the hot weather route sends the message to slack, if data fits the filter condition b the cold weather route sends the message to slack, if data fist the filter condition c the fallback route sends the message to slack, if data doesn't fit previous routes