LLM & n8n Automation Pipeline (C2F2)
The problem
During my internship at C2F2 Sàrl, I was asked to automate a manual process the team ran for a client, and I designed and built the solution on my own. Every day, employees opened a website, went through the new images, and copied the information out of them by hand.
Nobody coordinated it, so several people sometimes did the same work. When results were shared at all, they went out in separate emails, so the team never had one copy to work from.
How it works
The pipeline runs every morning in two places. A GitHub Actions job scrapes the site with Playwright and uses Tesseract to throw away every image without a specific marker. The few that are left go to my n8n instance on Google Cloud, which has Mistral Small read them, builds one .xlsx, saves it to a shared Google Drive folder, and emails it to the team's inbox.
Why scraping runs in GitHub Actions
My n8n server had no Python environment for Playwright. Adding Python, its packages, and the browser binaries would have meant reworking the n8n setup. A GitHub Actions job left the server untouched and kept the filtering local, so nothing irrelevant reached n8n or Mistral.
Why Mistral Small
The output has to be accurate and the job runs every day. Because OCR already drops the irrelevant images, Mistral Small only sees the filtered images and reads them reliably at a low cost. A larger model wasn't needed.
Result
The pipeline replaced about 120 hours of manual work a year, valued at around CHF 6,000 a year in the contract. Each morning the team gets one .xlsx in their shared inbox and in Drive instead of repeating the same work. It is still running in production.
What can break
- The Playwright script is written for this one website, so a layout change breaks it until the script is updated.
- Scheduled GitHub Actions runs can start late when GitHub is busy, especially on the hour, and queued runs are sometimes dropped. Triggering the workflow from n8n instead would fix this.
- Splitting the work between GitHub Actions and n8n means two runtimes to maintain and a handoff between them.
- A small model keeps costs down but leaves less margin if the images change or get harder to read.