Skip to main content
Use the Algolia node for n8n to manage and query your indices from any n8n workflow. Whenever data changes in your other tools, such as a CMS, database, CRM, or spreadsheet, a workflow can add, update, or delete the matching records in Algolia, without writing custom code. Workflows can also search your indices, to route content, trigger alerts, or retrieve context for AI workflows. n8n is a workflow automation platform with a visual editor. You can use n8n Cloud or self-host n8n.

Before you begin

You need:
  • An n8n instance (Cloud or self-hosted)
  • On self-hosted n8n, community nodes turned on by an instance owner
  • Your Algolia application ID and an API key

Install the Algolia node

  1. In the n8n workflow editor, click + to open the node panel.
  2. Search for Algolia, then click Install node.
To install the node from the command line instead, for example when you manage a self-hosted instance, use the npm package name @algolia/n8n-nodes-algolia. See Install community nodes in the n8n documentation.

Connect your Algolia account

  1. Add the Algolia node to your canvas, then click the node to open its parameters.
  2. In the Credential for Algolia API menu, click Create new credential.
  3. Fill in the credential fields:
    • Application ID: your Algolia application ID
    • Admin API Key: an Algolia API key with permissions for the operations you want to automate
  4. Click Save.
The credential is stored in n8n and reused by every Algolia node in your workflows. Despite its name, the Admin API Key field accepts any Algolia API key. Only the API keys and Vaults operations need your Admin API key. For indexing and search, use a key restricted to the indices and operations your workflows need. When you save the credential, n8n tests it by listing your applicationโ€™s API keys, which requires your Admin API key. With any other key, the test reports an error even though the credential is saved and your workflows run with it.

Available operations

The Algolia node covers the Search API. Pick a Resource, then an Operation.
These operations configure the Algolia Vault firewall, an Enterprise add-on.

Build an indexing workflow

This example keeps an index in sync with content from another app. The same pattern works with any n8n trigger.
1

Create a new workflow

In n8n, create a workflow and give it a name.
2

Add a trigger

Add a trigger node for your data source, for example:
  • Webhook: your app calls n8n when content changes.
  • Schedule Trigger with a database or HTTP node: poll your source on an interval.
  • An app trigger such as Airtable, Notion, or Google Sheets: react to new or updated items.
3

Transform items into records

Add a Set or Code node to shape each item into a record. Keep only the attributes that are useful for searching, displaying, filtering, or ranking. Map the objectID attribute to a unique, stable identifier from your source data, such as a primary key.Algolia replaces a record that already has the same objectID, so a stable identifier means re-running the workflow updates your index instead of filling it with duplicates. For more information, see Prepare your records for indexing.
4

Send records to Algolia

Add the Algolia node and configure it:
5

Test the workflow, then turn it on

Run the workflow once, then inspect the new records in the Algolia dashboard. If the records match what you expect, toggle Active to run the workflow automatically.

Handle deletions

To remove records when items are deleted at the source, add a second path or workflow that triggers on deletion and uses the Delete a record operation with the same objectID.

Search from your workflows

The Algolia node isnโ€™t limited to sending data. Use the Search an index operation to retrieve records as part of a workflow, for example:
  • Deterministic workflows: search an index and act on the results, such as routing content, deduplicating entries, or enriching items in other tools.
  • Retrieval-augmented generation (RAG): search an index for relevant records and pass them as context to an LLM node, grounding responses in your own data.

Let an AI agent choose the queries

For workflows built around n8nโ€™s AI Agent node, where the agent decides which tools to call, use the Algolia Public MCP server instead of the Algolia node. Connect it with n8nโ€™s generic MCP Client Tool node. This lets agents search your indices and return recommendations, choosing their own queries and parameters at runtime. In short: the Algolia node when your workflow defines the query, the Algolia Public MCP server when the agent does.

Example workflows

Limitations

See also

Last modified on October 15, 2026