Skip to main content

Log invoice approval decisions from Slack to Google Sheets

Workflow preview

Workflow preview
100%
Log invoice approval decisions from Slack to Google Sheets preview
Open on n8n.io

1. Workflow Overview

What This Workflow Does Listens for button clicks from the Invoice → Slack Approval workflow. When someone clicks Approve, Reject, or Flag on an invoice in Slack, this workflow captures that decisi...

Best for

  • Invoice Processing automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.switch, n8n-nodes-base.googlesheets, n8n-nodes-base.slack, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Log invoice approval decisions from Slack to Google Sheets
Workflow name
Log invoice approval decisions from Slack to Google Sheets

What This Workflow Does

Listens for button clicks from the Invoice → Slack Approval workflow. When someone clicks Approve, Reject, or Flag on an invoice in Slack, this workflow captures that decision, logs it to Google Sheets, and sends a confirmation notification.

How It Works

  1. Webhook Trigger – Receives POST request from Slack when a button is clicked
  2. Parse Payload – Extracts the JSON payload from Slack's request body
  3. Extract Decision Data – Pulls decision, user info, and invoice details from the message
  4. Route by Decision – Branches to Approved, Rejected, or Flagged path
  5. Log to Sheets – Appends invoice data to the appropriate sheet tab
  6. Notify via Slack – Sends confirmation DM to the approver

Decision Routes

  • Approved → Logs to "Approved" sheet → DM confirmation
  • Rejected → Logs to "Rejected" sheet → DM confirmation
  • 🚩 Flagged → Logs to "Flagged" sheet → DM for manual review

Setup Guide

1. Create Google Sheet

  1. Create a new Google Sheet with 3 tabs: Approved, Rejected, Flagged
  2. Add these column headers to each tab:
  • Supplier Name
  • Invoice Number
  • Amount
  • Date
  1. Copy the Sheet ID from the URL

2. Connect the Nodes in n8n

  1. Add your Google Sheets OAuth2 credential to all three logging nodes
  2. Update the Document ID in each Google Sheets node to your Sheet ID
  3. Add your Slack API credential to all three notification nodes
  4. Update the User ID in the notification nodes (or change to channel)

3. Configure Slack Interactivity

  1. Go to api.slack.com/apps → your app → Interactivity & Shortcuts
  2. Set the Request URL to this workflow's webhook URL
  3. Save Changes

4. Activate & Test

  1. Click Active in the top-right corner of n8n
  2. Trigger the Invoice Approval workflow to send a Slack message
  3. Click a button in Slack
  4. Check Google Sheets and Slack for results

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 - Receive Slack Button Click

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

Block 2 - Parse Slack Payload

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Extract Decision & Invoice Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Route: Approved / Rejected / Flagged

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

Block 5 - Log to Sheets: Approved

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 6 - Log to Sheets: Rejected

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 7 - Log to Sheets: Flagged

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 8 - Slack DM: Approved ✅

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 9 - Slack DM: Rejected ❌

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 10 - Slack DM: Flagged 🚩

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 11 - Sticky Note

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

Block 12 - Sticky Note1

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

Block 13 - Sticky Note2

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

Block 14 - Sticky Note3

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

Block 15 - Sticky Note4

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

Block 16 - Sticky Note5

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

Block 17 - Sticky Note6

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

3. Summary Table

Workflow Log invoice approval decisions from Slack to Google Sheets
Complexity advanced
Nodes 17
Categories Invoice Processing
Author Felix
Published 31 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14515/14515.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 Log invoice approval decisions from Slack to Google Sheets do?

What This Workflow Does Listens for button clicks from the Invoice → Slack Approval workflow. When someone clicks Approve, Reject, or Flag on an invoice in Slack, this workflow captures that decisi...

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 Invoice Processing use case.