Back to Catalog

Track student arrival with iOS automation, Google Sheets & email alerts

Oneclick AI SquadOneclick AI Squad
188 views
2/3/2026
Official Page

This workflow automates real-time student tracking using iOS Shortcuts and geolocation data, notifying both teachers and parents based on geofenced logic.

🎯 What This Workflow Does

  • Receives student location updates via webhook (iOS Shortcuts)
  • Detects if the student has arrived at school
  • Logs arrival data to Google Sheets
  • Sends email alerts to teacher and/or parent based on location

πŸ”„ Workflow Steps

| Step | Description | | --------------------------- | -------------------------------------------------------- | | Location Update Webhook | Triggered via iOS Shortcut when student location updates | | Process Location Data | Extracts coordinates and metadata | | Student Arrived? | Checks if student entered school zone | | Log School Arrival | Adds arrival data to Google Sheet | | At School? | Double-checks geofence condition before notifying | | Notify Teacher | Sends email if student is confirmed at school | | Notify Parent | Sends email to parent (can vary based on geofence logic) | | Success Response | Returns a 200 response to the triggering device |

🧠 How the Logic Works

  1. The student’s phone runs a shortcut when near school.
  2. Sends coordinates to webhook.
  3. Workflow compares coordinates with predefined geofence (e.g., radius around school).
  4. If inside school zone:
    • Log arrival
    • Notify teacher and/or parent
  5. Else:
    • Optionally notify parent only

πŸ“± iOS Shortcut Sample (Trigger Setup)

  • Automation Trigger: Arrive at Location (e.g., School)
  • Action: Run Shortcut β†’ Make Web Request (POST)

POST URL:

https://your-n8n-instance.com/webhook/location-update

Body Example:

{
  "student_id": "STU042",
  "student_name": "Anaya Joshi",
  "lat": 19.0760,
  "lng": 72.8777,
  "timestamp": "2025-08-06T08:05:00"
}

πŸ“Š Google Sheets Logging

| Student ID | Name | Date | Time | Status | | ---------- | ----------- | ---------- | ----- | ------- | | STU042 | Anaya Joshi | 2025-08-06 | 08:05 | Arrived |

βš™οΈ Setup Requirements

  • n8n Instance with webhook support
  • Google Sheet with appropriate columns
  • iOS Shortcut setup on student device
  • Teacher and Parent Email Addresses configured in workflow

n8n Workflow: Basic Webhook Responder and Email Sender

This n8n workflow demonstrates a fundamental automation pattern: receiving data via a webhook, processing it, and conditionally sending an email or performing an HTTP request. It serves as a starting point for building more complex integrations.

What it does

This workflow automates the following steps:

  1. Listens for incoming data: A Webhook node acts as the trigger, waiting for an HTTP POST request to initiate the workflow.
  2. Processes incoming data: An "Edit Fields (Set)" node is included, typically used to transform or prepare the data received from the webhook for subsequent steps.
  3. Conditional Logic: An "If" node evaluates a condition based on the processed data.
    • If the condition is TRUE: An email is sent using the "Send Email" node.
    • If the condition is FALSE: An HTTP Request is made, allowing for integration with another API or service.
  4. Responds to the Webhook: A "Respond to Webhook" node sends a response back to the original caller of the webhook, indicating the workflow's completion.
  5. Documentation: A "Sticky Note" node is present, likely for adding internal notes or explanations about the workflow's purpose or specific configurations.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n instance: A running n8n instance (cloud or self-hosted).
  • Email Account: An SMTP server configured in n8n credentials to send emails (for the "Send Email" node).
  • API/Service for HTTP Request (Optional): If the "If" condition evaluates to false, an external API or service endpoint to which the "HTTP Request" node will send data.

