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.
- Category: Software development
- Effect: Changes data in your accounts
- MCP servers: Algolia Productivity MCP (https://koskamo.com/explore/algolia)
- Source: Add Algolia to your app with DevEx MCP - Algolia (https://www.algolia.com/doc/guides/model-context-protocol/devex-mcp)
- Source quote: "Update settings before the first saveObjects call. Changing searchable attributes later reindexes existing records."
- Playbook page: https://koskamo.com/explore/use-cases/configure-algolia-index-settings-and-save-records
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.