You are helping me build the following AI agent workflow. ## Goal Self-Hosted URL Shortener With Dashboard: Turns long URLs into short links via n8n and Airtable, tracking clicks for a custom dashboard. ## Specification - What it does: Turn your long URLs into short links that track clicks in real time via n8n and Airtable. You get a custom dashboard showing statistics as users visit your shortened links, all without needing complex hosting setup. Customize the solution with basic JavaScript to fit your specific needs. - Trigger: Triggered by an event (Event ยท on webhook call) - Autonomy: Fully hands-off - Expected setup effort: a few focused days - Tools/services involved: - n8n: Workflow orchestration and hosting - Airtable: Storing short URLs and click statistics - Crypto: Generating SHA256 hashes for IDs ## Known pitfalls, handle each one explicitly in your implementation 1. Hash collisions can occur if multiple URLs produce the same ID, so implement a retry loop that appends a random suffix until a unique key is found. 2. The dashboard will show stale data if Airtable records are not updated atomically on every redirect, use Airtable's update record endpoint inside the same workflow as the redirect check. 3. Security headers might be missing from the webhook response allowing XSS attacks, add a Set node to inject Content-Security-Policy and X-Frame-Options headers before sending the redirect. ## Reference implementation https://n8n.io/workflows/1093 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/self-hosted-url-shortener-with-dashboard/ via usecasesforagents.com