Building a First n8n Workflow: A Step-by-Step Tutorial
Step-by-step tutorial for building a GitHub-to-Slack notification workflow in n8n with conditional routing and logging.
The Bottom Line: A basic n8n workflow connecting a webhook trigger to a conditional branch and two output actions can be built and tested in under 30 minutes; n8n's visual canvas and built-in execution log make debugging straightforward for first-time users.
Building Your First n8n Workflow: A Step-by-Step Tutorial
n8n is a powerful workflow automation platform that gives teams visual building and code-level control in one tool. This tutorial walks you through building a first real workflow from scratch.
What We Will Build
We will create a workflow that monitors a GitHub repository for new issues and sends a formatted notification to a Slack channel with issue details. This is a practical, real-world automation that many development teams use.
Workflow Architecture
Here is the overall flow of our automation:
flowchart TD
A[GitHub Trigger: New Issue Created] --> B[Extract Issue Details]
B --> C{Is it a bug?}
C -->|Yes| D[Format Bug Alert Message]
C -->|No| E[Format General Notification]
D --> F[Send to #bugs Slack Channel]
E --> G[Send to #general Slack Channel]
F --> H[Log to Google Sheet]
G --> H[Log to Google Sheet]
Prerequisites
Before starting, make sure you have:
- n8n installed either self-hosted (Docker recommended) or a cloud account at app.n8n.cloud
- GitHub account with a repository to monitor
- Slack workspace with permission to install apps
- Google account for the Google Sheets logging step (optional)
Step 1: Set Up the GitHub Trigger
Every n8n workflow starts with a trigger node. This is the event that kicks off the automation.
- Open n8n and click Add workflow
- Click the + button to add a first node
- Search for GitHub Trigger and select it
- Click Create new credential and authenticate with your GitHub account
- Configure the trigger:
- Repository Owner: your GitHub username or organization
- Repository Name: the repo organizations want to monitor
- Events: select Issues and check opened
- Click Listen for Test Event and create a test issue in your repo to capture sample data
The trigger node will now fire every time a new issue is created in your repository.
Step 2: Extract and Transform Issue Data
Add a Set node to extract the fields we need:
- Click + after the GitHub Trigger node
- Add a Set node
- Configure the following fields:
- title:
{{ $json.issue.title }} - body:
{{ $json.issue.body }} - author:
{{ $json.issue.user.login }} - url:
{{ $json.issue.html_url }} - labels:
{{ $json.issue.labels.map(l => l.name).join(", ") }} - is_bug:
{{ $json.issue.labels.some(l => l.name === "bug") }}
- title:
This step normalizes the GitHub webhook data into a clean format for the rest of the workflow.
Step 3: Add Conditional Routing
We want bug reports to go to a dedicated channel. Add an IF node:
- Click + after the Set node
- Add an IF node
- Set the condition: is_bug equals true
- This creates two output branches: true (bugs) and false (other issues)
Step 4: Configure Slack Notifications
Add two Slack nodes, one for each branch:
Bug Alert (True branch)
- Click + on the true output
- Add a Slack node
- Connect your Slack workspace credential
- Configure:
- Channel: #bugs (or your bug channel)
- Message Text: Format a rich message:
:bug: *New Bug Report*
*Title:* {{ $json.title }}
*Author:* {{ $json.author }}
*Labels:* {{ $json.labels }}
*Link:* {{ $json.url }}
{{ $json.body }}
General Notification (False branch)
- Click + on the false output
- Add another Slack node
- Configure similarly but send to #general with a different emoji:
:clipboard: *New Issue*
*Title:* {{ $json.title }}
*Author:* {{ $json.author }}
*Link:* {{ $json.url }}
Step 5: Log to Google Sheets (Optional)
Add a Google Sheets node after both Slack nodes to maintain a log:
- Add a Merge node to combine both branches
- Add a Google Sheets node
- Connect your Google account
- Select the spreadsheet and worksheet
- Map columns: Date, Title, Author, Type (bug/other), URL
This creates an automatic issue log that the team can reference.
Step 6: Test and Activate
- Click Execute Workflow to run a test with the sample data from Step 1
- Verify each node executed successfully (green checkmarks)
- Check your Slack channels for the test notification
- Check your Google Sheet for the logged entry
- Fix any field mapping issues
- Toggle the workflow to Active in the top-right corner
Error Handling
Add error handling to make the workflow production-ready:
- Click on any node and select Settings
- Enable Continue on Fail for non-critical nodes (like the Google Sheets logging)
- Add an Error Trigger workflow that sends you a notification if the main workflow fails
- Set up retry logic for transient API failures
Next Steps
Now that organizations have a working workflow:
- Add more triggers: Monitor pull requests, comments, or releases
- Enrich notifications: Add assignee information, milestone details, or priority labels
- Build related workflows: Auto-assign issues based on labels, create Jira tickets from GitHub issues, or generate weekly summary reports
- Explore the n8n community: Browse 1,000+ workflow templates at n8n.io/workflows for inspiration
This pattern of trigger, transform, route, and action applies to virtually any automation users will build. The concepts transfer directly to more complex workflows.
Tools Mentioned
Activepieces
No-code workflow automation with self-hosting and AI-powered features
Workflow AutomationAutomatisch
Open-source Zapier alternative
Workflow AutomationCamunda
Open-source workflow and process automation platform using BPMN.
Workflow AutomationHuginn
Build agents that monitor and act on your behalf
Workflow AutomationRelated Guides
Automation for SaaS Companies: Operations, Billing, and Growth
SaaS companies rely on automation for trial-to-paid conversion, usage-based billing reconciliation, customer onboarding sequences, and internal operations. As of 2026, the typical mid-market SaaS company automates between 15 and 40 internal workflows using a combination of iPaaS tools and custom integrations. This guide covers the most common automation patterns in SaaS operations, the tools best suited for each, and the implementation considerations that distinguish successful deployments from failed ones.
Automation for Real Estate: Lead Routing, Document Management, and CRM Workflows
Real estate businesses use automation to route leads from listing portals, manage document workflows for transactions, send automated follow-ups, and synchronize property data across platforms. As of 2026, the average mid-size brokerage automates 8 to 15 workflows spanning lead capture, nurture sequences, and transaction coordination. This guide details the automation patterns that deliver measurable ROI in residential and commercial real estate operations.
Automation for Digital Agencies: Client Onboarding, Reporting, and Project Management
Digital and marketing agencies automate client onboarding, project setup, time tracking aggregation, reporting pipelines, and internal communications. As of 2026, agencies with 10 or more employees typically maintain 12 to 25 automated workflows to reduce administrative overhead and ensure consistent service delivery. This guide covers the automation patterns that scale with agency growth, from freelancer-to-team transitions through multi-office operations.
Related Rankings
Best Automation Tools for Marketing Teams in 2026
A ranked evaluation of automation tools used by marketing teams for campaign operations, data management, lead workflows, and cross-platform coordination. Unlike dedicated marketing automation platforms (email tools), this ranking evaluates general-purpose automation tools through the lens of marketing team utility. As of March 2026, marketing teams increasingly rely on a combination of workflow automation platforms and specialized marketing tools. This ranking covers the broader marketing operations (MarOps) stack -- the tools that marketing teams use day-to-day for operations, not just email campaigns. Tools were scored across five criteria specific to marketing team needs: workflow coverage, marketer accessibility, integration breadth with marketing platforms, cost efficiency, and data handling capabilities.
Best Process Orchestration Platforms 2026
Process orchestration platforms coordinate complex, multi-step workflows with dependency management, failure handling, and execution monitoring. Unlike simple automation tools that chain triggers and actions, orchestration platforms handle saga patterns, parallel execution, conditional branching, and durable execution that survives infrastructure failures. This ranking evaluates 7 orchestration platforms as of March 2026, covering both enterprise-grade BPMN engines and developer-focused open-source frameworks. The evaluation spans orchestration depth (workflow complexity support), scalability (concurrent execution capacity), developer experience (SDK quality and debugging tools), monitoring (observability and failure recovery), and community (GitHub activity and commercial support). Scores reflect production deployments managing workflows from 50 to 15,000 daily runs.
Common Questions
Can you automate CRM workflows in 2026?
Yes. Most CRM platforms (HubSpot, Salesforce, Pipedrive) support native workflow automation for lead assignment, deal stage progression, and email sequences. For cross-platform CRM automation (syncing data between CRM and other tools), iPaaS platforms like Zapier, Make, or Workato connect CRMs to 1,000+ external applications.
How do you automate lead generation in 2026?
Automated lead generation in 2026 typically combines form capture (JotForm, Typeform), enrichment (Clearbit, Apollo), routing (Zapier, Make), CRM ingestion (HubSpot, Salesforce), and nurture sequences (ActiveCampaign). The key is connecting these stages so leads flow from capture to qualification without manual handoffs.
How does Make compare to Monday.com for automation in 2026?
Make is a dedicated workflow automation platform with 1,800+ integrations and visual scenario building, while Monday.com is a work management platform with built-in automation recipes. Make excels at cross-application data flows; Monday.com excels at project-centric automation within its own ecosystem.
Is Kissflow worth it in 2026?
Kissflow scores 7.0/10 in 2026. The platform offers accessible process automation for business users without developer skills, but its $1,500/month starting price and limited third-party integration ecosystem reduce its competitiveness against more flexible alternatives.