Customer feedback is the lifeblood of any growing business. But collecting it, making sense of it, and acting on it before it goes stale? That’s where most companies stall. Surveys pile up in a spreadsheet. Support tickets get answered one by one. Review sites surface complaints weeks after the damage is done.
The fix isn’t another SaaS subscription. It’s a feedback loop — a system that collects responses automatically, analyzes them for patterns, routes them to the right people, and shows you trends over time. You can build one with open source and self-hostable tools that you may already be running.
This post walks through a complete feedback loop using four tools: OpnForm for collection, n8n for routing, Ollama for sentiment analysis, and Metabase for dashboards. Each piece is self-hosted, meaning your customer data never leaves your infrastructure.
Why a Feedback Loop, Not Just a Survey
A survey is a snapshot. A feedback loop is a pipeline. The difference matters:
- Survey approach: Send a form, collect responses in a spreadsheet, manually read through them, maybe discuss at a quarterly meeting. By the time you act, the feedback is months old.
- Loop approach: Forms are always live. Every submission triggers automatic categorization and sentiment analysis. Negative responses alert your team within minutes. Trends surface on a dashboard that updates in real time.
The loop catches problems while they’re still small. It spots emerging requests before they become churn signals. And it does this without someone spending three hours every Friday reading through comments.
The Stack
| Tool | Role | License | What It Replaces |
|---|---|---|---|
| OpnForm | Form builder and response collection | AGPLv3 (open source) | Typeform, SurveyMonkey |
| n8n | Workflow automation and routing | Sustainable Use License (source-available) | Zapier, Integromat |
| Ollama | Local LLM for sentiment analysis | MIT (open source) | OpenAI API, cloud NLP services |
| Metabase | Dashboards and trend visualization | AGPL (open source) | Tableau, Looker |
All four run in Docker containers on a single server. If you’ve followed our previous posts on self-hosting, you may already have n8n and Ollama deployed. OpnForm and Metabase are straightforward additions.
Step 1: Collect Feedback with OpnForm
OpnForm is an open source form builder licensed under AGPLv3. You create forms through a drag-and-drop interface, share a link or embed the form on your site, and responses land in a database you control.
Setting Up OpnForm
Deploy OpnForm with Docker Compose:
version: "3.8"
services:
opnform:
image: opnform/opnform:latest
ports:
- "8080:80"
environment:
- APP_URL=https://forms.yourdomain.com
- DB_HOST=postgres
- DB_DATABASE=opnform
- DB_USERNAME=opnform
- DB_PASSWORD=your_secure_password
depends_on:
- postgres
postgres:
image: postgres:16-alpine
environment:
- POSTGRES_DB=opnform
- POSTGRES_USER=opnform
- POSTGRES_PASSWORD=your_secure_password
volumes:
- opnform-db:/var/lib/postgresql/data
volumes:
opnform-db:
Creating a Feedback Form
Once OpnForm is running, create a form with these fields:
- Customer name (optional — some people prefer anonymity)
- Email (optional, for follow-up)
- How did we do? — Star rating, 1-5
- What went well? — Text area
- What could we improve? — Text area
- Would you recommend us? — NPS scale, 0-10
- Product/service used — Dropdown
Keep it short. Seven fields is the maximum for a post-purchase or post-interaction form. Longer forms get abandoned.
Every OpnForm submission fires a webhook. That webhook is what connects to the next step.
Step 2: Route and Analyze with n8n
n8n is a workflow automation tool. It’s source-available under the Sustainable Use License — you can self-host it freely, but it’s not technically open source. For most small business use cases, the self-hosted version includes everything you need.
The workflow has four stages:
Stage 1: Receive the Webhook
Create a Webhook node that listens for OpnForm submissions. Configure it to accept POST requests and capture the JSON payload, which includes all form fields.
Stage 2: Sentiment Analysis with Ollama
Add an HTTP Request node that calls your local Ollama instance. Ollama runs LLMs on your own hardware, so customer feedback never gets sent to an external API.
{
"method": "POST",
"url": "http://ollama:11434/api/generate",
"body": {
"model": "llama3.2",
"prompt": "Analyze this customer feedback. Return a JSON object with three fields: sentiment (positive, neutral, or negative), category (one of: product, service, pricing, delivery, other), and summary (one sentence). Feedback: {{ $json.what_could_we_improve }}",
"format": "json",
"stream": false
}
}
Ollama processes the text locally and returns structured JSON. A response like “The product is great but shipping took two weeks” comes back as:
{
"sentiment": "mixed",
"category": "delivery",
"summary": "Customer likes the product but is frustrated by slow shipping."
}
Stage 3: Route Based on Sentiment
Add a Switch node that branches based on the sentiment:
- Negative: Send an immediate alert to your support channel (Mattermost, email, or a ticket in your help desk). Include the customer’s email if provided, the summary, and a link to the full response.
- Neutral: Log to the database for trend tracking. No immediate action needed.
- Positive: Send a thank-you email if the customer provided their address. Optionally request a public review.
Stage 4: Store Everything
A Postgres node writes the full response plus the AI analysis to a database table. This is what Metabase will read from in the next step.
The table schema:
CREATE TABLE feedback (
id SERIAL PRIMARY KEY,
submitted_at TIMESTAMP DEFAULT NOW(),
customer_name TEXT,
customer_email TEXT,
rating INTEGER,
nps_score INTEGER,
what_went_well TEXT,
what_could_improve TEXT,
product_used TEXT,
ai_sentiment TEXT,
ai_category TEXT,
ai_summary TEXT
);
Here’s the complete n8n workflow exported as JSON so you can import it directly:
{
"nodes": [
{
"name": "OpnForm Webhook",
"type": "n8n-nodes-base.webhook",
"parameters": {
"httpMethod": "POST",
"path": "feedback",
"responseMode": "responseNode"
}
},
{
"name": "Analyze Sentiment",
"type": "n8n-nodes-base.httpRequest",
"parameters": {
"method": "POST",
"url": "http://ollama:11434/api/generate",
"sendBody": true,
"bodyContentType": "json",
"jsonBody": "={ \"model\": \"llama3.2\", \"prompt\": \"Analyze this feedback. Return JSON with sentiment, category, summary. Feedback: {{ $json.what_could_we_improve }}\", \"format\": \"json\", \"stream\": false }"
}
},
{
"name": "Route by Sentiment",
"type": "n8n-nodes-base.switch",
"parameters": {
"dataType": "string",
"value1": "negative",
"value2": "neutral",
"value3": "positive"
}
},
{
"name": "Store in Postgres",
"type": "n8n-nodes-base.postgres",
"parameters": {
"operation": "insert",
"table": "feedback"
}
}
]
}
Import this into n8n, fill in your database credentials and Ollama URL, and the workflow is ready.
Step 3: Visualize Trends with Metabase
Metabase is an open source analytics tool licensed under AGPL. The community edition is free and includes everything a small business needs: dashboards, charts, SQL queries, and scheduled reports.
Deploying Metabase
metabase:
image: metabase/metabase:latest
ports:
- "3000:3000"
environment:
- MB_DB_TYPE=postgres
- MB_DB_DBNAME=metabase
- MB_DB_PORT=5432
- MB_DB_USER=metabase
- MB_DB_PASS=your_secure_password
- MB_DB_HOST=postgres
Point Metabase at the same Postgres database where n8n stores feedback, and you can build dashboards in minutes.
Three Dashboards to Build
Dashboard 1: Feedback Overview
- Total responses this month vs. last month
- Average star rating (line chart over time)
- NPS score (calculated from the 0-10 field)
- Sentiment breakdown (pie chart: positive/neutral/negative)
Dashboard 2: Category Trends
- Feedback by category (bar chart: product, service, pricing, delivery, other)
- Category trend over time (stacked area chart)
- Top 5 summaries this week (table, filtered by negative sentiment)
This is where patterns surface. If “delivery” complaints spike in the same week as a new shipping carrier, you see the correlation immediately. If “pricing” feedback trends negative after a price change, you know within days, not quarters.
Dashboard 3: Response Pipeline
- Negative feedback without follow-up (count, filtered by no email sent)
- Time from submission to first response (if you track follow-up actions)
- Feedback by product/service (which offerings generate the most commentary)
Set up Metabase’s built-in alerting to notify you when any metric crosses a threshold. For example, alert when negative sentiment exceeds 20% of total responses in a 7-day window.
Step 4: Close the Loop
Collecting and analyzing feedback is only half the system. The other half is acting on it and letting customers know you listened.
Automated Follow-Ups
In your n8n workflow, add these branches:
For negative feedback with an email address: Trigger an email that says “We received your feedback and want to make this right.” Include a Cal.com scheduling link so the customer can book a follow-up call without back-and-forth. Cal.com is open source and self-hostable — we covered it in a previous post.
For positive feedback with an email address: Send a thank-you with a link to leave a public review on your preferred platform. Don’t gate this behind a form or a login. Make it one click.
For all feedback: Tag the response in your CRM (Odoo, SuiteCRM, or whatever you use) so sales and support teams can see it during future interactions. The customer feels known.
Monthly Review
Schedule a recurring 30-minute review of the Metabase dashboards. Bring the team. Look at:
- What categories trended up this month?
- Which specific complaints appeared most frequently?
- What did the AI summaries highlight that individual readings missed?
- Did any negative feedback get resolved? How long did it take?
This meeting is short because the dashboards do the preparation work. You’re discussing patterns, not reading individual responses.
Honest Limitations
This stack works well, but it’s not perfect. Here’s what to watch for:
Ollama’s analysis quality depends on the model. Llama 3.2 (3B parameter) handles straightforward sentiment well but may misclassify sarcastic or nuanced feedback. If you have the hardware, a larger model like Llama 3.1 (8B) or Qwen 2.5 (7B) produces more accurate categorization. You can also fine-tune on your own historical feedback data for even better results.
OpnForm’s free tier has limitations. The self-hosted version removes most limits, but enterprise features (like advanced logic jumps and user roles) require a license. For most small business feedback forms, the community version is sufficient.
n8n’s Sustainable Use License isn’t OSI-approved. If your organization requires strict OSI open source compliance, consider alternatives like Huginn (MIT-licensed but less user-friendly) or Activepieces (AGPL-licensed, newer but actively developed). The workflow concepts in this post translate to any automation tool.
Metabase needs a separate database for its own metadata. Don’t point it at your production database with admin credentials. Create a read-only user for the feedback table.
The loop is only as good as your response rate. If you collect feedback but never act on it, customers stop providing it. The automated follow-up branches exist for this reason. Use them.
Cost Comparison
Building this stack yourself vs. subscribing to SaaS equivalents:
| Component | Self-Hosted | SaaS Equivalent | Annual Savings |
|---|---|---|---|
| Form builder | OpnForm ($0) | Typeform ($35/mo) | $420 |
| Workflow automation | n8n ($0 self-hosted) | Zapier ($30/mo) | $360 |
| Sentiment analysis | Ollama ($0, local hardware) | OpenAI API (~$20/mo) | $240 |
| Dashboards | Metabase ($0) | Tableau Creator ($75/mo) | $900 |
| Total | $0 + server costs | ~$160/mo | ~$1,920/year |
Server costs for running all four tools on a single VPS: roughly $10-20/month depending on whether you need a GPU for Ollama. Even with hardware costs, you save over $1,500 annually and keep all customer data on your own infrastructure.
What This System Looks Like in Practice
A customer buys your product. Two days later, they receive an email with a link to your OpnForm feedback survey. They fill it out in under a minute.
The form submission hits the n8n webhook. Within seconds, Ollama analyzes the text, categorizes it as “delivery” with negative sentiment, and generates a one-sentence summary. n8n routes the alert to your Mattermost channel.
Your support lead sees the alert, clicks through to the full response, and reaches out to the customer the same day. The customer is surprised and impressed that someone responded so quickly.
Meanwhile, the response lands in your Postgres database. Metabase updates the delivery complaints chart. At the monthly review, your team notices that delivery complaints have increased 30% this month. You switch carriers. Complaints drop.
That’s a feedback loop. Not a survey sitting in a spreadsheet.
Getting Started
If you’re starting from scratch, build the stack in this order:
- Deploy OpnForm and create your first feedback form. Send it to your last 10 customers. Get responses flowing.
- Add n8n and connect the webhook. Start with just storing responses in a database. No AI yet.
- Add Ollama for sentiment analysis. Start with the smallest model that works and upgrade if accuracy is insufficient.
- Add Metabase and build the overview dashboard. Once you have a week of data, add the category trends dashboard.
- Add the follow-up automation — the email branches, the CRM tagging, the Cal.com scheduling link.
Each step takes a few hours to set up. You don’t need to build it all at once. The system is functional after step 2 (collecting and storing feedback) and gets better with each addition.
If you want help setting up a customer feedback loop for your business, reach out through our contact form. We’ll help you deploy the stack, configure the workflows, and train your team on the dashboards — all on infrastructure you own and control.