Skip to content
Home / Blog / AI & Automation

Recommendation System for an App: From Rules to ML

How a recommendation system for an app works, from simple rules to machine learning, with a plain explanation of the cold start problem and a build roadmap.

A recommendation system for an app decides what to show each user next: a salon to book, a product to buy, a profile to view, a lesson to open. Done well, it saves people effort and helps good items get found. Done badly, it shows the same popular things to everyone.

You do not need heavy machine learning on day one. This guide explains how recommendations work, how to begin with simple rules, how to deal with the cold start problem, and how to know when a model is worth building.

What does a recommendation system actually do?

At its core it answers one question: given this user, right now, which items should come first? It collects candidates, scores them, and returns a ranked list. Everything else is detail about how scores are produced.

Notice that it is a ranking problem, not a prediction of the future. You choose what you want to optimise, such as bookings, watch time or repeat purchases, and the system orders items to serve it. Pick that goal deliberately, because the system will chase exactly what you measure.

Can simple rules be enough at first?

Often yes. Many successful products begin with rules a developer can write in an afternoon, and rules are easy to explain and debug. You can ship them with an MVP and learn what users respond to; see what an MVP is for scoping.

Examples of useful rule-based recommendations include:

  • Most popular items in the user's city this week
  • Recently viewed items, shown again
  • New arrivals in categories the user has opened
  • Items frequently booked or bought together
  • Nearby options sorted by distance and rating

What are the main machine learning approaches?

When rules stop being enough, three families are common. Each has strengths and costs, and many products combine them.

Content-based methods recommend items similar to ones the user liked, using item attributes such as category, price or tags. They work for new items but can trap users in a narrow bubble.

Collaborative filtering recommends items liked by people with similar behaviour. It can surface surprising matches, but needs plenty of interaction data and struggles with new users and items.

Hybrid systems blend both, along with context like time and location. Most production systems end up here, because each approach covers the other's weakness.

What is the cold start problem and how do you handle it?

Cold start means the system has no history. A new user has no clicks; a new item has no ratings. Without data, collaborative methods have nothing to work with.

Practical fixes are simple. Ask two or three preference questions during sign-up. Fall back to popular or local items. Use item attributes for content-based matching. Give new items a small, deliberate exposure so they can collect signals. Keep onboarding short; our guide to app onboarding UX shows how to ask for preferences without losing people.

A worked example: a multi-city booking app

Imagine a hypothetical app where customers book services at venues in several cities. On day one there is little data. The first version might show venues in the user's city sorted by a blend of rating, distance and recent availability.

After some months, the team has bookings per user. They add "book again" suggestions, then similar-venue suggestions built from shared tags and customer overlap. Only after enough history do they train a ranking model using signals like past bookings, time of day and price band. Elevenmonk built the Kyne salon-booking apps, where users discover and book services across salons and cities, and that kind of discovery flow is a natural place for this staged approach. Read the Kyne case study for what the product does.

What data and infrastructure do you need?

You need to record events: views, searches, saves, bookings or purchases, with timestamps and user and item identifiers. Collect them from the start, even if you do not use them yet, because history cannot be recreated later. Plan this alongside app analytics and crash reporting.

Also think about privacy. Tell users what you collect, let them control personalisation where practical, and avoid sensitive inferences. India's data protection rules and other regions' laws may apply; consult a qualified professional, as this is general information, not legal advice.

Serving recommendations fast

Scoring every item on each request can be slow. Common patterns compute lists ahead of time on a schedule and cache them, or fetch a few hundred candidates and rank only those. Start with the simplest approach that keeps screens quick.

How do you know the recommendations are working?

Compare against a baseline. Show half of users the new recommendations and half the old ones, then measure the outcome you chose: bookings, purchases, return visits. Offline accuracy numbers do not always mean better business results.

Also watch for side effects. If one group of items dominates, new vendors may never get seen. Add variety and review the results by hand regularly. When you add models later, adding AI to an existing app covers integration routes.

Conclusion: ship rules, collect data, then add models

Begin with transparent rules, record events from day one, handle cold start with simple fallbacks, and add machine learning once the data and the goal justify it. If you are planning an app with discovery or matching at its core, put the idea in our free project brief builder and we will help you scope a sensible first version.

Frequently asked questions

How much data do I need for machine learning recommendations?

There is no fixed number. It depends on how many users and items you have and how varied behaviour is. If interactions are sparse, rules and content-based methods usually work better. Collect events early, test simple baselines, and move to models once they clearly beat the rules.

What is the cold start problem?

It is the situation where the system lacks history: a new user with no activity, or a new item with no ratings. Typical fixes are onboarding questions, popular or local defaults, attribute-based matching and limited exposure for new items so they can gather signals.

Should I use a third-party service or build my own?

For standard catalogues, a managed service or simple in-house rules can be enough. Custom builds make sense when your ranking depends on unique signals, such as distance, availability or marketplace balance. Check current pricing and data terms for any service before committing.

Can recommendations feel creepy to users?

Yes, if they reveal that the app knows more than users expect. Be transparent about what you use, avoid sensitive inferences, offer controls to reset or reduce personalisation, and prefer explanations like "because you booked a haircut" over unexplained suggestions.

/ Talk to Elevenmonk

Want help with this? Let’s talk.

Tell us what you are planning. A founder or senior engineer replies with honest next steps, from Mumbai, for clients across India and worldwide.

Prefer to share your idea in writing? Use the free project brief builder: answer a few questions and send the brief on WhatsApp in one tap.

WhatsApp us