Skip to content

RecommendAI User Guide

RecommendAI — Plug-and-play AI recommendation engine for B2B SaaS products.

Table of Contents


What Is RecommendAI?

RecommendAI is a multi-tenant recommendation engine SaaS. It allows developers and businesses to integrate personalised recommendations into their applications via a simple API — without building or maintaining ML infrastructure.

Key capabilities:

  • Collaborative filtering — Recommend based on what similar users liked
  • Content-based filtering — Recommend based on item attributes
  • Hybrid algorithm — Blend both for best accuracy
  • Deep learning — Neural embeddings for complex user/item relationships
  • Sub-50ms response times at production load

Architecture: Angular portals → .NET REST/GraphQL API → Rust recommendation core → PostgreSQL + Redis


Core Concepts

ConceptDescription
TenantYour isolated account and dataset inside RecommendAI
ItemAny recommendable entity — product, article, song, video, etc.
UserAn end user in your system who receives recommendations
InteractionA signal from a user about an item (view, click, like, purchase)
RecommendationA scored suggestion of an item for a specific user
ScoreA 0–1 confidence value for how relevant an item is to a user
AlgorithmThe ML model used to generate recommendations
API KeyA secret key used by your backend to call RecommendAI

Getting Started — Admin

1. Create Your Account

  1. Navigate to the RecommendAI Admin Portal
  2. Click Sign Up
  3. Provide your email and create a password
  4. Your tenant is provisioned automatically with a default API key

2. Ingest Your Items

Items are the entities you want to recommend (products, articles, videos, etc.).

Add items via the API:

bash
curl -X POST https://api.recommendai.io/api/items \
  -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "product-123",
    "metadata": {
      "title": "Wireless Headphones",
      "category": "Electronics",
      "price": 149.99,
      "tags": ["audio", "wireless", "premium"]
    }
  }'

Bulk-ingest items by sending an array or using the import endpoint.

3. Record Interactions

Send user behaviour signals as they happen in your application:

bash
curl -X POST https://api.recommendai.io/api/v1/interactions \
  -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "user-abc",
    "itemId": "product-123",
    "interactionType": "view",
    "value": 1.0
  }'

4. Fetch Recommendations

Once you have items and interactions, fetch recommendations for any user:

bash
curl -X POST https://api.recommendai.io/api/v1/recommend \
  -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "user-abc",
    "count": 10,
    "algorithm": "hybrid"
  }'

Admin Portal Reference

Dashboard

The admin dashboard shows tenant-wide platform statistics:

MetricDescription
Total UsersUsers recorded in your tenant
Total ItemsCatalogue items ingested
Total RecommendationsRecommendations generated to date
Total InteractionsBehaviour signals recorded
Active ModelsML models currently deployed for your tenant
Daily Active UsersUsers who received recommendations in the last 24h
Avg AccuracyMean prediction accuracy across active models

User Management

Go to Users to manage the end users within your tenant.

Actions:

  • View all users with their status, role, and join date
  • Create users manually (or users self-register via your app)
  • Edit user attributes and role
  • Toggle user active/inactive status
  • Delete users

Roles:

RoleDescription
userStandard end user who receives recommendations
adminCan access all admin portal sections

Recommendation Management

Go to Recommendations for a global view of all recommendations generated in your tenant.

Features:

  • View recommendations sorted by score, date, or user
  • Filter by algorithm type
  • Delete stale or unwanted recommendation records
  • Trigger a manual batch recommendation generation run

Batch generation:

  1. Click Generate Recommendations
  2. Select target user segment and algorithm
  3. Set the number of recommendations per user
  4. Click Run

Results appear in the list within seconds to minutes depending on dataset size.


Analytics

Go to Analytics for time-series dashboards on platform performance.

Available periods: Last 7 days, 30 days, 90 days

Charts:

  • Daily recommendations generated
  • Daily active users
  • Recommendation accuracy over time

Export: Download analytics data as CSV from the top-right menu.


Settings

Go to Settings to configure tenant-wide options:

SettingDescription
API KeysView and rotate your tenant API keys
AlgorithmsEnable/disable specific ML algorithms
Default CountDefault number of recommendations returned per request
Overage CapMaximum API overage spend per billing cycle
Webhook URLReceive real-time event notifications

Admin Billing

Go to Billing to manage your RecommendAI subscription.

See Billing & Plans for full details.


Getting Started — End Users

End users access RecommendAI through:

  1. Your application — recommendations surface via your UI, powered by the RecommendAI API
  2. The RecommendAI User Portal — a self-service portal for users to view and manage their personalised recommendations

User Portal Sign-In

  1. Navigate to the RecommendAI User Portal URL
  2. Log in with your credentials (provisioned by the admin or via self-registration)
  3. You land on the Home screen with a personalised summary

User Portal Reference

Home

The home screen shows:

  • A welcome message
  • Quick stats (items viewed, recommendations waiting)
  • A "Recommended for You" preview (top 3–5 items)

