Templates / Create universal OpenAI-compatible API endpoints for multiple AI workflows

Create universal OpenAI-compatible API endpoints for multiple AI workflows

Ready for 3.0

by Dele Odufuye · 1,616 views · created 2025-10-09 · Engineering, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 18 nodes and runs when an HTTP GET request hits its webhook URL (plus 2 other triggers). Along the way it connects OpenAI Chat Model.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 2 other triggers).

  1. Get many workflows (n8n): uses n8n
  2. Remap to Response API Schema (Code): runs custom JavaScript code
  3. Powered By n8n Workflow Models (AI Agent): runs an AI agent, with model: n8n Webhooks; memory: Simple Memory
  4. Edit Fields (Edit Fields (Set)): sets 3 fields: name, id, path
  5. Is Stream? (If): checks a condition and branches into true / false
  6. Aggregate: combines items into one
  7. Call workflow webhook (HTTP Request): calls an HTTP API (POST)
  8. Call workflow webhook (HTTP Request): calls an HTTP API (POST)
  9. Models Response (Respond to Webhook): sends the response back to the webhook caller
  10. Format Stream Response (Code): runs custom JavaScript code

…plus 3 more steps. See the full node list below.

Services it uses

OpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (12)

From the author

N8n OpenAI-Compatible API Endpoints Transform your n8n workflows into OpenAI-compatible API endpoints, allowing you to access multiple workflows as selectable AI models through a single integration. What This Does This workflow creates two API endpoints that…

Excerpt from Dele Odufuye's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.