Originally posted on Methodox Wiki
Overview
Divooka™ is a node‑based visual programming environment that lets you build workflows by connecting functional blocks (called nodes).
In this example, we are going to see a simple but fully functional program in Divooka™. We are going to ask ChatGPT (from OpenAI) to generate a text prompt for an image generator, generate an image, and then preview it.
Prerequisites
- A working installation of Divooka™. All functions mentioned in this example is available in standard Divooka™ Explore distribution.
- An OpenAI API key configured in Divooka™’s AI Services toolbox. You can use Configure OpenAI node or simply save an environment variable
OPENAI_KEY
. - Basic familiarity with Divooka™’s interface (e.g., dragging nodes, wiring connections).
Building the Graph
To build the above program, use the following nodes:
- Chat GPT Complete under OpenAI Helper (You can find it in the AI Services toolbox)
- Generate Image under OpenAI Helper category (You can find it in the AI Services toolbox)
- Preview from the Basic toolbox
Running the Program
To execute the program, click on the little "Run" button at the upper right corner of the Preview node.
What Happened?
We've asked Chat GPT to "help me generate a prompt with about 300 words for an image generator (in this case Dall E 3) - describe an interesting sci-fi landscape", and used its output as input to the image generator.
This simple example illustrates several basic concepts of using Divooka™:
- Functions are available from toolboxes; they are further organized using categories. Certain functions may have variations that differ slightly in behavior.
- You can connect inputs and outputs between nodes by holding and dragging the left mouse button. That forms the logic flow of the program.
- To run a program, click the Run button on the final node from which you wish to obtain results.
Configure Nodes
If you want to pick a different model, or specifying API Key explicitly, you can use the Configure OpenAI node.
Remarks
Congratulations! You've built your first fully functional and useful Divooka™ program! Embark on an amazing journey and enjoy an unprecedented programming experience with Divooka™. As you learn more about what's available, you will be able to build more and more powerful Divooka™ programs with more sophisticated node setups.