Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Email Automation

Email Automation

Googlesheets Workflow

When an API call/webhook arrives, it handles email using Gmail, Google Sheets, Supabase.

What it does

# Raw Materials Inventory Management with Google Sheets and Supabase using n8n Webhooks ## Introduction This n8n automation streamlines raw materials inventory management by automating the receipt of materials, issuing materials upon approval, updating stock levels, and sending low stock alerts. It integrates webhooks, Google Sheets, Supabase, and Gmail to ensure efficient inventory tracking and communication. ## Problem Statement Manual inventory management is time-consuming and error-prone, often leading to stock discrepancies, delayed approvals for material issuance, and missed low stock alerts. This automation addresses these issues by providing a seamless workflow for receiving raw materials, processing issue requests, and monitoring stock levels in real time. ## Target Audience This template is designed for: - Small to medium-sized businesses managing raw materials inventory. - Inventory managers seeking to automate stock updates and approvals. - n8n users familiar with Google Sheets, Supabase, and Gmail integrations. ## Description ### Flow 1: Raw Materials Receiving and Stock Update Purpose: Automates the receipt of raw materials, calculates costs, updates stock, and sends low stock alerts. - Receive Raw Materials Webhook - Purpose: Receives raw material data via HTTP POST at a webhook URL from a form submission. - Input: JSON with fields like product_id, quantity_received, unit_price, submitted via a form (e.g., Google Form or custom form). - Output: Raw webhook data. - Notes: Expects Content-Type: application/json. - Standardize Raw Material Data - Purpose: Maps webhook data into a consistent format. - Input: Webhook JSON from form submission. - Output: JSON with fields like Timestamp, Product ID, Quantity Received. - Notes: Aligns field names for downstream nodes. - Calculate Total Price - Purpose: Computes total cost and validates numeric inputs. - Input: Standardized JSON. - Output: JSON with Total Price (Quantity Received * Unit Price). - Notes: Uses a custom function to handle invalid numbers. - Append Raw Materials - Purpose: Records the receipt in Google Sheets. - Input: Calculated JSON. - Output: Updated "Raw Materials" sheet with new record. - Notes: Requires Google Sheets credentials (to be configured by the user). - Check Quantity Received Validity - Purpose: Ensures Quantity Received is a positive nu

The steps

  1. Append Material Request
  2. Get Approvals
  3. Standardize Data
  4. Update Stock
  5. Receive Issue Request
  6. Send Approval Request
  7. Prepare Approval
  8. Create Record Issue
  9. Search Product ID
  10. Searck Issues
  11. Update Current Stck
  12. Merge Lookups
  13. Update Current Stock1
  14. LookUp Current stock1

48 steps in total.

Similar automations