Block 1 - Wait until product get deliver
- Type / Role
- n8n-nodes-base.wait - wait
- Config choices
- Version 1.1
How it works This workflow monitors new orders from a Postgres database and sends a confirmation email instantly. It then waits until the expected delivery time and continuously checks the delivery...
n8n-nodes-base.wait, n8n-nodes-base.code, n8n-nodes-base.gmail, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.scheduletrigger, n8n-nodes-base.postgres, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.lmchatgroq
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.
Original n8n.io sourceThis workflow monitors new orders from a Postgres database and sends a confirmation email instantly. It then waits until the expected delivery time and continuously checks the delivery status. Once delivered, it uses AI to generate product usage tips and emails them to the customer. After two weeks, it sends personalized complementary product recommendations to drive repeat purchases.
Trigger new orders from database
Schedule Trigger – Runs every 2 minutes to check for new orders.
Execute a SQL query – Fetches recently created orders from Postgres.
Order Placed Ack. – Sends an order confirmation email via Gmail.
Track delivery status dynamically
Wait until product get deliver – Pauses workflow until estimated delivery time.
Select rows from a table – Retrieves latest order status.
If – Checks whether the order is delivered.
Wait for a day – Rechecks daily until delivery is confirmed.
Send AI-powered product usage tips
Get Product Usage Tips – Uses AI agent to generate helpful tips.
Groq Chat Model – Provides LLM capability for content generation.
Format AI response – Converts AI output into clean HTML list format.
Send Tips to User – Emails tips to the customer.
Upsell complementary products after delay
Wait for 2 weeks – Delays follow-up communication.
Get Complementary Products – Generates related product suggestions.
Groq Chat Model1 – Powers recommendation generation.
Code in JavaScript – Formats recommendations into HTML.
Send Tips to User1 – Sends upsell email with recommendations.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Send post-purchase emails from Postgres with Gmail and Groq AI |
|---|---|
| Complexity | advanced |
| Nodes | 21 |
| Categories | Lead Nurturing, Multimodal AI |
| Author | Avkash Kakdiya |
| Published | 18 Mar 2026 |
Use the JSON export at /data/workflows/14144/14144.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
How it works This workflow monitors new orders from a Postgres database and sends a confirmation email instantly. It then waits until the expected delivery time and continuously checks the delivery...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Nurturing, Multimodal AI use case.