Automate Your Business: Frihet + Claude + n8n
Hands-on tutorial to automate invoicing, payments, and management with Frihet, Claude Code, and n8n. No coding required.

Key Takeaways
- Frihet is the only Spanish ERP with an open API, 14 webhooks, and an MCP server — all included in the free plan
- With n8n you can automate payment reminders, payment reconciliation, and report generation without writing code
- Frihet's MCP server lets Claude Code read, create, and manage invoices directly from the terminal
The average freelancer spends 5-8 hours per month on administrative tasks that a computer could handle in seconds: sending payment reminders, classifying expenses, generating reports, creating recurring invoices. These tasks are not difficult. They simply should not require your attention.
This tutorial shows you how to connect three tools — Frihet, Claude Code, and n8n — to automate the parts of your business that do not need a human. No coding, no consultants, no extra fees.
The three pieces of the puzzle
Frihet is your ERP. Where your invoices, clients, expenses, and financial data live. What makes it different is that it has:
- Open REST API with complete documentation
- 14 webhook events that trigger automatic actions
- MCP server that lets AIs interact with your account
n8n is your automator. A visual tool that connects applications and creates workflows. If X happens, then do Y. No code. It can be installed on your own server or used via their cloud.
Claude Code is your AI assistant. With Frihet's MCP server, Claude can query your invoicing, create documents, and analyze your finances directly from the terminal.
All three tools have a free plan or are open source. You can set up this entire system without paying anything: Frihet free + n8n community (self-hosted) + Claude Code.
Automation 1: Automatic payment reminders
The most profitable automation. Every unpaid invoice that goes without a reminder is money that takes longer to arrive — or never arrives.
How it works
- Frihet sends a webhook when an invoice becomes overdue
- n8n receives the webhook and waits 3 days (grace period)
- If the invoice is still unpaid, n8n sends an email to the client with the invoice details
- If after 7 more days it is still unpaid, n8n sends a second reminder with a firmer tone
- If after 15 days it is still unpaid, n8n notifies you via Telegram or email
n8n configuration
The flow has 5 nodes:
Node 1 — Webhook Trigger: Receives the invoice.overdue event from Frihet. The payload includes the invoice ID, client, amount, and due date.
Node 2 — Wait (3 days): Pauses the flow for 3 calendar days.
Node 3 — HTTP Request (check status): Calls Frihet's API to verify if the invoice is still unpaid. If it has been paid, the flow stops.
Node 4 — Email Send: Sends an email to the client with the subject "Reminder: Invoice [number] pending payment" and includes the payment link.
Node 5 — If/Else → Second reminder or notification: If after 7 more days it is still unpaid, sends a second email. If after 15 days, notifies you.
Customize the tone of each reminder. The first is informational ("we would like to remind you of a pending invoice"). The second is direct ("this invoice has been overdue for 10 days"). The third is for you, so you can decide the next step.
Automation 2: Weekly financial summary
Every Monday at 9
you receive a summary with the key metrics of your business. Without opening the ERP, without running calculations, without building spreadsheets.How it works
- n8n runs the flow every Monday at 9 (scheduled trigger)
- Calls Frihet's API to get: invoices issued that week, payments received, expenses recorded, invoices pending payment
- Calculates KPIs: weekly invoicing, collected vs pending, expenses vs income
- Formats the message and sends it via email or Telegram
Data you can include
- Invoices issued this week (count and total)
- Payments received this week
- Total pending collection
- Expenses recorded this week
- Net balance (collected - expenses)
- Invoices due this week (urgent)
This flow uses only GET endpoints from Frihet's API. It does not modify anything, just reads data and presents it in a useful format.
Automation 3: Automatic invoice from Stripe
If you sell online and collect via Stripe, you can generate the invoice in Frihet automatically when you receive a payment.
How it works
- Stripe sends a webhook to n8n when a payment completes (
payment_intent.succeeded) - n8n extracts the payment data: client, amount, description, currency
- n8n looks up the client in Frihet by email. If they do not exist, it creates them
- n8n generates the invoice in Frihet with the payment data
- Frihet sends the invoice to the client by email automatically
The result
Your client pays on your website → receives the invoice in their email in under a minute → the invoice is recorded in your ERP with all tax details correct. Without you touching anything.
This automation is especially useful for:
- Online stores (Shopify, WooCommerce with Stripe)
- SaaS with recurring subscriptions
- Courses and digital products
- Services with online payment
Claude Code + MCP: your AI business manager
Frihet's MCP server lets Claude Code interact directly with your account. It is not a generic API: it is a protocol designed for AIs to understand and operate your ERP.
What Claude can do with Frihet's MCP
- Query your current month's invoicing
- List invoices pending payment
- Create a quote for a client
- Search for a client by name or tax ID
- Read financial dashboard metrics
- Generate an invoice from a natural language description
Real example
You open Claude Code and type:
"Create an invoice for Company ABC for 3 hours of consulting at 80 EUR per hour, with 21% VAT"
Claude uses Frihet's MCP to:
- Look up the client "Company ABC" in your database
- Create the invoice with 3 lines at 80 EUR + 21% VAT
- Calculate the total (290.40 EUR)
- Confirm the details before issuing it
You do not copy data. You do not open the ERP. You do not calculate VAT. You say what you need and the invoice is generated.
How to install the MCP
Frihet's MCP server is published on npm:
npx @frihet/mcp-server
Configure it with your Frihet API key and it becomes available to Claude Code automatically. Full documentation is at docs.frihet.io/mcp.
Automation 4: Automatic expense classification
When you record an expense in Frihet (via OCR or manually), you can automate its categorization:
- Frihet sends a webhook when a new expense is created
- n8n receives the expense with OCR data (supplier, amount, description)
- n8n applies rules: if the supplier is a gas station → category "transport"; if it is a restaurant → "meals"; if it is Amazon → "office supplies"
- n8n updates the expense category in Frihet via API
The rules are yours. You can make them as simple (by supplier) or as complex (by amount + supplier + day of the week) as you need.
Why this only works with Frihet
Automation requires three things that most Spanish ERPs do not offer:
Open API on all plans. Anfix charges 80 EUR/month for API access. Quipu limits it to the Solution plan (25 EUR/month). Holded gates it behind higher plans. Frihet includes it in the free plan.
Real webhooks. 14 events that fire in real time: invoice created, invoice paid, invoice overdue, expense recorded, client created, quote accepted, and more. Without webhooks, every automation requires polling (constantly checking if something has changed), which is inefficient and slow.
MCP server. No other Spanish ERP has MCP. This means Frihet is the only one that can natively interact with AI assistants like Claude. It is not a plugin or a hack: it is a standard protocol designed by Anthropic for AIs and tools to speak the same language.
Automating is not the same as losing control. All these automations do things you already do manually — they just do them without you having to remember. You still make the decisions. The machine handles the repetitive work.
Start with one automation
You do not need to set up everything at once. Choose the automation that saves you the most time — for most freelancers it is payment reminders — and configure it this week.
Once it works, add the next one. And the next. Within a month, 80% of your administrative work runs on its own. And you spend those 5-8 monthly hours on what actually generates revenue.
Frequently Asked Questions
Do I need to know how to code to automate with n8n?
No. n8n is a visual drag-and-drop tool. You connect nodes (Frihet webhook → logic → action) without writing code. If you know how to use Excel, you can use n8n.
What is Frihet's MCP server?
MCP (Model Context Protocol) is an Anthropic standard that lets AIs connect with external tools. Frihet's MCP server gives Claude Code direct access to your account: it can query invoices, create clients, generate quotes, and read dashboard metrics.
Is the Frihet API free?
Yes. The API and webhooks are included in all plans, including the free one. There is no per-plan call limit, only the invoice volume limit of the plan (10/month on free, unlimited on Pro and Business).
Can I use Make or Zapier instead of n8n?
Yes. Frihet's REST API works with any automation tool. n8n has the advantage of being self-hosted (your data does not pass through third parties) and has a native webhook node. Zapier and Make work equally well with the API.
Which automations are most useful for a freelancer?
The three most impactful: 1) Automatic payment reminders when an invoice is overdue by X days. 2) Weekly financial summary via email or Telegram. 3) Automatic invoice generation when you receive a payment via Stripe or PayPal.


