Track MSME 45-day payments for Section 43B(h) with Sheets, Zoho, Slack, OpenAI

Go to Workflow
0 views
Built by Rahul Joshi Rahul Joshi
Created on October 06, 2026

Description

Quick overview
This workflow tracks MSME vendor bills for Section 43B(h) compliance using Google Sheets as a bill register, optionally syncing bills from Zoho Books, verifying vendors via a Udyam API, and sending Slack alerts, a CSV payment-priority list, and an OpenAI-generated CFO briefing with an approve/hold step.

How it works
Runs every morning (Mon–Sat) on a schedule or starts instantly when bills or payments are posted to a webhook.
Loads the Vendor Master and Vendor Bills from Google Sheets and optionally pulls the latest bills from Zoho Books when an organization ID is configured.
Appends new bills and updates payment status/amounts in the Google Sheets bill register based on webhook payloads and Zoho Books balances.
Optionally verifies new or stale vendors against your Udyam verification API and writes the latest MSME category and verification status back to the Vendor Master sheet.
Calculates each unpaid Micro/Small MSME bill’s 15/45-day deadline, days left/overdue, estimated tax-at-risk, and estimated MSMED interest, then posts Slack alerts as bills approach or exceed the limit.
Builds a cash-constrained payment plan, generates a CSV payment-priority list, and uploads it to Slack.
Uses OpenAI (gpt-4o-mini) to draft a CFO briefing, sends a Slack approve/hold request, and writes the approval decision back to the relevant bill rows in Google Sheets.

Setup
Create a Google Sheets file with two tabs named to match your configuration (default: “Vendor Master” and “Vendor Bills”) and ensure the bill sheet contains columns like bill_id, vendor_name, bill_number, bill_date, acceptance_date, amount, amount_paid, payment_status, and due_date_43bh.
Add Google Sheets OAuth2 credentials and set the Google Sheet ID in the workflow’s finance configuration.
Add Slack OAuth2 credentials, set your target channel ID, and set the Slack user ID for the finance head to receive the approve/hold prompt.
Add an OpenAI API credential for the gpt-4o-mini briefing generation.
(Optional) Add Zoho Books OAuth2 credentials and fill in zoho_org_id and zoho_api_domain to enable daily bill sync.
(Optional) Configure a Udyam verification API endpoint and Header Auth credentials, then paste the API URL into udyam_api_url and ensure Vendor Master includes vendor_id and udyam_number for verification.

Nodes Used (5)

Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
Slack
n8n-nodes-base.slack