Setup/Usage

  1. Import the workflow:
    • Copy the provided JSON code.
    • In your n8n instance, go to "Workflows" and click "New".
    • Click the "Import from JSON" button and paste the workflow JSON.
  2. Configure the Webhook:
    • The "Webhook" node will automatically generate a unique URL when the workflow is activated. This is the URL you will send your data to.
    • Ensure the "HTTP Method" and "Response Mode" are set as required for your incoming data.
  3. Configure the "Edit Fields (Set)" node:
    • Adjust the fields to transform or extract the necessary data from the webhook payload.
  4. Configure the "If" node:
    • Define the condition that determines whether an email is sent or an HTTP request is made. This condition will evaluate against the data from previous nodes.
  5. Configure the "Send Email" node (TRUE branch):
    • Set up your SMTP credentials in n8n if you haven't already.
    • Specify the recipient's email address, subject, and body of the email, potentially using expressions to include data from the workflow.
  6. Configure the "HTTP Request" node (FALSE branch):
    • Specify the URL, HTTP method, headers, and body for the request to the external service.
  7. Configure the "Respond to Webhook" node:
    • Customize the response body and status code if needed.
  8. Activate the workflow: Once configured, activate the workflow by toggling the switch in the top right corner of the n8n editor.

You can now trigger the workflow by sending an HTTP POST request to the Webhook URL.

Related Templates

Generate Weather-Based Date Itineraries with Google Places, OpenRouter AI, and Slack

🧩 What this template does This workflow builds a 120-minute local date course around your starting point by querying Google Places for nearby spots, selecting the top candidates, fetching real-time weather data, letting an AI generate a matching emoji, and drafting a friendly itinerary summary with an LLM in both English and Japanese. It then posts the full bilingual plan with a walking route link and weather emoji to Slack. πŸ‘₯ Who it’s for Makers and teams who want a plug-and-play bilingual local itinerary generator with weather awareness β€” no custom code required. βš™οΈ How it works Trigger – Manual (or schedule/webhook). Discovery – Google Places nearby search within a configurable radius. Selection – Rank by rating and pick the top 3. Weather – Fetch current weather (via OpenWeatherMap). Emoji – Use an AI model to match the weather with an emoji 🌀️. Planning – An LLM writes the itinerary in Markdown (JP + EN). Route – Compose a Google Maps walking route URL. Share – Post the bilingual itinerary, route link, and weather emoji to Slack. 🧰 Requirements n8n (Cloud or self-hosted) Google Maps Platform (Places API) OpenWeatherMap API key Slack Bot (chat:write) LLM provider (e.g., OpenRouter or DeepL for translation) πŸš€ Setup (quick) Open Set β†’ Fields: Config and fill in coords/radius/time limit. Connect Credentials for Google, OpenWeatherMap, Slack, and your LLM. Test the workflow and confirm the bilingual plan + weather emoji appear in Slack. πŸ›  Customize Adjust ranking filters (type, min rating). Modify translation settings (target language or tone). Change output layout (side-by-side vs separated). Tune emoji logic or travel mode. Add error handling, retries, or logging for production use.

nodaBy noda
52

Seo blog content automation with GPT-4o-mini and human approval in Google Docs

