Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a2433251cd |
@@ -0,0 +1,81 @@
|
|||||||
|
---
|
||||||
|
name: conditional-request-routing-workflow
|
||||||
|
version: 1.0.0
|
||||||
|
description: Collect a request, classify it via branching logic, and route to an approval
|
||||||
|
or rejection handler to produce a final result
|
||||||
|
inputs:
|
||||||
|
- name: request
|
||||||
|
type: string
|
||||||
|
description: The input text or request to be evaluated and routed
|
||||||
|
steps:
|
||||||
|
- node: Start
|
||||||
|
agent_type: input
|
||||||
|
description: Prompt user and capture the request into state field 'request'
|
||||||
|
next: Classify
|
||||||
|
- node: Classify
|
||||||
|
agent_type: branching
|
||||||
|
description: Evaluate the request and set 'decision' field, routing to Approve on
|
||||||
|
success or Reject on failure
|
||||||
|
input_fields:
|
||||||
|
- request
|
||||||
|
output_field: decision
|
||||||
|
next_node: Approve
|
||||||
|
on_failure: Reject
|
||||||
|
- node: Approve
|
||||||
|
agent_type: default
|
||||||
|
description: Format and output an approval message containing the request
|
||||||
|
input_fields:
|
||||||
|
- request
|
||||||
|
output_field: result
|
||||||
|
prompt: 'Request approved: {request}'
|
||||||
|
- node: Reject
|
||||||
|
agent_type: default
|
||||||
|
description: Format and output a rejection message containing the request
|
||||||
|
input_fields:
|
||||||
|
- request
|
||||||
|
output_field: result
|
||||||
|
prompt: 'Request rejected: {request}'
|
||||||
|
outputs:
|
||||||
|
- name: result
|
||||||
|
type: string
|
||||||
|
description: Final formatted message indicating the outcome (approved or rejected)
|
||||||
|
- name: decision
|
||||||
|
type: string
|
||||||
|
description: Routing decision produced by the branching node
|
||||||
|
tags: []
|
||||||
|
metadata:
|
||||||
|
source_repo: https://github.com/jwwelbor/AgentMap.git
|
||||||
|
extracted_at: ''
|
||||||
|
confidence: 0.92
|
||||||
|
---
|
||||||
|
|
||||||
|
# conditional-request-routing-workflow
|
||||||
|
|
||||||
|
Collect a request, classify it via branching logic, and route to an approval or rejection handler to produce a final result
|
||||||
|
|
||||||
|
## Steps
|
||||||
|
|
||||||
|
1. {'node': 'Start', 'agent_type': 'input', 'description': "Prompt user and capture the request into state field 'request'", 'next': 'Classify'}
|
||||||
|
2. {'node': 'Classify', 'agent_type': 'branching', 'description': "Evaluate the request and set 'decision' field, routing to Approve on success or Reject on failure", 'input_fields': ['request'], 'output_field': 'decision', 'next_node': 'Approve', 'on_failure': 'Reject'}
|
||||||
|
3. {'node': 'Approve', 'agent_type': 'default', 'description': 'Format and output an approval message containing the request', 'input_fields': ['request'], 'output_field': 'result', 'prompt': 'Request approved: {request}'}
|
||||||
|
4. {'node': 'Reject', 'agent_type': 'default', 'description': 'Format and output a rejection message containing the request', 'input_fields': ['request'], 'output_field': 'result', 'prompt': 'Request rejected: {request}'}
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
|
- {'name': 'request', 'type': 'string', 'description': 'The input text or request to be evaluated and routed'}
|
||||||
|
|
||||||
|
## Outputs
|
||||||
|
|
||||||
|
- {'name': 'result', 'type': 'string', 'description': 'Final formatted message indicating the outcome (approved or rejected)'}
|
||||||
|
- {'name': 'decision', 'type': 'string', 'description': 'Routing decision produced by the branching node'}
|
||||||
|
|
||||||
|
## Failure Modes
|
||||||
|
|
||||||
|
- Empty or missing request input prevents meaningful classification
|
||||||
|
- Branching node fails to resolve a valid route and defaults to rejection path
|
||||||
|
- Prompt template variable missing causes malformed output
|
||||||
|
|
||||||
|
## Source
|
||||||
|
|
||||||
|
Extracted from: [https://github.com/jwwelbor/AgentMap.git](https://github.com/jwwelbor/AgentMap.git)
|
||||||
|
Confidence: 0.92
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Commands: conditional-request-routing-workflow
|
||||||
|
|
||||||
|
## Available Commands
|
||||||
|
|
||||||
|
- `/skill conditional-request-routing-workflow` — Load this skill
|
||||||
|
- `/run conditional-request-routing-workflow` — Execute workflow
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# Examples: conditional-request-routing-workflow
|
||||||
|
|
||||||
|
## Usage Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
# How to use this skill
|
||||||
|
# Inputs: {'name': 'request', 'type': 'string', 'description': 'The input text or request to be evaluated and routed'}
|
||||||
|
# Process: {'node': 'Start', 'agent_type': 'input', 'description': "Prompt user and capture the request into state field 'request'", 'next': 'Classify'} → {'node': 'Classify', 'agent_type': 'branching', 'description': "Evaluate the request and set 'decision' field, routing to Approve on success or Reject on failure", 'input_fields': ['request'], 'output_field': 'decision', 'next_node': 'Approve', 'on_failure': 'Reject'} → {'node': 'Approve', 'agent_type': 'default', 'description': 'Format and output an approval message containing the request', 'input_fields': ['request'], 'output_field': 'result', 'prompt': 'Request approved: {request}'}
|
||||||
|
# Outputs: {'name': 'result', 'type': 'string', 'description': 'Final formatted message indicating the outcome (approved or rejected)'}, {'name': 'decision', 'type': 'string', 'description': 'Routing decision produced by the branching node'}
|
||||||
|
```
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"name": "conditional-request-routing-workflow",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"goal": "Collect a request, classify it via branching logic, and route to an approval or rejection handler to produce a final result",
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "request",
|
||||||
|
"type": "string",
|
||||||
|
"description": "The input text or request to be evaluated and routed"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"node": "Start",
|
||||||
|
"agent_type": "input",
|
||||||
|
"description": "Prompt user and capture the request into state field 'request'",
|
||||||
|
"next": "Classify"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"node": "Classify",
|
||||||
|
"agent_type": "branching",
|
||||||
|
"description": "Evaluate the request and set 'decision' field, routing to Approve on success or Reject on failure",
|
||||||
|
"input_fields": [
|
||||||
|
"request"
|
||||||
|
],
|
||||||
|
"output_field": "decision",
|
||||||
|
"next_node": "Approve",
|
||||||
|
"on_failure": "Reject"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"node": "Approve",
|
||||||
|
"agent_type": "default",
|
||||||
|
"description": "Format and output an approval message containing the request",
|
||||||
|
"input_fields": [
|
||||||
|
"request"
|
||||||
|
],
|
||||||
|
"output_field": "result",
|
||||||
|
"prompt": "Request approved: {request}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"node": "Reject",
|
||||||
|
"agent_type": "default",
|
||||||
|
"description": "Format and output a rejection message containing the request",
|
||||||
|
"input_fields": [
|
||||||
|
"request"
|
||||||
|
],
|
||||||
|
"output_field": "result",
|
||||||
|
"prompt": "Request rejected: {request}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "result",
|
||||||
|
"type": "string",
|
||||||
|
"description": "Final formatted message indicating the outcome (approved or rejected)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "decision",
|
||||||
|
"type": "string",
|
||||||
|
"description": "Routing decision produced by the branching node"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"failure_modes": [
|
||||||
|
"Empty or missing request input prevents meaningful classification",
|
||||||
|
"Branching node fails to resolve a valid route and defaults to rejection path",
|
||||||
|
"Prompt template variable missing causes malformed output"
|
||||||
|
],
|
||||||
|
"confidence": 0.92,
|
||||||
|
"explanation": "Extracted from the ReviewFlow CSV example in the AgentMap README. This is a declarative, CSV-defined LangGraph workflow demonstrating the reusable pattern of input -> branching classification -> conditional handling paths. It can be generalized for ticket triage, content moderation, or any route-by-condition use case.",
|
||||||
|
"source_repo": "https://github.com/jwwelbor/AgentMap.git",
|
||||||
|
"score": 1.0
|
||||||
|
}
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
# Tests: text-concatenation-workflow
|
# Tests: conditional-request-routing-workflow
|
||||||
|
|
||||||
## Test Checklist
|
## Test Checklist
|
||||||
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
---
|
|
||||||
name: text-concatenation-workflow
|
|
||||||
version: 1.0.0
|
|
||||||
description: Concatenate two text strings and produce the combined output.
|
|
||||||
inputs:
|
|
||||||
- text_a (string)
|
|
||||||
- text_b (string)
|
|
||||||
steps:
|
|
||||||
- Create a Text node with value set to input text_a.
|
|
||||||
- Create a second Text node with value set to input text_b.
|
|
||||||
- Create a Concat node with inputs a and b.
|
|
||||||
- Create an Output node.
|
|
||||||
- Connect Text node a 'value' port to Concat node 'a' port.
|
|
||||||
- Connect Text node b 'value' port to Concat node 'b' port.
|
|
||||||
- Connect Concat node 'value' port to Output node 'value' port.
|
|
||||||
- Execute/cook the graph from the Output node to obtain the result.
|
|
||||||
outputs:
|
|
||||||
- concatenated_text (string)
|
|
||||||
tags: []
|
|
||||||
metadata:
|
|
||||||
source_repo: https://github.com/temiroff/Blacknode.git
|
|
||||||
extracted_at: ''
|
|
||||||
confidence: 0.95
|
|
||||||
---
|
|
||||||
|
|
||||||
# text-concatenation-workflow
|
|
||||||
|
|
||||||
Concatenate two text strings and produce the combined output.
|
|
||||||
|
|
||||||
## Steps
|
|
||||||
|
|
||||||
1. Create a Text node with value set to input text_a.
|
|
||||||
2. Create a second Text node with value set to input text_b.
|
|
||||||
3. Create a Concat node with inputs a and b.
|
|
||||||
4. Create an Output node.
|
|
||||||
5. Connect Text node a 'value' port to Concat node 'a' port.
|
|
||||||
6. Connect Text node b 'value' port to Concat node 'b' port.
|
|
||||||
7. Connect Concat node 'value' port to Output node 'value' port.
|
|
||||||
8. Execute/cook the graph from the Output node to obtain the result.
|
|
||||||
|
|
||||||
## Inputs
|
|
||||||
|
|
||||||
- text_a (string)
|
|
||||||
- text_b (string)
|
|
||||||
|
|
||||||
## Outputs
|
|
||||||
|
|
||||||
- concatenated_text (string)
|
|
||||||
|
|
||||||
## Failure Modes
|
|
||||||
|
|
||||||
- Missing or invalid text inputs.
|
|
||||||
- Graph execution error if nodes are not properly connected.
|
|
||||||
- Concat node may not handle non-string types.
|
|
||||||
|
|
||||||
## Source
|
|
||||||
|
|
||||||
Extracted from: [https://github.com/temiroff/Blacknode.git](https://github.com/temiroff/Blacknode.git)
|
|
||||||
Confidence: 0.95
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Commands: text-concatenation-workflow
|
|
||||||
|
|
||||||
## Available Commands
|
|
||||||
|
|
||||||
- `/skill text-concatenation-workflow` — Load this skill
|
|
||||||
- `/run text-concatenation-workflow` — Execute workflow
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# Examples: text-concatenation-workflow
|
|
||||||
|
|
||||||
## Usage Example
|
|
||||||
|
|
||||||
```python
|
|
||||||
# How to use this skill
|
|
||||||
# Inputs: text_a (string), text_b (string)
|
|
||||||
# Process: Create a Text node with value set to input text_a. → Create a second Text node with value set to input text_b. → Create a Concat node with inputs a and b.
|
|
||||||
# Outputs: concatenated_text (string)
|
|
||||||
```
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "text-concatenation-workflow",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"goal": "Concatenate two text strings and produce the combined output.",
|
|
||||||
"inputs": [
|
|
||||||
"text_a (string)",
|
|
||||||
"text_b (string)"
|
|
||||||
],
|
|
||||||
"steps": [
|
|
||||||
"Create a Text node with value set to input text_a.",
|
|
||||||
"Create a second Text node with value set to input text_b.",
|
|
||||||
"Create a Concat node with inputs a and b.",
|
|
||||||
"Create an Output node.",
|
|
||||||
"Connect Text node a 'value' port to Concat node 'a' port.",
|
|
||||||
"Connect Text node b 'value' port to Concat node 'b' port.",
|
|
||||||
"Connect Concat node 'value' port to Output node 'value' port.",
|
|
||||||
"Execute/cook the graph from the Output node to obtain the result."
|
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
"concatenated_text (string)"
|
|
||||||
],
|
|
||||||
"failure_modes": [
|
|
||||||
"Missing or invalid text inputs.",
|
|
||||||
"Graph execution error if nodes are not properly connected.",
|
|
||||||
"Concat node may not handle non-string types."
|
|
||||||
],
|
|
||||||
"confidence": 0.95,
|
|
||||||
"explanation": "Extracted from examples/converted_text_pipeline.py which demonstrates a simple Blacknode graph workflow: two Text nodes feed a Concat node that outputs via an Output node. This pattern is reusable for any text combination task.",
|
|
||||||
"source_repo": "https://github.com/temiroff/Blacknode.git",
|
|
||||||
"score": 1.0
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user