# Create Flow from Flow

**URL:** https://discourse.nodered.org/t/create-flow-from-flow/30174
**Category:** General
**Created:** [16 July 2020 06:52 UTC](https://discourse.nodered.org/t/create-flow-from-flow/30174 "2020-07-16T06:52:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![NicerDicer](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@NicerDicer](https://discourse.nodered.org/u/NicerDicer)
#### Post date: [16 July 2020 06:52 UTC](https://discourse.nodered.org/t/create-flow-from-flow/30174/1 "2020-07-16T06:52:36Z")

</div>

Hey I am new to Node-Red so forgive me if this question is stupid 😃

I want to make a Flow, which creates a new Flow from an injected json file at the first one. Is it possible to create a Flow in a Flow without using the "Import"-button at all?

---

<div class="post-metadata">

### Author: ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)
#### Post date: [16 July 2020 08:08 UTC](https://discourse.nodered.org/t/create-flow-from-flow/30174/2 "2020-07-16T08:08:24Z")

</div>

There are no stupid questions. 🕶

First, it _should_ be possible to push new flows using the [Admin HTTP API](https://nodered.org/docs/api/admin/methods/), the same API that is used by the Editor itself.

However, modifying the environment in such a way doesn't come without risks. Are these flows generated from user data outside of your control? In any way, you could end up with a non-functioning runtime and security issues.

And since you are new to Node-RED, I think you should get a grasp of all the basic concepts before doing something such advanced. I have been using Node-RED for many years and many different use-cases, and never had the need for such metaprogramming.

So what is your actual use-case? Could it be solved in other (simpler) ways? I think that should be discussed first, before diving in too deep. 😀

---

<div class="post-metadata">

### Author: ![NicerDicer](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@NicerDicer](https://discourse.nodered.org/u/NicerDicer)
#### Post date: [16 July 2020 08:38 UTC](https://discourse.nodered.org/t/create-flow-from-flow/30174/3 "2020-07-16T08:38:14Z")

</div>

At first thanks for the fast answer.

The data generating the flows are under my control and nobody else can change something. So i don't think the problems you mentioned would affect me.

To be honest i'm surprised that it is that difficult. My first step was to find a node in the library 😃  
So as you say im starting with some easier stuff.

I'm in a company right now (its a confusing system, im switching between university and work), to find out and write a little bit about Low-Code. With that said my supervisor told me to write a programm, which converts a json file to a flow of any Low-Code platform.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 September 2020 08:38 UTC](https://discourse.nodered.org/t/create-flow-from-flow/30174/4 "2020-09-14T08:38:26Z")

</div>

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