Skip to main content

Installation

Install the @orq-ai/n8n-nodes-orq package through the n8n Community Nodes manager:
  1. Open n8n and go to Settings
  2. Select Community Nodes
  3. Click Install a community node
  4. Enter @orq-ai/n8n-nodes-orq and click Install
You may need to refresh your browser or restart n8n Desktop after installation.

Credentials

  1. In n8n, go to Credentials and click New
  2. Search for Orq API
  3. Paste your API key from Workspace Settings
  4. Name the credential and save

Quick Start

  1. Add a Manual Trigger node
  2. Add an Orq Deployment node and connect it
  3. Select a deployment, add a message with role user and your prompt text
  4. Click Execute Workflow
n8n workflow with Manual Trigger connected to Orq Deployment node

Nodes Reference

Three nodes are available:
  • Orq Agent: Run an Agent for multi-step tasks with tools and autonomous reasoning.
  • Orq Deployment: Invoke a Deployment for direct, single LLM calls with prompt templates.
  • Orq Knowledge Base Search: Search an Orq.ai Knowledge Base for RAG and context retrieval.

Orq Agent

Run an Orq.ai Agent for complex, multi-step tasks. The node sends a message to the agent, waits for it to complete (including any tool calls), and returns the final response.

Additional Fields

Output

The node branches on the agent’s final status: completed routes to the success branch, incomplete returns a partial response with incomplete: true, and failed throws with the server error message.

Orq Deployment

Invoke an Orq.ai Deployment with messages, routing context, and variable inputs.

Messages

Each message has a Role (User, System, or Assistant). System and Assistant messages take plain text. User messages support two content types:
Some models require text alongside images. Check your model’s documentation if image-only messages return errors.

Output


Run semantic, keyword, or hybrid search over an Orq.ai Knowledge Base. When AND or OR is selected, add one or more conditions. Each condition takes: When Custom JSON is selected, provide a recursive filter structure directly:

Additional Options

Output

array
Array of matching chunks. Use {{ $json.matches[0].text }} in downstream nodes to get the top result.

OpenTelemetry Observability

n8n (v2.19.0+) exports OpenTelemetry traces for every workflow execution. Point n8n at the Orq.ai OTLP collector to see workflow runs, node performance, and agent invocations in Traces.
OpenTelemetry tracing in n8n is in Preview. Metrics export is not yet supported.

Prerequisites

  • n8n v2.19.0 or later
  • An API key with trace ingestion permissions

Configure the OTLP exporter

Option 1: Settings UI (n8n v2.27.0+)
  1. Open Settings > OpenTelemetry
  2. Turn on Enable OpenTelemetry
  3. Under Collector connection, set the OTLP endpoint to https://my.orq.ai/v2/otel and add the header authorization=Bearer <YOUR_ORQ_API_KEY>
  4. Select Save settings, then run Send test trace under Verify configuration to confirm the collector accepts the export
Environment variables override the UI settings, so leave the matching variables unset to manage tracing from the UI. Option 2: Environment variables Set three environment variables where n8n runs. Docker, Docker Compose, systemd, or .env all work:
Restart n8n after setting the variables.
n8n appends /v1/traces to the endpoint automatically. Point it at the base URL (https://my.orq.ai/v2/otel), not at /v2/otel/v1/traces.

What n8n sends

n8n exports standard OTLP HTTP traces (Protobuf encoding) with three span types: Resource attributes include service.name (default n8n), service.version, and n8n.instance.id.
By default n8n exports traces for production executions only. Set N8N_OTEL_TRACES_PRODUCTION_ONLY=false to include manual test runs.
Agent spans require n8n v2.33.0+ and the Agents feature. Older n8n versions export only workflow.execute and node.execute spans.

What appears in Orq.ai

  • Workflow and node spans land as generic traces named workflow.execute with child node.execute spans. Inspect trace status, timing, and node-level attributes, but no model or cost data is available.
  • Agent spans use GenAI semantic conventions and render with model, token usage, and cost data in the Traces UI.

Custom attributes

n8n supports custom attributes on workflows, nodes, and projects via n8n.workflow.custom.*, n8n.node.custom.*, and n8n.project.custom.*. Node-level attributes appear in span details in Orq.ai.
Workflow and project custom attributes are part of the n8n export but are not exposed in Orq.ai.