> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How does Advanced Personalization work?

> Understand how Advanced Personalization uses a user's behavior to create personalized experiences.

The Advanced Personalization feature builds user profiles for each of your users based on their behavior on your website or app.
A user's behavior implicitly reveals their preferences and interests and can be referred to as "affinities".

<Callout icon="credit-card" color="#c084fc">
  This feature isn't available on every plan.
  Refer to your [pricing plan](https://www.algolia.com/pricing) to see if it's included.
</Callout>

## Identify categories as facets

Most users tend to have affinities for categories of items rather than specific individual items.
For example, a user can have an affinity for athletic wear while shopping for clothing, fictional works when browsing through books, or pop music when listening to music.
These categories make up the [facets](/doc/guides/managing-results/refine-results/filtering) within your data.
To build accurate user profiles for your users, Advanced Personalization needs to understand which categories, that is, facets, your user has an affinity for.

Take a music streaming service as an example.
For the streaming service to make search results more personalized to each user, it's more important for it to understand the music categories (genres and artists) the user likes, rather than the specific song titles they've listened to.
Advanced Personalization works by creating a user profile that details musical preferences (affinities) based on the categories of music they like.
This profile can be used in conjunction with Algolia's [NeuralSearch](/doc/guides/ai-relevance/neuralsearch/get-started) or keyword search to personalize the user's search results.

For more information, see:

* [Prepare your index structure](/doc/guides/personalization/advanced-personalization/configure/prerequisites/index-structure)
* [Prepare your search implementation](/doc/guides/personalization/advanced-personalization/configure/prerequisites/search-implementation)

## Translate user behavior into affinities through events

User behavior describes all search and non-search interactions users have with your website or app.
Meaningful user behavior can provide insights into a user's affinities.
Examples of meaningful behavior include when a user clicks, views, likes, favorites, bookmarks, or purchases a particular item or category.

User behavior reaches Advanced Personalization in the form of standardized events.
**Each time a user engages in meaningful behavior, you need to send an event to Algolia so that Advanced Personalization can use it to build that user's profile.**
It's important to gather as much data as possible when trying to build the most comprehensive and relevant user profiles for your users.

For more information, see [Prepare your event implementation](/doc/guides/personalization/advanced-personalization/configure/prerequisites/event-implementation).

## User profiles

A user profile is a representation of a user based on their behavior on your website or app.
It's used in conjunction with Algolia's [NeuralSearch](/doc/guides/ai-relevance/neuralsearch/get-started) and keyword search to personalize results.

For more information, see:

* [User profiles](/doc/guides/personalization/advanced-personalization/what-is-advanced-personalization/concepts/user-profiles)
* [Fetching a user profile](/doc/guides/personalization/advanced-personalization/implement/guides/fetching-a-user-profile)