Overview This n8n workflow automates the entire content creation process for SEO blog posts, from topic submission and AI drafting to human approval, revision, and final storage in Google Docs. It ensures high-quality, SEO-optimized content is generated efficiently while keeping a human in the loop for quality control. Prerequisites To use this workflow, you need the following accounts and credentials: Google Sheets Account: To manage the content tracker. The sheet must contain columns for Topic, Reference URL, Title, Status, and Link to document. OpenAI API Key (for GPT-4o-mini): To power the initial content drafting and subsequent revisions. Gmail Account: To send the content for human approval and wait for feedback. Google Docs Account: To create and store the final approved blog posts. How It Works The workflow operates in four main stages: Topic Submission, AI Content Creation, Human Approval & Revision Loop, and Final Publishing. Stage 1: Topic Submission and Tracking This stage captures a new blog topic and adds it to the content tracker. On form submission (Form Trigger): The workflow is initiated when a user submits a Topic and an optional Reference link through the form. Append row in sheet (Google Sheets): The new topic and reference link are added as a new row in your content tracker sheet. Get Topic from Google Sheets: The workflow fetches the newly added row, including the system-generated row_number for tracking updates. Stage 2: AI Content Creation (Initial Draft) The workflow uses an expert AI agent to generate the first draft of the blog post. Copywriter AI Agent: Acting as an expert SEO content strategist, the agent receives the topic and reference URL. The agent improves the provided topic into an SEO-optimized title. It writes a complete, conversational, SEO-friendly blog post (800–1200 words) using proper Markdown headings and lists. OpenAI Chat Model (GPT-4o-mini): Powers the agent's generation. Structured Output Parser: Ensures the output is in a JSON format with separate title and content keys. Set Data: The AI-generated title and content are mapped to workflow variables (Topic Title, Content) for easy use in subsequent nodes. Stage 3: Human Approval and Revision Loop This is the critical quality control step where a human reviews the draft and decides on the next action. Send Content for Approval (Gmail): The generated title and content are sent via email to the approver (<your email>). This uses a custom form that allows the user to choose Yes (Approve), No (Request Revision), or Cancel. The form also includes a Content Feedback textarea. Approval Result (Switch): The workflow pauses until the approver submits the form, and then directs the flow based on their choice. If "Yes" (Approved): Proceeds to the final publishing stage. The Update Topic Status on Google Sheets node is executed, setting the Status to Approved and logging the new Title. If "No" (Revision Requested): Proceeds to the revision loop. Copywriter Revision Agent: This agent takes the original content, the topic title, and the user's Content Feedback. It is instructed to incorporate the feedback, preserving the existing structure and tone, and outputs a revised blog post. The flow loops back through the Set Data node and then returns to the Send Content for Approval node for a new review. If "Cancel": Stops the workflow, and the Update Topic Status on Google Sheets node is executed. Stage 4: Final Publishing Once approved, the content is stored in Google Docs and the tracker is updated. Create Blog file (Google Docs): A new Google Doc is created using the approved Topic Title. Add blog content in file (Google Docs): The final Content (in Markdown format) is inserted into the newly created document. Update sheet with blog post link (Google Sheets): The final tracker update logs the Link to document and the Published date. Customization Tip Recommend using AI humanazier and AI detector tools before approval to make the SEO score better.

Priyanka RanaBy Priyanka Rana
528

Intelligent purchase order generator with AI supplier selection

