You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Router block uses AI to intelligently route workflows based on content analysis. Unlike Condition blocks that use simple rules, Routers understand context and intent.
9
+
The Router block uses AI to intelligently route workflows based on content analysis. Unlike Condition blocks that use simple rules, Routers understand context and intent. Each route you define creates a separate output port, allowing you to connect different paths to different downstream blocks.
10
10
11
11
<divclassName="flex justify-center">
12
12
<Image
13
13
src="/static/blocks/router.png"
14
-
alt="Router Block with Multiple Paths"
14
+
alt="Router Block with Multiple Route Ports"
15
15
width={500}
16
16
height={400}
17
17
className="my-6"
@@ -32,21 +32,23 @@ The Router block uses AI to intelligently route workflows based on content analy
32
32
33
33
## Configuration Options
34
34
35
-
### Content/Prompt
35
+
### Context
36
36
37
-
The content or prompt that the Router will analyze to make routing decisions. This can be:
37
+
The context that the Router will analyze to make routing decisions. This is the input data that gets evaluated against your route descriptions. It can be:
38
38
39
39
- A direct user query or input
40
40
- Output from a previous block
41
41
- A system-generated message
42
+
- Any text content that needs intelligent routing
42
43
43
-
### Target Blocks
44
+
### Routes
44
45
45
-
The possible destination blocks that the Router can select from. The Router will automatically detect connected blocks, but you can also:
46
+
Define the possible paths that the Router can take. Each route consists of:
46
47
47
-
- Customize the descriptions of target blocks to improve routing accuracy
48
-
- Specify routing criteria for each target block
49
-
- Exclude certain blocks from being considered as routing targets
48
+
-**Route Title**: A name for the route (e.g., "Sales", "Support", "Technical")
49
+
-**Route Description**: A clear description of when this route should be selected (e.g., "Route here when the query is about pricing, purchasing, or sales inquiries")
50
+
51
+
Each route you add creates a **separate output port** on the Router block. Connect each port to the appropriate downstream block for that route.
50
52
51
53
### Model Selection
52
54
@@ -66,35 +68,46 @@ Your API key for the selected LLM provider. This is securely stored and used for
66
68
67
69
## Outputs
68
70
69
-
-**`<router.prompt>`**: Summary of the routing prompt
0 commit comments