1. Trigger on Lovable (Supabase) when an order is placed

  • Use an Edge Function webhook in Supabase (via Lovable) to notify n8n on new orders

 

2. n8n: Process the order data

  • n8n receives the webhook, formats the order (items, address, user info).

  • Optionally check inventory or prices via real-time supplier tools.

 

 
 
 
 
 
 
 

✅ What You Can Automate with n8n Today

Task Possible
Detect real-time orders from Lovable ✅ via Supabase webhook
Parse and transform order data ✅ with n8n workflows
Generate order entry for DSers review ✅ to sheet/email/Zapier
Send you a confirmation prompt ✅ via email/chatbot notification
Sync tracking statuses ✅ handled by Lovable ↔ DSers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

3. Queue the order in DSers or send a manual trigger

  • DSers doesn’t expose automatable endpoints, so you could:

    • Insert the formatted order data into a shared Google Sheet / Airtable

    • Send email/SMS notification prompting you to confirm in DSers dashboard

    • Or trigger Zapier workflows that connect your Woo/Shopify store to DSers

4. Manual confirmation + DSers order placement

  • You (or your team) trigger bulk order fulfillment in the DSers dashboard, which handles AliExpress ordering and payment.

5. Sync back tracking info

  • DSers (via your store's integration) will sync tracking numbers and fulfillment status back to your Lovable store automatically.



 


⚠️ Why Fully Automated Payment Isn’t Feasible Yet

  • DSers lacks a public API for creating or paying orders directly.

  • AliExpress has no official auto-payment gateway—it requires human confirmation (security, fraud protection).

  • You’d need to store payment credentials and simulate a browser (Puppeteer, etc.), which is hacky, insecure, and unstable.


🔧 Next Steps: Practical Setup

  1. Create a Supabase Edge Function in Lovable that runs on new orders:

  2. Build n8n workflow:

    • Receive order → transform data → log to Google Sheets or Airtable.

    • Send email / Slack / notification to you.

  3. In DSers, configure product mapping and set notifications so you're alerted when orders appear in the sheet.

  4. Click "Orders" in DSers to review and pay—DSers handles AliExpress ordering automatically.

 



 

No comments:

Post a Comment