GETTING STARTED, STEP BY STEP

Your first recommendation.
A clear path to get there.

Start with the automatic install: one command in your site’s folder, your framework detected, then your AI assistant to finish the integration.

01. Run the install in your project

AUTOMATIC INSTALL · RECOMMENDED START
npx @likyly/wizard

The wizard detects your framework and its version, installs the SDK, signs you in to your Likyly account in the browser, connects your AI assistant to the MCP server, checks everything, then starts your assistant on what comes next.

  1. Detection and plan. The wizard recognizes your framework, checks that its version is supported and shows everything it will do before acting. It never overwrites an existing file. In a Git repository, it offers to work on a new likyly/setup branch (your work in progress comes along, untouched) and never commits.
  2. SDK install with your package manager (npm, pnpm, yarn, bun, composer…).
  3. Sign-in to your account. The browser opens on likyly.com: sign in or create your account (email, GitHub or Google). Your public key and an MCP key for your assistant come back to the terminal on their own. The public key goes into your framework’s environment file, the MCP key into .likyly/credentials.env, never committed.
  4. Connecting your AI assistant: Claude Code, Cursor, VS Code, Codex and others, linked to the MCP server with the Likyly skill. For Claude Code, the wizard also adds the /likyly commands: account and plan, blocks in place, pages to see them on, impact, model, cache.
  5. Check: SDK installed, compatible versions, keys accepted by the API, assistant connected.
  6. Review: the list of files Likyly added and changed, apart from what you had already changed. Review them in VS Code’s Source Control panel (Ctrl/Cmd+Shift+G) or with git diff. Your assistant does the same: it codes on the same branch, doesn’t commit, lists its files in its summary and opens a pull request if you ask.
  7. Next: Enter starts Claude Code on the integration prompt (or opens Cursor with the prompt copied). Your assistant connects the catalog, creates the placement, integrates it into your code and checks the integration.

Uninstall

UNINSTALL
npx @likyly/wizard uninstall

First shows what will be removed and asks for confirmation (--dry-run to only look). Removes what the wizard added: SDK, public key, starter file if it wasn’t changed, MCP configuration, skill, commands and .likyly/. Your code is never changed: the files that still use Likyly are listed. Your account (catalog, placements, keys) stays intact. In Claude Code: /likyly-uninstall.

Non-interactive (CI): npx @likyly/wizard --yes --public-key pk_…. Preview without writing anything: --dry-run. The terminal must be at least 64 × 20 characters.

Rather integrate it yourself? SDKs and REST API

The SDKs and the API are another way in, to keep control of the integration code.

npm install @likyly/sdk

Without an SDK, use the REST API’s HTTP calls directly, available today. The secret key stays on the backend.

Read the technical documentation →

02. Add your catalog

  1. Choose the source among those Likyly can read today (below), or import directly through the API.
  2. Prepare the information: a stable id, a title, a description and the useful attributes. The API requires item_id and title for a bulk import; title, description and properties.category feed similarity.
  3. Check the import: look at the items received, the errors and the id matching before sending interactions.
  4. Plan the updates: a source sync runs on demand (the number of syncs per day depends on the plan); “push” sources are updated on every send.
  • CSV file: import a file, or read a CSV online (URL).
  • REST API or JSON: your API or a JSON feed, with configurable pagination and authentication.
  • Shopify: native connector: Likyly reads the catalog through the store's Admin API.
  • Magento / Adobe Commerce: native connector: Likyly reads the catalog through the store's REST API, with an Integration (npx @likyly/wizard magento); the wizard adds a module that displays the blocks.
  • WordPress / WooCommerce: the LIKYLY plugin sends the catalog, creates the blocks and displays them, no code needed (see /docs/wordpress).
  • Webhook: your system pushes the items to Likyly on every change.

Other platforms (PrestaShop, Akeneo…) connect through their API or a CSV export: this is not a native sync.

A first server-side import

The API accepts up to 1,000 items per call to POST /items/import, with the secret key in the X-API-Key header:

curl -X POST https://api.likyly.com/items/import \ -H "X-API-Key: $LIKYLY_SECRET_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [{ "item_id": "video_001", "title": "Le monde en mouvement", "description": "Un documentaire sur les mobilités urbaines.", "properties": {"category": "documentaire"} }] }'

