The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Playwright Results -> Slack",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "playwright-results"
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"functionCode": "const body = $json; const summary = body.summary || {}; return [{ json: { text: `Playwright: ${summary.passed}/${summary.total} passed \u00b7 Failed: ${summary.failed} \u00b7 Duration: ${summary.duration || 'n/a'}ms`, raw: body } }];"
},
"name": "Format",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
450,
300
]
},
{
"parameters": {
"resource": "message",
"operation": "post",
"text": "={{$json[\"text\"]}}",
"channel": "#general"
},
"name": "Slack",
"type": "n8n-nodes-base.slack",
"typeVersion": 1,
"position": [
650,
300
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Format",
"type": "main",
"index": 0
}
]
]
},
"Format": {
"main": [
[
{
"node": "Slack",
"type": "main",
"index": 0
}
]
]
}
}
}
About this workflow
Playwright Results -> Slack. Uses slack. Webhook trigger; 3 nodes.
Source: https://github.com/KiranAITesting/MCPDemo/blob/e0d017f4c051aae8a1916c48b05673d2fc0527c9/.n8n/workflows/playwright-to-slack.json — original creator credit. Request a take-down →