The idea is:
Implement an official webhook node in n8n that is natively compatible with the OpenAI API specification. This node would allow n8n workflows to receive and respond to HTTP requests formatted according to OpenAI’s API standards (e.g., /v1/chat/completions), enabling seamless interoperability with the broader ecosystem of tools, applications, and client libraries built around OpenAI’s API.
My use case:
As the developer of the n8n2openai adapter, I currently use a custom solution to bridge n8n’s chat capabilities with OpenAI-compatible endpoints. This allows me to expose n8n-powered AI workflows as services that can be consumed directly by standard OpenAI client SDKs, third-party AI platforms, and applications expecting OpenAI-style API responses. However, maintaining a custom layer adds complexity and limits scalability. An official node would streamline this process for all users with similar integration needs.
I think it would be beneficial to add this because:
- **Ecosystem Compatibility:** The OpenAI API format has become a de facto standard for many AI/ML applications. Native support would allow n8n to effortlessly integrate with a growing landscape of AI tools, frameworks, and platforms.
- **Reduced Integration Overhead:** Users would no longer need to build and maintain custom middleware (like
n8n2openai) to adapt n8n to OpenAI-expecting clients, saving development time and reducing error-prone adaptations. - **Enhanced Use Case Expansion:** This would position n8n as a more versatile backend for AI service deployment, appealing to developers and businesses who rely on OpenAI-style interfaces for chatbots, automated support, content generation, and other AI-driven workflows.
- **Community Alignment:** As the AI tooling ecosystem continues to consolidate around standard APIs, offering native compatibility ensures n8n remains competitive and accessible.
Any resources to support this?
-
OpenAI Official API Documentation: https://platform.openai.com/docs/api-reference
-
Example of community-built adapter: GitHub - myml/n8n2openai: n8n chat converted to an OpenAI compatible interface
-
Growing list of third-party tools and LLM proxies adopting OpenAI-compatible endpoints (e.g., LocalAI, Ollama, and many model hosting services)
Are you willing to work on this?
Yes, I would be happy to contribute insights, testing, or feedback based on my experience with n8n2openai to support the design and implementation of this feature.