Transform procurement from manual chaos to intelligent automation - AI-powered supplier selection analyzes urgency, cost, and delivery requirements to recommend optimal vendors, then automatically generates professional POs, manages approval workflows, and tracks delivery while maintaining complete audit trails. What This Workflow Does Revolutionizes purchase order management with AI-driven supplier optimization and automated procurement workflows: Webhook-Triggered Generation - Automatically creates POs from inventory systems, manual requests, or threshold alerts Smart Data Validation - Verifies item details, quantities, pricing, and calculates totals with tax and shipping AI Supplier Selection - OpenAI agent analyzes order requirements and recommends optimal supplier based on multiple factors Intelligent Analysis - AI considers urgency level, total value, item categories, delivery requirements, and cost optimization Multi-Supplier Database - Maintains supplier profiles with contact details, payment terms, delivery times, and specializations Approval Workflow - Routes high-value orders (>$5000) for management approval before supplier notification Professional PO Generation - Creates beautifully formatted purchase orders with company branding and complete details AI Insights Display - Shows supplier selection reasoning, cost optimization notes, and alternative supplier recommendations PDF Conversion - Transforms HTML into print-ready, professional-quality purchase order documents Automated Email Distribution - Sends POs directly to selected suppliers with all necessary attachments Google Drive Archival - Automatically saves POs to organized folders with searchable filenames Procurement System Logging - Records complete PO details, supplier info, and status in centralized system Delivery Tracking - Monitors order status from placement through delivery confirmation Slack Team Notifications - Real-time alerts to procurement team with PO details and AI recommendations Urgency Classification - Prioritizes orders based on urgency (urgent, normal) affecting supplier selection Cost Optimization - AI identifies opportunities for savings or faster delivery based on requirements Key Features AI-Powered Supplier Matching: Machine learning analyzes order characteristics and recommends best supplier from database based on delivery speed, cost, and specialization Intelligent Trade-Off Analysis: AI balances cost vs delivery time vs supplier capabilities to find optimal choice for specific order requirements Automatic PO Numbering: Generates unique sequential purchase order numbers with format PO-YYYYMM-for tracking and reference Approval Threshold Management: Configurable dollar thresholds trigger approval workflows for high-value purchases requiring management authorization Multi-Criteria Supplier Selection: Considers urgency level, order value, item categories, delivery requirements, and historical performance Supplier Specialization Matching: Routes technology orders to tech suppliers, construction materials to building suppliers, etc. Cost vs Speed Optimization: AI recommends premium suppliers for urgent orders and budget suppliers for standard delivery timelines Alternative Supplier Suggestions: Provides backup supplier recommendations in case primary choice is unavailable Real-Time Pricing Calculations: Automatically computes line items, subtotals, taxes, shipping, and grand totals Payment Terms Automation: Pulls supplier-specific payment terms (Net 30, Net 45, etc.) from supplier database Shipping Address Management: Maintains multiple delivery locations with automatic address population Special Instructions Field: Captures custom requirements, delivery notes, or handling instructions for suppliers Item Catalog Integration: Supports product codes, descriptions, quantities, and unit pricing for accurate ordering Audit Trail Generation: Complete activity log tracking PO creation, approvals, supplier notification, and delivery Status Tracking System: Monitors PO lifecycle from creation through delivery confirmation with real-time updates Multi-Department Support: Tracks requesting department for budget allocation and accountability Perfect For Retail Stores - Automated inventory reordering when stock reaches threshold levels Manufacturing Companies - Raw material procurement with delivery scheduling for production planning Restaurant Chains - Food and supplies ordering with vendor rotation and cost optimization IT Departments - Equipment purchasing with approval workflows for technology investments Construction Companies - Materials procurement with urgency-based supplier selection for project timelines Healthcare Facilities - Medical supplies ordering with compliance tracking and vendor management Educational Institutions - Procurement for facilities, supplies, and equipment across departments E-commerce Businesses - Inventory replenishment with AI-optimized supplier selection for margins Hospitality Industry - Supplies procurement for hotels and resorts with cost control Government Agencies - Compliant procurement workflows with approval chains and audit trails What You Will Need Required Integrations OpenAI API - AI agent for intelligent supplier selection and optimization (API key required) HTML to PDF API - PDF conversion service for professional PO documents (approximately 1-5 cents per PO) Gmail or SMTP - Email delivery for sending POs to suppliers and approval requests Google Drive - Cloud storage for PO archival and compliance documentation Optional Integrations Slack Webhook - Procurement team notifications with PO details and AI insights Procurement Software - ERP/procurement system API for automatic logging and tracking Inventory Management - Connect to inventory systems for automated reorder triggers Accounting Software - QuickBooks, Xero integration for expense tracking and reconciliation Supplier Portal - Direct integration with supplier order management systems Approval Software - Connect to approval management platforms for workflow automation Quick Start Import Template - Copy JSON workflow and import into your n8n instance Configure OpenAI - Add OpenAI API credentials for AI supplier selection agent Setup PDF Service - Add HTML to PDF API credentials in the HTML to PDF node Configure Gmail - Connect Gmail OAuth2 credentials and update sender email Connect Google Drive - Add Google Drive OAuth2 credentials and set folder ID for PO archival Customize Company Info - Edit company data with your company name, address, contact details Update Supplier Database - Modify supplier information in enrichment node with actual vendor details Set Approval Threshold - Adjust dollar amount requiring management approval ($5000 default) Configure Email Templates - Customize supplier email and approval request messages Add Slack Webhook - Configure Slack notification URL for procurement team alerts Test AI Agent - Submit sample order to verify AI supplier selection logic Test Complete Workflow - Run end-to-end test with real PO data to verify all integrations Customization Options Supplier Scoring Algorithm - Adjust AI weighting for cost vs delivery speed vs quality factors Multi-Location Support - Add multiple shipping addresses for different facilities or warehouses Budget Tracking - Integrate departmental budgets with automatic budget consumption tracking Volume Discounts - Configure automatic discount calculations based on order quantities Contract Compliance - Enforce existing vendor contracts and preferred supplier agreements Multi-Currency Support - Handle international suppliers with currency conversion and forex rates RFQ Generation - Extend workflow to generate requests for quotes for new items Delivery Scheduling - Integrate calendar for scheduled deliveries and receiving coordination Quality Tracking - Add supplier performance scoring based on delivery time and quality Return Management - Create return authorization workflows for defective items Recurring Orders - Automate standing orders with scheduled generation Inventory Forecasting - AI predicts reorder points based on historical consumption patterns Supplier Negotiation - Track pricing history and flag opportunities for renegotiation Compliance Documentation - Attach required certifications, insurance, or regulatory documents Multi-Approver Chains - Configure complex approval hierarchies for different dollar thresholds Expected Results 90% time savings - Reduce PO creation from 30 minutes to 3 minutes per order 50% faster supplier selection - AI recommends optimal vendor instantly vs manual research Elimination of stockouts - Automated reordering prevents inventory shortages 20-30% cost savings - AI optimization identifies better pricing and supplier options 100% approval compliance - No high-value orders bypass required approvals Zero lost POs - Complete digital trail with automatic archival Improved supplier relationships - Professional, consistent POs with clear requirements Faster order processing - Suppliers receive clear POs immediately enabling faster fulfillment Better delivery predictability - AI matches urgency to supplier capabilities reducing delays Reduced procurement overhead - Automation eliminates manual data entry and follow-up Pro Tips Train AI with Historical Data - Feed past successful orders to improve AI supplier recommendations Maintain Supplier Performance Scores - Track delivery times and quality to enhance AI selection accuracy Set Smart Thresholds - Adjust approval amounts based on department budgets and risk tolerance Use Urgency Levels Strategically - Reserve "urgent" classification for true emergencies to optimize costs Monitor AI Recommendations - Review AI reasoning regularly to validate supplier selection logic Integrate Inventory Triggers - Connect to inventory systems for automatic PO generation at reorder points Establish Preferred Vendors - Flag preferred suppliers in database for AI to prioritize when suitable Document Special Requirements - Use special instructions field consistently for better supplier compliance Track Cost Trends - Export PO data to analyze spending patterns and negotiation opportunities Review Alternative Suppliers - Keep AI's alternative recommendations for backup when primary unavailable Schedule Recurring Orders - Set up automated triggers for regular supply needs Centralize Receiving - Use consistent ship-to addresses to simplify delivery coordination Archive Systematically - Organize Drive folders by fiscal year, department, or supplier Test Approval Workflow - Verify approval routing works before deploying to production Communicate AI Benefits - Help procurement team understand AI recommendations build trust Business Impact Metrics Track these key metrics to measure workflow success: PO Generation Time - Average minutes from request to supplier notification (target: under 5 minutes) Supplier Selection Accuracy - Percentage of AI recommendations that meet delivery and cost expectations (target: 90%+) Approval Workflow Speed - Average hours for high-value PO approvals (target: under 4 hours) Stockout Prevention - Reduction in inventory shortages due to faster PO processing Cost Savings - Percentage reduction in procurement costs from AI optimization (typical: 15-25%) Order Accuracy - Reduction in PO errors requiring correction or cancellation Supplier On-Time Delivery - Improvement in delivery performance from better supplier matching Procurement Productivity - Number of POs processed per procurement staff member Budget Compliance - Percentage of POs staying within approved departmental budgets Audit Readiness - Time required to produce PO documentation for audits (target: under 5 minutes) Template Compatibility Compatible with n8n version 1.0 and above Requires OpenAI API access for AI agent functionality Works with n8n Cloud and Self-Hosted instances Requires HTML to PDF API service subscription No coding required for basic setup Fully customizable supplier database and selection criteria Integrates with major procurement and ERP systems via API Supports unlimited suppliers and product categories Scales to handle thousands of POs monthly --- Ready to transform your procurement process? Import this template and start generating intelligent purchase orders with AI-powered supplier selection, automated approval workflows, and complete procurement tracking - eliminating manual processes, preventing stockouts, and optimizing costs across your entire supply chain!

Jitesh DugarBy Jitesh Dugar
136