Skip to main content

Automatically sort stucco leads by SLA priority in NinjaPipe with StuccoOS

Workflow preview

Workflow preview
100%
Automatically sort stucco leads by SLA priority in NinjaPipe with StuccoOS preview
Open on n8n.io

1. Workflow Overview

Who is it for This is built for the plastering and stucco owners who are out on the tools while the partner (the 'Patricia' of the business) tries to keep the admin from exploding. It's for anyone ...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.filter, n8n-nodes-base.splitinbatches, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.informationextractor, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.lmchatgroq

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Stephan Koning.

Original n8n.io source

1.1 Workflow description

Title
Automatically sort stucco leads by SLA priority in NinjaPipe with StuccoOS
Workflow name
Automatically sort stucco leads by SLA priority in NinjaPipe with StuccoOS

Who is it for

This is built for the plastering and stucco owners who are out on the tools while the partner (the 'Patricia' of the business) tries to keep the admin from exploding. It's for anyone losing money because high-value quotes or urgent fires are buried under newsletters and spam.

What it does

This workflow is the Headless Brain that turns your messy inbox into an actionable Action-Grid. It doesn't just read emails; it classifies them into a modular SLA system (Red, Orange, Yellow, Green). It instantly routes leads and complaints into specific NinjaPipe Lists, ensuring that your most critical inquiries never go cold and your "Sleeping Revenue" is protected.

The StuccoOS Method

This classifying system is a core module of the StuccoOS ecosystem. In this modular setup, your Pipeline shows the journey, but your Lists show the urgency. But even on its own, this workflow solves your "inquiry leakage" by making sure you only see what needs an immediate response.

How it works

  • The webhook triggers on every incoming email.
  • Noise Filter: It weeds out automated junk and sent items to keep your CRM data clean.
  • AI Classification: The LLM analyzes sentiment and category—identifying AFTERCARE (RED) for urgent complaints or SLEEPING REVENUE (ORANGE) for quote follow-ups.
  • Action Routing: It checks NinjaPipe for the contact. If they don't exist, it creates them.
  • SLA Injection: The contact is dropped into the correct priority List in NinjaPipe, triggering your internal response deadlines (1h, 4h, 24h, etc.).

Requirements

  • AI API Key (any will do)
  • NinjaPipe CRM account and API Token
  • AgentMail (if you want do advance labels) to feed the webhook

How to set up

  • Credentials: Connect your AI provider and NinjaPipe API token.
  • List Mapping: Open the Select CRM List for SLA node. Replace the placeholder UUIDs in the listMap with your actual NinjaPipe List IDs.
  • Webhook: OR any email trigger will work.

Note: This workflow is a modular component. It is built for NinjaPipe CRM, but it can be adapted to any CRM that supports a basic Contact + List structure through API.

Right now, this workflow mainly uses the CRM for routing and SLA tracking. It does not heavily rely on AgentMail Labels yet, but it can. Labels are a great way to organize conversations inside AgentMail before or alongside CRM sync.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - When Email Arrives

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 10 - Filter Sent Emails

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2

Block 11 - Loop Over Emails

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 12 - Extract Email Content

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - AI Email Classifier

Type / Role
@n8n/n8n-nodes-langchain.informationExtractor - informationExtractor
Config choices
Version 1.2

Block 14 - Filter Spam Emails

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2

Block 15 - Build Email Labels

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Route by SLA Category

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 17 - Notify Owner Immediately

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Create Urgent Task

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Create Standard Task

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Log Email and Wait 48h

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Chat Model Integration

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 22 - Wait 30 Seconds

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 23 - Search CRM for Contact

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 24 - Check Contact Existence

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automatically sort stucco leads by SLA priority in NinjaPipe with StuccoOS
Complexity advanced
Nodes 30
Categories Ticket Management, AI Summarization
Author Stephan Koning
Published 22 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15248/15248.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automatically sort stucco leads by SLA priority in NinjaPipe with StuccoOS do?

Who is it for This is built for the plastering and stucco owners who are out on the tools while the partner (the 'Patricia' of the business) tries to keep the admin from exploding. It's for anyone ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.