N8n AI workflow maker

Hi everyone!

I built a tool where you input a natural language description of an automation workflow and it generates the workflow on n8n (Generates a JSON representation that you can copy and paste into the canvas)

You can try it out here: AI n8n workflow maker

The purpose of this project was to create an educational example of how to create complex GPT workflows which outputs are deterministic. Hopefully the n8n community and automation community in general will get more involved in AI and some collaboration can be achieved.

I opened sourced the project so that it can serve all of you as a foundation to build complex GPT workflows that include the use of Prompt chaining, Semantic Search through embeddings, and AI deterministic outputs.

You can check out the files here: GitHub - josepozuelo/n8nAIworkflow

Please feel free to send me a Twitter DM (https://twitter.com/JAPozueloM) or comment here if you have any observation or questions.

If more people are interested about this I can make more educational resources like videos and walkthroughs of the concepts. Also, I encourage you to improve the workflow and submit Pull requests on Github to improve it.

Top things to improve:

  • Add custom logic for CODE nodes (teaching GPT about the internal structure, methods, and variables available in n8n)
  • Add a DB of parameters that are required for each node, link them to the resource/operation combinations that “show” them. Then create a GPT workflow to fill those in for each node.

Happy hacking!
Jose

36 Likes

This is so cool!

2 Likes

Amazing work and thanks a lot for sharing!

4 Likes

Thanks Andres!

Let me know if you end up using the underlying workflows!

Would love to hear your thoughts.

Thanks Jan!

Wow, that sounds really cool! Tools like this will make it much easier for non-technical people to create more complex workflows. I was actually thinking of making a simple n8n workflow using the GPT-3 API for something similar.

I’m very impressed by your work - it’s great to see people pushing the boundaries of what’s possible!

2 Likes

Thanks David! Feel free to hit me up if you have any questions regarding using GPT3 through n8n.

1 Like

Hey @jpm thanks for sharing the repo, great stuff!!!

I think I’ve got it all set up after running all 6 workflows successfully, which has propagated data to my pinecone and firebase.

I’m not getting the greatest results. I was wondering if you could maybe shed some more light on where things could be improved. Namely, it doesn’t seem to fill in much of the nodes, and maybe it doesn’t connect them up properly? Have you noticed this at all?

I’ve also tried changing up the workflows and replit script so that it uses davinci rather than the smaller models.
It seems to improve it slightly, or maybe it makes it a bit more confused… I’m not sure. Happy to share the code. I was considering going to GPT-4 but I assume that will require some further modifications. I’m also wondering if it is due to some of the models being depreciated, though I still have them listed when getting all models so maybe not.

Also, it may be a result of my initial request. I wasn’t sure how to format the call to the webhook of the trigger workflow. Can you give some details on the correct format for that?

Hey Skoop! How are you doing?

It’s great that you were able to set it up.

It doesn’t fill out the fields because that part was left for the next iteration, but I never got to it haha. The project is quite old, and nowadays there are quite a bit more sophisticated techniques to set up the embeddings and prompts, so I think it might be easier to map out all the fields as of now.

As of the call to the webhook I basically just send the user query in the format of my tallyform, but you can edit it to be mapped to wherever you are receiving the user query.

Send me a DM and I can share another workflow that has some exercises using the different OpenAI and Anthropic models, it might help you migrate the project to GPT4 if you’d like. (The JSON is too long to add to this post)

1 Like

@jpm this is a great tool. is thing going to be a community node?

1 Like

@jpm really like this concept. I wonder if it is something that could be done with a custom GPT.

Hi @jpm , we can talk about how to get this working today. I followed you on Twitter, but I can’t send you a DM because I’m not a Twitter Premium subscriber.

How’s it going with this project? Has anyone implemented the latest gpt models for this?

Also are you using a knowledge base with the latest n8n documentation. I find their platform is updated often, so plain gpt is usually outdated.

I have searched for something like this for the past couple of days. I am toying with some ideas for making one of these tools.

I will update here if I get any success.

1 Like

Hi Michael,

Thanks for reaching out. Would you be willing to touch base to share ideas on this?

Arno

Yup. I’ll post it here if I finish it.

I have several ideas for this. But, the main one is fine tuning a gemini-1.5-flash model for this. But, the one I am working on now is an n8n documentation search and extraction flow.

We shall see.

I am working on same would love to work with you on this project

1 Like

I’m looking at doing this as well - Chatgpt reckons you can do it using a customgpt on openai, something like browseruse and n8n - with the correct prompt you could send it off to create whatever workflow you want in theory - but I’d like to know if it’s hallucinating…

Is there an API connection between n8n and openai that allows a customgpt to create workflows?