mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-03 02:07:06 +02:00
49 lines
2.4 KiB
JSON
49 lines
2.4 KiB
JSON
{
|
|
"conversation": [
|
|
{
|
|
"role": "user",
|
|
"text": "I want a webhook that fans out incoming notifications to different places depending on how urgent they are."
|
|
},
|
|
{
|
|
"role": "assistant",
|
|
"text": "What does each incoming payload look like, and what are the urgency levels?"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"text": "JSON with `level` (high, medium, or low), `title`, and `message`. Each notification should be forwarded with title + message intact."
|
|
},
|
|
{
|
|
"role": "assistant",
|
|
"text": "Where should each level go?"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"text": "High → Microsoft Teams (team ID '9b4c3a2f-1d8e-4f5b-a6c7-8e9f0b1d2c3a', channel ID '19:a1b2c3d4e5f6@thread.tacv2'). Medium → Slack #notifications. Low → email to alerts@ourcompany.com via Gmail."
|
|
}
|
|
],
|
|
"messageBudget": 6,
|
|
"complexity": "medium",
|
|
"tags": ["build", "webhook", "switch", "microsoft-teams", "slack", "gmail", "routing"],
|
|
"triggerType": "webhook",
|
|
"executionScenarios": [
|
|
{
|
|
"name": "high-priority",
|
|
"description": "A high-priority notification is routed to Microsoft Teams",
|
|
"dataSetup": "The webhook receives { \"level\": \"high\", \"title\": \"Server Down\", \"message\": \"Production database is unreachable\" }. The Microsoft Teams node returns a success response.",
|
|
"successCriteria": "The workflow routes the high-priority notification to Microsoft Teams. The Teams message contains 'Server Down' and the database message. No other channels receive the message."
|
|
},
|
|
{
|
|
"name": "medium-priority",
|
|
"description": "A medium-priority notification is routed to Slack",
|
|
"dataSetup": "The webhook receives { \"level\": \"medium\", \"title\": \"Deployment Complete\", \"message\": \"Version 2.5.0 deployed to staging\" }. The Slack node returns a success response.",
|
|
"successCriteria": "The workflow routes the medium-priority notification to Slack #notifications. The Slack message contains the deployment details."
|
|
},
|
|
{
|
|
"name": "low-priority",
|
|
"description": "A low-priority notification is routed to email",
|
|
"dataSetup": "The webhook receives { \"level\": \"low\", \"title\": \"Weekly Report Ready\", \"message\": \"The weekly analytics report has been generated\" }. The Gmail node returns a success response.",
|
|
"successCriteria": "The workflow routes the low-priority notification to Gmail. The email is sent to alerts@ourcompany.com with the report notification."
|
|
}
|
|
]
|
|
}
|