From simple workflow patterns to end-to-end automation: case studies in marketing, sales, operations, and IT; event-based orchestration with notification chains; approval workflows with human-in-the-loop; as well as chatbot, AI, and RPA tool integration.

In episode 19 you prepared runbooks, SLAs, and backups — the operational foundation that makes automation safe to run. Now it's time to use all that foundation to build something with real impact. The question that always comes after mastering n8n's mechanics: "okay, so what should I automate now, and what should the design look like?"
This episode answers with patterns and case studies:
Before diving into case studies, master three basic patterns you'll use repeatedly:
SplitInBatches to process rows one by one, then Merge to combine the results — the foundation from episode 6.Execute Workflow node. This enables reuse and makes testing each part easier.Combining the three produces an architecture that's easy to read, easy to test, and easy to swap out parts — exactly the same reason we break code into functions.
First case study: lead enrichment for a sales team. A new lead fills out a form on a landing page, and the system must complete their data, add them to the CRM, and notify the relevant sales rep — without a human typing anything.
Payload from the form webhook:
{
"lead": {
"email": "rizki@example.com",
"company": "PT Contoh Sejahtera",
"source": "landing-page"
}
}The flow: Webhook receives the payload → HTTP Request calls the enrichment API (for example a company domain lookup) → IF separates valid leads from invalid ones → valid leads enter the HubSpot node → the notification branch sends a message to the sales team's Slack channel.
The design key is the IF node: the error branch (invalid leads) must also be handled — sent to a "manual review" folder rather than silently lost. This pattern is what distinguishes trusted automation from blamed automation.
Good automation reacts to events, not runs on blind schedules. A real example: new employee onboarding. When HR adds an employee to a spreadsheet, one event triggers an orchestrator that runs many tasks in parallel:
Each task is a separate sub-workflow, and their results are combined into a notification chain — one summary message sent in sequence to HR, IT, and the manager:
urutan:
- step: 1
channel: slack
target: "#hr-internal"
pesan: "Provisi akun selesai untuk semua item"
- step: 2
channel: email
target: manager@example.com
pesan: "Ringkasan tugas onboarding terlampir"Notification chains are useful when different audiences need different information. One parent workflow produces one set of results, then small branches deliver them to their respective channels — concise and easy to change.
Not every decision should be handed to a machine. An approval workflow is the pattern for putting a human in the middle of automation: the system does everything, except one decision that needs approval.
A common pattern uses the Wait node with the resume on webhook option. The flow:
Wait pauses execution while sending an approval request to Slack.The approval data is carried as resume webhook parameters:
{
"workflowId": "xyz789",
"runId": "abc123",
"token": "approval-token-rahasia",
"decision": "approved"
}Info
Protect the approval endpoint with a random token generated per execution. An endpoint anyone can call means approval decisions can be manipulated from outside — a gap often missed in demos.
Chatbot integration opens a second avenue for automation: users come to the automation, not the other way around. With the Telegram or Discord node, a workflow becomes the backend of a bot that answers questions, runs actions, and reports status.
Sending a message to Telegram via the HTTP Request node:
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendMessage" \
-H "Content-Type: application/json" \
-d '{"chat_id":"<CHAT_ID>","text":"Order baru masuk ke sistem"}'Beyond chatbots, the next trend is AI agents. With the LangChain nodes — from the AI discussion in previous episodes — n8n can hold conversation memory, choose which tool to call, and execute actions in natural language. For automations that need to control desktop application interfaces, combine it with RPA tools like Browserless or UI Vision: n8n handles the logic and data, RPA handles the clicks and keystrokes in applications that don't have APIs.
In this episode you saw how basic nodes are assembled into systems:
Once you have many workflows, you need to know where resources come from. In episode 21 we explore the n8n community, marketplace, and ecosystem — community nodes, templates, the community workflow library, and how you can contribute to the open-source project. See you there!