How to reuse specified flow?

I’ve checked prompt gen and its super cool and so. But it’s a disaster that I need to swap between the screens to generate it and copy-paste the entire thing.

9 Likes

Hey Karly! Unfortunately right now there is no easy-breezy way to reuse your flow, BUT there is one method though. It’s called sub-workflow.

Let’s do it by example.
You want to create a simple AI App Dads joke generator.
Ofc you can go with your prompting skills, but believe me. Rely on our mighty prompt gen.

  1. So first things first, you need to have an instance of prompt gen in your dashboard. Open a template and get back to your dashboard

So we have it on the dashboard. Great!


Remember this title.

  1. Create an empty flow

  2. Define your main logic. In our case that’s an GPT processor node. And we want to use some cool prompt from prompt gen.

  3. Now add sub-workflow node

  4. Connect sub-workflow node to the start node and gpt processor

  5. Go to sub-workflow node. Double click it. You need to specify the flow you want to run. In our case that’s Prompt Gen Pack! flow

  6. Click play button on the start node and on the sub-workflow node, so you will see the example params

  1. So we need to replace the “reprehenderit” text to our task from the input node. Let’s do it.
    Change type of the field params to expression by selecting it from the dropdown menu

  2. Open it up and type something like {“task”:“”} and drag’n’drop the variable from the input. You will have something like this


    Cool. Now we pass our task to sub-workflow node. Let’s pass the end prompt to chatGPT node

  3. Open the GPT processor node.
    We need to create a system prompt message, keep it empty for now. Save.


And then change type to expression. Now open expression editor and select our prompt from the subworkflow node

  1. Add user message

  2. Voíla!

7 Likes

Totally agree, it would be awesome if the prompt generator was built into the interface. Developers, give it a thought, great idea!

2 Likes

Worked, buit It looks like a headache to me. Like I’m actually programming. Why would you name yourself a NO CODE platform and being more complicated than a simple CODE with gpt code interpreter?

1 Like