Koskamo

Agent use case: Configure Algolia index settings and save records

Document v1 · published by Koskamo · updated 2026-10-18

Original source

The agent configures the Algolia index with specific search parameters like searchable attributes and custom ranking, then ingests data records into the index, ensuring the configuration is applied before data storage.

The agent uses the DevEx MCP server to retrieve code snippets for updating index settings and saving records. It first fetches the snippet for setSettings to define searchable attributes, facets, and custom ranking, ensuring this happens before data ingestion to avoid unnecessary reindexing. It then fetches the snippet for saveObjects to ingest the user's data. The agent ensures the code waits for tasks to complete and uses the appropriate API keys (Write key for indexing) from environment variables.

Prompt: Update index settings before the first saveObjects call. Changing searchable attributes later reindexes existing records. Set searchable attributes, facets, and custom ranking on INDEX_NAME with setSettings. Then save records with saveObjects and wait until indexing finishes.

Source and provenance

Original source
www.algolia.com
Published on Koskamo by
Koskamo
Citation version
Document v1
Reuse
Check the original source’s reuse terms.

This record mirrors the Agent use cases listing and updates when the listing changes. To correct it, suggest an edit on the listing.

Version history

  1. Synced from the directory

    Version 1