Skip to main content
This is a custom n8n node for integrating the AI Search API into your automation workflows.
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 source


Run n8n with Your Extension

Windows PowerShell (edit the path)

macOS / Linux / WSL (edit the path)

Then open: http://localhost:5678
You should see: Loaded extensions from /extensions

Configuration in n8n

  1. Go to Credentials → New → AI Search API
  2. Paste your API Key (without the Bearer prefix)
  3. Save credentials

Usage

  • Resource: Search
  • Operation: Search
  • Parameters:
    • query → your question (required)
    • responseType → markdown | text
    • context → optional array of messages
    • timeout → ms (default 30000)

Balance

  • Resource: Account
  • Operation: Get Balance

Error Codes


Development

You should see compiled files:
  • dist/credentials/AiSearchApi.credentials.js
  • dist/nodes/AiSearchApi/AiSearchApi.node.js
package.json important parts:

TypeScript Config

CommonJS build to avoid ESM issues:

Logos / Icons

Put your SVGs in:
  • nodes/AiSearchApi/aisearchapi.svg
  • credentials/aisearchapi.svg
Build script copies them next to compiled files in 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 n8n-workflow@1.108.2
  • Build issues on Windows → Use shx for copy operations instead of cp

Resources


Start Now

Install and connect your API key in n8n, then start building AI-powered workflows: