I recently finished building an AI-Powered Freelance Opportunity Aggregator with n8n as the orchestration layer.
The goal was not just to collect job listings, but to build a complete decision-support pipeline that discovers opportunities from multiple source types, normalizes the data, filters obvious mismatches, evaluates the remaining opportunities with structured LLM output, and delivers prioritized results through Telegram.
One of the main design decisions was to keep the LLM responsible for semantic interpretation, while the final APPLY / REVIEW / SKIP classification remains deterministic and auditable.
The system has now been validated end-to-end in scheduled daily operation.
I also published a sanitized public reference implementation with architecture notes, testing documentation, screenshots, and core workflow exports:
The separation between hard filters, structured LLM evaluation and a deterministic APPLY, REVIEW or SKIP decision is a sound design, because it keeps the model’s role narrow and the final outcome auditable. A few thoughts on the points you asked about. For persistent state, a unique constraint on the source and external listing ID, combined with an insert that ignores conflicts, makes every run idempotent, so reruns and overlapping schedules cannot create duplicates. Storing the model name, prompt version and raw JSON output next to each evaluation also lets you re-score older listings after changing the prompt and compare the results. For the LLM step, validating the output against a fixed schema and routing malformed or low-confidence results to REVIEW rather than SKIP prevents good opportunities from being dropped silently. On modularity, placing each discovery source in its own sub-workflow called through the Execute Workflow node, with a shared normalisation step that outputs one common schema, makes it simple to add or retire a source without touching the evaluation logic. A small sample of SKIP decisions reviewed by hand each week is a low-cost way to check whether the filters are too strict.
Hello William!
Thanks, this is really useful feedback.
The modular discovery structure and shared normalized schema are already part of the current implementation, so it’s great to see that approach independently validated.
I especially like the suggestions around storing model/prompt provenance with each evaluation and periodically reviewing a sample of SKIP decisions. Both would make future prompt calibration much more measurable.
I’m also going to review the database-level uniqueness constraints to make sure idempotency is enforced at the storage layer rather than relying only on workflow logic.
Thanks for taking the time to look through the architecture!
Quick update, I went through your feedback and implemented the remaining points. Thanks again, it was genuinely useful.
Database-level idempotency: I double-checked this first. The opportunity identity constraints and conflict-handling/upsert logic were already enforced at the PostgreSQL layer, so reruns and overlapping discovery runs cannot create duplicate opportunities.
Evaluation provenance: each AI evaluation now stores: model name; prompt version; raw structured model response; evaluation version and timestamp.
The raw LLM output is stored separately from the deterministic final decision, so model behavior can be compared when prompts or models change.
Fail-safe AI evaluation: malformed or failed structured LLM output is now routed through a dedicated fallback path and produces REVIEW with explicit uncertainty instead of silently dropping the opportunity or turning it into SKIP.
Source-level fault isolation: each discovery sub-workflow now has its own failure boundary. If one source fails, the remaining discovery workflows and downstream pipeline can continue using successfully persisted data.
Weekly SKIP audit: I added an independent workflow that reviews a small sample of rejected opportunities each week. It prioritizes potentially borderline SKIPs and fills the remaining sample randomly, so I can manually check for false negatives and overly strict filtering.
Operational housekeeping: I also added a separate weekly database-retention workflow with a guarded cleanup step for old opportunity records.
The modular discovery workflows and shared normalized schema you mentioned were already part of the implementation, but your feedback helped me tighten the reliability and observability around them.
I’ve also updated the public architecture, documentation, and sanitized workflow examples in the GitHub repo.
Really interesting project, especially the separation between AI evaluation and the deterministic final decision.
I’ve been working on an n8n + FastAPI + PostgreSQL demo focused on idempotency, duplicate detection, concurrent requests, and database-failure recovery.
One thing I’m curious about: when an opportunity is routed to REVIEW because the LLM output is malformed or uncertain, do you also track how often those REVIEW cases eventually turn into APPLY or SKIP after manual review?
That metric could help measure whether the evaluation prompt is calibrated well over time.
Great work on making the pipeline more auditable and fault-tolerant!
Thanks, @Shital_Katre ! Really appreciate your thoughtful feedback!
That’s a great point. I haven’t implemented dedicated REVIEW → APPLY/SKIP tracking yet, but it’s definitely something worth adding. I’m planning to distinguish between REVIEW cases caused by malformed LLM outputs and those caused by genuine uncertainty, then track how they resolve after manual review. This could provide valuable insights for improving prompt calibration and the overall evaluation process))
Your work on idempotency and database-failure recovery sounds interesting too! How are you handling concurrent requests in your PostgreSQL setup?
Thanks, Alexandra! In my demo, I tested concurrency using 100 simultaneous requests with the same event ID.
The test resulted in 1 processed event and 99 duplicate responses, with all 100 requests returning HTTP 200. I also tested 100 requests with unique event IDs, and all were processed successfully.
The demo uses FastAPI with PostgreSQL to persist events and business effects. I verify the results by checking the API responses and database records to ensure duplicate requests do not create additional business effects.
These are portfolio test results rather than production-scale benchmarks. I’m continuing to improve the reliability and failure-handling aspects.
I took a look at your repository - it’s really interesting work! I especially liked how you’re handling duplicate events and database transactions, and how clearly you distinguish portfolio testing from production benchmarks
Duplicate prevention is particularly relevant to my project, since I’m processing opportunities from multiple sources and need to avoid redundant processing and notifications Your approach definitely gives me some ideas for improving reliability))
Are you also planning to test failure recovery and retry scenarios involving external API calls?
Thanks, Alexandra! Yes, I’ve already tested failure handling and recovery scenarios in my demo, including database-unavailable handling, HTTP 503 responses, and successful recovery after restoring the backend.
I’ve also tested concurrent duplicate requests and verified that 100 requests with the same event ID resulted in 1 processed event and 99 duplicate responses, without creating additional business effects.
I’m now preparing a video walkthrough to demonstrate these tested scenarios clearly. My next step is to extend the testing to external API-specific failures, such as timeouts and HTTP 429 rate limits, if they aren’t already covered by the current tests.
Your point about preventing duplicate notifications during retries is especially relevant to an opportunity aggregator.
Cool! It’s really fascinating to see how you’ve approached reliability and failure recovery in practice. I’m planning to revisit the retry and duplicate-prevention mechanisms in my own project next week, so your work has given me some useful ideas.
I’d love to see your video walkthrough when it’s ready, especially the external API failure scenarios. Keep up the great work!