- Index your records in Algolia and reindex them when they change
- Search those records with typo tolerance and relevance ranking
- Filter, sort, and browse results by facets such as category or price
- Search straight from your app’s interface with a search-only public key
Common use cases and example apps
These examples show what you can build with Algolia, each with a prompt to start from.How to connect Algolia
Who can create Algolia connections depends on your plan and workspace settings. App + chat connectors are available by default on Free, Pro, and Business plans. On Enterprise plans, they are effectively disabled at first: Who can create connections and clients defaults to No one until an admin changes it in Connectors → Admin settings → App + chat connectors. You can create multiple Algolia connections using different application IDs and keys, which is useful for separating environments (for example, development and production), targeting different Algolia applications, or scoping keys to specific indexes. When the connection is created, you can link it to the projects where you want to use it. Anyone building in a project can ask Lovable in chat to link their project to it.Prerequisites
Before connecting Algolia, make sure you have:- An Algolia account and application
- Your Algolia application ID
- A backend API key with the ACLs your app needs for indexing (at least
addObject,editSettings, anddeleteIndex) - A public API key restricted to the
searchACL. The form marks it optional, but any search in your app needs it - Permission to create connections in your Lovable workspace (see Who can create connections and clients)
All search and indexing operations made through this connector count toward your Algolia plan limits. Billing and quotas are handled directly by Algolia, not Lovable.
Step 1: Get your Algolia application ID and API keys
Your Lovable app indexes with an application ID and a backend API key, and searches from the frontend with a public API key. To get the values from Algolia:1
Open your Algolia dashboard
Sign in to the Algolia dashboard and select the application you want to connect.
2
Open API keys
Go to Settings → API Keys. Your application ID is shown at the top of this page.
3
Create a backend API key
Click New API key and create a key for backend use. Give it a descriptive name, for example
Lovable backend, and restrict it to the indexes your app uses. Grant only the ACLs the app needs for indexing: at least addObject, editSettings, and deleteIndex, plus deleteObject if the app removes single records.Do not use your Algolia admin API key. A dedicated key with the minimum ACLs can be rotated or revoked without affecting other integrations.4
Create a public search API key
Create a second key with only the
search ACL, restricted to the indexes the frontend can query. Your app searches Algolia from the browser with this key. The backend key is not used for search.Lovable checks this key on save and rejects it if it carries any ACL other than search. Restrict the key to specific indexes (and, if possible, domains) in Algolia for defense in depth.Step 2: Connect Algolia to Lovable
You can create multiple connections using different application IDs and keys.1
Open Algolia in Connectors
Open Connectors and select Algolia. For the other places to open the catalog from, see Where to find connectors.
2
Add a connection
Click Add connection.
3
Configure the connection
- Display name: name the connection, for example
Algolia Prod. This name is only used inside Lovable to identify the connection. - Application ID: paste your 10-character Algolia application ID. This value is visible in your published app.
- Secret API key: paste your backend API key. It stays on the server and is proxied through the Lovable connector gateway.
- Public API key: paste your
search-only API key. The form marks the field optional, but without it your app can index records but not search them. This value is visible in your published app.
4
Choose who can use this connection
Under Sharing, the connection is private to you by default and shows a Private label. To share it, click Share with others. Then add workspace members by email, or click Invite entire workspace to make the connection available to everyone in your Lovable workspace.See Who can use connections and clients for more information.
5
Connect
Click Connect. Lovable verifies the keys against the Algolia API before saving the connection.
Public and secret API keys
The connector uses two keys with different roles:- The secret backend API key is used for server-side calls (indexing, settings, and reindexing). It’s proxied through Lovable’s connector gateway, so the raw key never reaches the published app.
- The public API key is what your app searches with. Lovable exposes it to the frontend, which queries Algolia directly, and never routes search through your backend. Lovable accepts only a
search-only key here and rejects any key with broader permissions.
Limitations
The Algolia connector cannot:- Rotate API keys for you. To rotate, create a new key in Algolia and update the Lovable connection.
- Accept a public API key with any ACL other than
search. Keys with broader permissions are rejected on save. - Support per-end-user Algolia login. Each connection represents a single Algolia application shared across all projects linked to it.
Manage your Algolia connection
Connections are managed from Connectors: select Algolia, then open the connection.- Unlink projects to remove Algolia access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
- Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use Algolia stop working until a new connection is added. See Delete a connection for the steps and who can delete.