Delivery Tracking Automation

An autonomous agent that extracts tracking numbers from e-commerce emails and syncs delivery status directly to your task manager.

Gemini Prompt Gemini for this Spark

"Gemini, create an implementation plan for an autonomous agent that handles Delivery Tracking. I frequently order from [Common Retailers]. Please act as a system architect and ask me clarifying questions about my Gmail label setup, task manager structure, and notification preferences before generating the final plan."

extension Required Connectors

Gemini Gemini AI
Gmail Gmail
Google Tasks Google Tasks

route Agent Data Flow & Logic

The agent executes a continuous state-management machine for package logistics:

1. Inbox Extraction

Scans incoming emails for specific semantic structures (e.g. "Your order has shipped", "Out for Delivery") to extract the AWB, Courier, and Estimated Delivery Date (EDD).

2. Task Reconciliation

Queries your active Google Tasks for matching Order IDs to prevent duplicates and identify state changes.

3. State Application

Creates or updates tasks based on the package's lifecycle: 'Expecting' (sets due date to EDD), 'Arriving Today', or marks it 'Complete' upon delivery confirmation.

4. Lifecycle Maintenance

Automatically sweeps through expired tasks during the morning audit to clear out delayed or lost packages for manual review.

schedule Triggers & Schedules

sync Feedback & Fallbacks