It brings semantic search, context awareness, and balance monitoring directly into your n8n pipelines. π Get started now:
Features
- π Intelligent Semantic Search β Natural language queries with embeddings
- π¬ Context Management β Add previous messages for richer answers
- π Flexible Responses β Markdown or plain text output
- π Balance Monitoring β Track credits and usage in real time
- β‘ TypeScript Support β Strong typings and IDE hints
- π§© n8n Ready β Works as a drag-and-drop node inside your n8n editor
Installation
From npm (recommended)
From source
Run n8n with Your Extension
Windows PowerShell (edit the path)
macOS / Linux / WSL (edit the path)
You should see:
Loaded extensions from /extensions
Configuration in n8n
- Go to Credentials β New β AI Search API
- Paste your API Key (without the
Bearerprefix) - Save credentials
Usage
Search
- Resource: Search
- Operation: Search
- Parameters:
queryβ your question (required)responseTypeβmarkdown | textcontextβ optional array of messagestimeoutβ ms (default 30000)
Balance
- Resource: Account
- Operation: Get Balance
Error Codes
| Code | Meaning | Fix |
|---|---|---|
| 401 | Unauthorized | Invalid key β Get a new key |
| 429 | Too Many Requests | Slow down / add retry logic |
| 433 | Quota Exceeded | Buy credits / upgrade |
| 500 | Server Error | Try again later |
| 503 | Service Down | Temporary downtime |
Development
dist/credentials/AiSearchApi.credentials.jsdist/nodes/AiSearchApi/AiSearchApi.node.js
TypeScript Config
CommonJS build to avoid ESM issues:Logos / Icons
Put your SVGs in:nodes/AiSearchApi/aisearchapi.svgcredentials/aisearchapi.svg
dist/...
Best Practices
- Keep your API key secret (use n8n Credentials)
- Use Markdown output for rich UI
- Reset context when changing topics
- Watch your credits with the balance endpoint
Troubleshooting
- Node not visible in n8n β Check build files exist, restart Docker, verify mounted path
- Cannot find package βn8n-workflowβ β Install it:
npm i [email protected] - Build issues on Windows β Use
shxfor copy operations instead ofcp

