Block 1 - Aggregate
- Type / Role
- n8n-nodes-base.aggregate - aggregate
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
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...
n8n-nodes-base.aggregate, n8n-nodes-base.respondtowebhook, n8n-nodes-base.webhook, n8n-nodes-base.stickynote, n8n-nodes-base.n8n, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.if
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Dele Odufuye.
Original n8n.io sourceTransform your n8n workflows into OpenAI-compatible API endpoints, allowing you to access multiple workflows as selectable AI models through a single integration.
This workflow creates two API endpoints that mimic the OpenAI API structure:
/models - Lists all n8n workflows tagged with aimodel (or any other tag of your choice)/chat/completions - Executes chat completions with your selected workflows, supporting both text and stream responsesAccess Multiple Workflows: Connect to all your n8n agents through one API endpoint instead of creating separate pipelines for each workflow.
Universal Platform Support: Works with any application that supports OpenAI-compatible APIs, including OpenWebUI, Microsoft Teams, Zoho Cliq, and Slack.
Simple Workflow Management: Add new workflows by tagging them with aimodel . No code changes needed.
Streaming Support: Handles both standard responses and streaming for real-time agent interactions .
aimodel to make them accessible through the APIFor detailed setup instructions and implementation guide, visit https://medium.com/@deleodufuye/how-to-create-openai-compatible-api-endpoints-for-multiple-n8n-workflows-803987f15e24.
This approach was inspired by Jimleuk’s workflow on n8n Templates.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Create universal OpenAI-compatible API endpoints for multiple AI workflows |
|---|---|
| Complexity | advanced |
| Nodes | 21 |
| Categories | Engineering, AI Chatbot |
| Author | Dele Odufuye |
| Published | 09 Oct 2025 |
Use the JSON export at /data/workflows/9438/9438.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Chatbot use case.