# N8n OpenAI API functionality

**URL:** <https://community.n8n.io/t/n8n-openai-api-functionality/76977>\
**Category:** Questions\
**Created:** [February 11, 2025, 7:13pm UTC](https://community.n8n.io/t/n8n-openai-api-functionality/76977 "2025-02-11T19:13:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoolio](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hoolio/32/56384_2.png) [@Hoolio](https://community.n8n.io/u/Hoolio)\
**Post date:** [February 11, 2025, 7:13pm UTC](https://community.n8n.io/t/n8n-openai-api-functionality/76977/1 "2025-02-11T19:13:55Z")

</div>

Hi there

I’m pretty new to n8n - amazing tool!

Is there an API connection between n8n and openai that allows a customgpt to create workflows from a prompt and iterate until the desired functionality is achieved?

I’m looking to achieve something similar to this question a couple of years ago

> [@crazy\_face Call me Crazy: how about having an PROMPT: to generate n8n workflow](http://community.n8n.io/t/call-me-crazy-how-about-having-an-prompt-to-generate-n8n-workflow/23947):
>
> Hey; I played a little with OpenAI and ChatGPT and at one point I came with the idea that to ask [OpenAI Chat](https://platform.openai.com/playground?mode=chat) to build a n8n workflow. Obviously; as I miss knowledge of GPT and JavaScript, I was unable to make my workflow totally working, but the result was still impressive. So, I wonder if we could work on a PROMPT SYSTEM: which would help PROMPT USER: do generate n8n workflow. Maybe have to give concrete example to the PROMPT SYSTEM: so it could handle it. Or we need to train it even more. …

Chatgpt tells me it’s possible and swears the api is up to it - I’m not convined it’s not hallucinating or doesn’t really know/understand n8n’s functionality properly.

I’m new to n8n but sure would love to be able to get this to work.

Will save me a lot of work building a workflow to handle the 3000 enquiries i have to deal with this year for my charter business!

thanks

Jules

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/26906_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [February 11, 2025, 7:13pm UTC](https://community.n8n.io/t/n8n-openai-api-functionality/76977/2 "2025-02-11T19:13:59Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![Hoolio](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hoolio/32/56384_2.png) [@Hoolio](https://community.n8n.io/u/Hoolio)\
**Post date:** [February 11, 2025, 7:23pm UTC](https://community.n8n.io/t/n8n-openai-api-functionality/76977/3 "2025-02-11T19:23:50Z")

</div>

- **n8n version:** latest, beta
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- \*\*Running n8n via cloud
- **Operating system:** macos

---

<div class="post-metadata">

**Author:** ![JOduMonT](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jodumont/32/5718_2.png) [@JOduMonT](https://community.n8n.io/u/JOduMonT)\
**Post date:** [February 16, 2025, 10:03am UTC](https://community.n8n.io/t/n8n-openai-api-functionality/76977/4 "2025-02-16T10:03:30Z")

</div>

Hey @Hoolio;

Here how I made it at the end and I still currently doing it.

I use a Free Perplexity Account  
why Perplexity it is mostly

1. by habit
2. what so they call an online-llm so; up to date
3. free

So I created a **Perplexity SPACE** and named it n8n expert.  
then my instruction are around where I’m lacking skills; in my case it is JS; so my Instructions in that Space looks like:

```prompt
You are a n8n expert with practical experience in optimizing workflow, writing custom functions in JavaScript and a deep understanding of RESTful APIs, JSON Query and JMESPath.

Your task is to assist users in troubleshooting and optimizing their n8n workflows.

Provide clear, step-by-step guidance for resolving issues, and offer best practices for efficient workflow design. When appropriate, include code snippets or examples to illustrate your points.

```

> HINT: you can personalize it to your own challenge and then make it better with [PromptPerfect](https://promptperfect.jina.ai/prompts).

in my SPACE I added few links; you could also consider adding relevant PDF

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/5/8567a89b6f0b931a5a28db07974ac707981738b7.png)

it’s not perfect  
but I would say; lately I was able to directly cut and paste perplexity’s JS code and it was working without any revision from me.

---

<div class="post-metadata">

**Author:** ![Hoolio](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hoolio/32/56384_2.png) [@Hoolio](https://community.n8n.io/u/Hoolio)\
**Post date:** [February 23, 2025, 9:31am UTC](https://community.n8n.io/t/n8n-openai-api-functionality/76977/5 "2025-02-23T09:31:35Z")

</div>

Okay that’s pretty cool. Thanks a lot for that

I often copy and paste the code From chatgpt Which works pretty well.

What I was really hoping for was the API link So the idea would automatically pop up as a workflow in N8n

There is an API link available, the n8n team have shown me it.

I’ve not tried it out yet

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/36532_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 24, 2025, 9:31am UTC](https://community.n8n.io/t/n8n-openai-api-functionality/76977/6 "2025-05-24T09:31:43Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
