An autonomous agent that extracts tracking numbers from e-commerce emails and syncs delivery status directly to your task manager.
"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."
The agent executes a continuous state-management machine for package logistics:
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).
Queries your active Google Tasks for matching Order IDs to prevent duplicates and identify state changes.
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.
Automatically sweeps through expired tasks during the morning audit to clear out delayed or lost packages for manual review.
[OVERDUE] and removes the strict due date.