This workflow follows the Gmail → Google Sheets recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "WF5: Inventory Analytics & Reports",
"nodes": [
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyWeek",
"weekday": "1",
"hour": 8
}
]
}
},
"id": "1",
"name": "Cron Trigger (Weekly)",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
100,
200
]
},
{
"parameters": {
"operation": "getAll",
"documentId": {
"__rl": true,
"value": "1bwj7MGobvcfDljlaO65o4hchdPWCdqGm8utdLaiDPOg",
"mode": "id"
},
"sheetName": {
"__rl": true,
"value": "Inventory_Master",
"mode": "name"
},
"options": {}
},
"id": "2",
"name": "Read Inventory",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 3,
"position": [
300,
200
]
},
{
"parameters": {
"jsCode": "const items = $input.all().map(i => i.json);\nconst lowCount = items.filter(i => i.current_stock <= i.reorder_point).length;\nconst overCount = items.filter(i => i.current_stock > i.max_stock_level * 1.2).length;\nreturn { summary: `Low stock: ${lowCount}, Overstocked: ${overCount}`, raw: items };"
},
"id": "3",
"name": "Aggregate Metrics",
"type": "n8n-nodes-base.code",
"typeVersion": 1,
"position": [
500,
200
]
},
{
"parameters": {
"model": "llama3-70b-8192",
"messages": {
"messageValues": [
{
"content": "={{ 'Analyze these inventory metrics and provide insights: ' + $json.summary }}"
}
]
}
},
"id": "4",
"name": "AI Generate Insights",
"type": "@n8n/n8n-nodes-langchain.lmChatGroq",
"typeVersion": 1,
"position": [
700,
200
]
},
{
"parameters": {
"sendTo": "managers@example.com",
"subject": "Weekly Inventory Report",
"message": "={{ 'Here is the weekly report:\\n\\n' + $json.message.content }}",
"options": {}
},
"id": "5",
"name": "Email Report",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2,
"position": [
900,
100
]
},
{
"parameters": {
"channel": "#inventory-reports",
"text": "={{ 'Weekly Inventory Insights:\\n' + $json.message.content }}",
"otherOptions": {}
},
"id": "6",
"name": "Slack Summary",
"type": "n8n-nodes-base.slack",
"typeVersion": 2,
"position": [
900,
300
]
}
],
"connections": {
"Cron Trigger (Weekly)": {
"main": [
[
{
"node": "Read Inventory",
"type": "main",
"index": 0
}
]
]
},
"Read Inventory": {
"main": [
[
{
"node": "Aggregate Metrics",
"type": "main",
"index": 0
}
]
]
},
"Aggregate Metrics": {
"main": [
[
{
"node": "AI Generate Insights",
"type": "main",
"index": 0
}
]
]
},
"AI Generate Insights": {
"main": [
[
{
"node": "Email Report",
"type": "main",
"index": 0
}
],
[
{
"node": "Slack Summary",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
WF5: Inventory Analytics & Reports. Uses googleSheets, lmChatGroq, gmail, slack. Scheduled trigger; 6 nodes.
Source: https://github.com/Apoo3va/Smart-Inventory-Warehouse-Automation-Platform/blob/main/WF5_Analytics_Reports.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Doc Processing. Uses chainLlm, lmChatGroq, googleDrive, googleSheets. Scheduled trigger; 39 nodes.
This workflow runs daily to audit a Notion supplier compliance database, calculates certification expiry urgency, uses Groq (Llama 3.3 via LangChain) to generate supplier emails and internal Slack mes
This workflow is a comprehensive automation engine that bridges the gap between raw client data and expert-level financial advice. Upon receiving a new onboarding form from Google Sheets, the system f
Restaurant owners, retail store managers, and small business owners who want to stay on top of customer feedback without manually checking Google reviews multiple times a day. Perfect for businesses t
Doctor Clinic Appointment Booking System. Uses googleSheets, googleCalendar, chainLlm, lmChatGroq. Webhook trigger; 15 nodes.