OpenAI-Compatible Webhook Node

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:

  1. **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.
  2. ‌**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.
  3. ‌**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.
  4. ‌**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?

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.

Hey I’m also interested in this idea.
Another example of a community built adapter is this one: Made an openai-compatible bridge for n8n workflows

It would be great if this can be integrated directly in N8N through a webhook node.

Congrats @wrj97 on your solution. I built GitHub - sveneisenschmidt/n8n-openai-bridge: OpenAI-compatible API middleware for n8n workflows. Use your n8n agents and workflows as OpenAI models in any OpenAI-compatible client. .

Nice job releasing your adapter. I was thinking as well to use GO but settles for node eventually as my golang experience was limited. Let me know if you have any questions on what you want to do next with it. For me it’s supporting the response API next to the chat completion API.

Thank you for sharing your project! Had I discovered your n8n-openai-bridge earlier, I likely wouldn’t have built a similar solution from scratch – it’s a classic case of “reinventing the wheel.” Looking forward to seeing how your support for the Completions API progresses alongside the Chat Completions API. Keep up the excellent work!

@wrj97 Thanks. Always looking for feature suggestions, bugs and other feedback, and contributors. Feel free to drop me a message if you got something.