OffRail
Guides

N8n Integration

Connect n8n workflow automation to OffRail for AI-powered workflows

n8n is a powerful workflow automation tool that can be enhanced with AI capabilities through OffRail. This guide shows how to integrate OffRail into your n8n workflows.

n8n workflow with OffRail

Prerequisites

  • An OffRail account with an API key
  • n8n instance (self-hosted or cloud)
  • Basic understanding of n8n workflows

Setup

The easiest way to use OffRail with n8n is through the OpenAI node with custom configuration.

Add OpenAI Credentials

  1. In n8n, go to SettingsCredentials

n8n credentials

  1. Click Add CredentialOpenAI

n8n credentials

  1. Configure as follows:
    • API Key: Your OffRail API key
    • Base URL: https://api.offrail.ai/v1
    • Organization ID: Leave blank

n8n credentials

Configure OpenAI Node

  1. Add an AI Agent node to your workflow
  2. Add a Chat Model edge to the node

n8n credentials

  1. Configure the node to use the OffRail provider

n8n credentials

Note: You have to toggle off the responses API. OffRail does not support it.

responses api

  1. Select your desired options
  • Model: Use any OffRail model ID (e.g., gpt-5)
  • Options: Optionally, configure LLM parameters

n8n credentials

Test Workflow

Finally, try running your workflow with a test prompt.

n8n credentials

How is this guide?

On this page

Ready for production?

Ship to production with SSO, audit logs, spend controls, and guardrails your security team will approve.

Explore Enterprise