6 production automation workflows powering MacAI HK — from cart enquiries to invoice generation. All running locally on Mac hardware with OpenClaw + n8n.
What We Automated
Infrastructure
All 6 workflows run on a single Mac with Ollama providing local LLM inference. n8n orchestrates the automations, OpenClaw handles AI reasoning, and Cloudflare Workers + KV provide the edge layer.
Website sends selected hardware configuration and customer details to n8n webhook endpoint.
AI agent reads the cart data, checks current pricing from KV, and generates a personalised quote email in the customer's preferred language.
The quote email is sent via Resend API with branded HTML template, including a direct link to book a follow-up call.
Enquiry details, quote amount, and customer info are stored for lead scoring and follow-up automation.
n8n cron node fires every 6 hours to initiate the inventory check cycle.
Queries Cloudflare KV for current stock levels across all hardware configurations.
Filters items below threshold. If all stock is healthy, the workflow exits silently with no alert.
OpenClaw summarises which items are low, recommends reorder quantities, and formats the alert.
Alert sent via email and WhatsApp with actionable reorder links and current stock counts.
Results
Get Started
Everything you need to get these 6 workflows running on your Mac. Follow the steps below, or see the full guide for detailed instructions.
Set up a Cloudflare Tunnel to expose your local n8n instance. Map n8n.hkmac.ai to localhost:5678 so webhooks can reach your Mac from the public internet.
In the Cloudflare Pages dashboard, add environment variables for your Resend API key, WhatsApp token, OpenClaw endpoint, and KV namespace bindings.
In n8n, go to Settings → Import and upload each workflow JSON file. All 6 workflows are available in the project repository.
Add your Resend API key, WhatsApp Business token, and Cloudflare API token as credentials in n8n. Each workflow references these shared credentials.
Toggle each workflow to active in n8n. Start with the Cart Enquiry Pipeline to verify end-to-end connectivity before enabling the remaining workflows.