Recommendations

Go to Recommendations for your full personalised recommendation feed.

Features:

  • Scroll through all recommendations ranked by relevance score
  • See the reason each item was recommended (e.g., "Based on your interaction history")
  • Click an item to view its details
  • Mark recommendations as irrelevant ("Not for me") to improve future results

Profile

Go to Profile to manage your account:

  • Update display name and email
  • Change password
  • View your interaction history (items viewed, liked, purchased)
  • Request data export or account deletion (GDPR)

User Billing

If your tenant uses self-serve billing, go to Billing to:

  • View your current plan
  • Upgrade, downgrade, or cancel
  • View past invoices

Integrating the API

RecommendAI exposes a REST API (port 8080) and a GraphQL API (same port, /graphql). Your backend services call these with an API key — end users are never exposed to the key.

See the API Reference for complete endpoint documentation.

Quick integration example (Node.js)

js
const RECSYS_API_URL = 'https://api.recommendai.io';
const API_KEY = process.env.RECSYS_API_KEY;

// Record an interaction
async function trackView(userId, itemId) {
  await fetch(`${RECSYS_API_URL}/api/v1/interactions`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'X-API-Key': API_KEY,
    },
    body: JSON.stringify({ userId, itemId, interactionType: 'view', value: 1.0 }),
  });
}

// Get recommendations
async function getRecommendations(userId, count = 10) {
  const res = await fetch(`${RECSYS_API_URL}/api/v1/recommend`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'X-API-Key': API_KEY,
    },
    body: JSON.stringify({ userId, count, algorithm: 'hybrid' }),
  });
  return res.json();
}

Algorithms

AlgorithmBest ForCold Start
collaborativeUsers with rich interaction historyPoor
content-basedNew users; metadata-rich item cataloguesGood
hybridGeneral purpose; balances bothModerate
deep-learningLarge datasets; complex patternsModerate

Recommendation: Use hybrid for most production use cases. Fall back to content-based for users with fewer than 5 interactions.


Billing & Plans

Plans

PlanPrice/moAPI RequestsItemsUsers
Starter$4910,0001,000500
Growth$149100,00010,0005,000
Scale$4991,000,000100,00050,000
EnterpriseCustomUnlimitedUnlimitedUnlimited

Overage

When you exceed plan limits:

  • Overage is billed at $0.001 per additional API request
  • Set an Overage Cap in Settings to prevent unexpected charges
  • Once the cap is reached, requests return HTTP 402 Payment Required until the next billing cycle

Viewing Usage

Go to Billing → Usage to see:

  • API requests used vs. limit
  • Items ingested vs. limit
  • Users active vs. limit
  • Overage accrued this cycle

SDK Quick-Start

RecommendAI SDKs are available in the recommendai-sdks/ directory and on package registries. See recommendai-sdks/docs/ for language-specific guides.

Available SDKs: Go, .NET, Python, PHP, Ruby, TypeScript, Dart, Rust, Java, Kotlin, Swift

Core methods (all SDKs):

MethodDescription
recommend(userId, count, algorithm?)Get recommendations for a user
similar(itemId, count)Find items similar to a given item
recordInteraction(userId, itemId, type, value?)Record a user interaction
ingestItem(id, metadata)Add or update an item in the catalogue
deleteItem(id)Remove an item

TypeScript

bash
npm install @recommendai/js
typescript
import { RecommendAI } from '@recommendai/js';

const client = new RecommendAI({ apiKey: process.env.RECSYS_API_KEY! });

const recs = await client.recommend({ userId: 'user-123', count: 10 });
await client.recordInteraction({ userId: 'user-123', itemId: recs[0].itemId, type: 'click' });

Python

bash
pip install recommendai
python
from recommendai import RecommendAI

client = RecommendAI(api_key=os.environ["RECSYS_API_KEY"])
recs = client.recommend(user_id="user-123", count=10, algorithm="hybrid")

FAQ

How soon after ingesting items and interactions do recommendations appear? Recommendations are available in real time once items and interactions are ingested. Model training for deep-learning algorithms runs on a schedule (hourly by default).

What if a user has no interaction history? Use content-based or hybrid algorithm. The engine falls back to popularity-based recommendations until enough interactions accumulate.

Can I bring my own item metadata schema? Yes. The metadata field accepts any JSON object. Your schema is preserved and surfaced in recommendation responses.

Is multi-language item metadata supported? Yes. Metadata is stored and returned as-is. Filter by locale in your application layer or include locale as a metadata field.

How do I handle GDPR deletion requests? Call DELETE /api/users/{id} from the admin API. This deletes the user's interactions and recommendations. All associated data is purged within 24 hours.

Are there SDKs for mobile? Yes — Dart/Flutter, Kotlin (Android), and Swift (iOS) SDKs are available in recommendai-sdks/.

Plug-and-play AI recommendations for B2B SaaS.