The response details the errors item by item: check them before you consider the import done.

03. Hand the integration to your AI assistant

Your assistant writes the integration from your code and drives Likyly through the MCP server. With the public key, it gets recommendations and sends events. With an MCP key, it also manages catalog sources (creation, field mapping, sync) and placements, then checks the integration. The catalog comes in through a data source; if your site runs locally, out of Likyly’s reach, the assistant sends the products it reads in your code itself.

You talk to it in plain language (“check my Likyly integration”, “clear the Likyly cache”): no command to remember. Example requests. In Claude Code, type /likyly to see the Likyly commands.

CONNECTING YOUR ASSISTANT
npx @likyly/wizard mcp add

Writes the MCP configuration of Claude Code, Cursor or VS Code, without putting a key in it.

A prompt to prepare the full integration

To use in an assistant that has access to your site’s code.

PROMPT
Integrate Likyly into this project based on its current documentation. 1. Identify the site's stack and the catalog source. Show the fields to map and the ids used. 2. Check the available SDK and the operations actually allowed. Prepare the import through the API on the server side or a compliant CSV. With the MCP server, go through a data source (create_data_source then sync_data_source), only if the MCP key has the sources:write right. 3. Put the keys in the right place: secret key or MCP key on the server side only, public key for the browser. Don't print them in the logs. 4. Add a recommendation block to the home page, then the placements that fit my industry's journey. 5. Link the documented events to the right item, session or user id. For video, use a custom event with quantity in seconds watched, as the API specifies; free-form properties don't weigh in the model. 6. Check the import of one item, the engine's answer and the display (validate_integration). Detail the data missing to turn on collaborative filtering and the sync steps.

MCP server tools and the rights they need →

04. Show the recommendations and connect the interactions

The SDK or the API returns the selection; your interface displays it. Pass only the context you have: reference item, session, user, placement, number of results.

POST /events/{event_type} accepts views, purchases and custom types like reservation or watch. The weight level of each type is set in your workspace; quantity multiplies that weight in training. Free-form JSON properties are kept, but the model doesn’t use them as signals.

Purchases: for the console to count what your recommendations bring in, each purchase must carry the recommendation of the click it came from and its price. Magento and WordPress do it on their own; on a Shopify theme, a pixel to paste once; elsewhere, an SDK call where the order is confirmed. Tracking purchases →

No history: start with popularity or content similarity. With enough history and a stable id: the collaborative model trains (on demand, or automatically after 50 new weighted interactions, within your plan’s daily limit), and then collaborative or hybrid mode becomes relevant.

Cache and availability

Your site doesn’t call Likyly on every page view. The SDK keeps an answer for an hour for the same visitor and the same product; on Likyly’s side, the answer for an anonymous visitor is kept for an hour per product and shared between visitors. The cache clears itself when the catalog or the placement changes. To clear it right away:

CLEAR THE CACHE
npx @likyly/wizard cache clear

All placements, or just one: npx @likyly/wizard cache clear pdp-related. Uses the project’s MCP key; scriptable in CI or after a deploy. In Claude Code: /likyly-clear-cache. In the console: the Clear cache button on the placement.

The browser keeps its own copy per tab: open the page in a new tab to see the new recommendations.

If Likyly doesn’t answer (outage, overload), the SDK stops calling it for 30 seconds: your page shows its fallback content right away instead of waiting. Setting: the client’s cache option ({ ttlSeconds, pauseSeconds }, or false to turn it off).

Pro plan: on a product page, an anonymous visitor sees products close to the one shown mixed with what they already looked at during their visit. On Free, anonymous recommendations follow the product shown.

TypeScript examples and reference →

05. Check before rolling out

  • The catalog is received with the right ids and the right attributes.
  • The request returns existing items, displayed correctly on your site.
  • Interactions arrive with the right context and no secret key exposed.
  • Purchases arrive with their recommendation and their price (console, Performance: a message there flags what is missing).
  • The journey also works for a new visitor with no history.
  • The collaborative strategy uses a model trained on the expected interactions.

The integration check is done with GET /placements/{slug}/health: calls, impressions, clicks and other events received, with ok / warning / missing states.

No universal setup time is promised: it depends on the catalog, the stack and the tracking already in place.

Back to the journeys →