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.
OPENAI_KEY
.To build the above program, use the following nodes:
To execute the program, click on the little "Run" button at the upper right corner of the Preview node.
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™:
If you want to pick a different model, or specifying API Key explicitly, you can use the Configure OpenAI node.
For online services, each toolbox typically offers alternative ways to directly configure the required keys using environment variables. In this case, for most of the OpenAI services, you can use OpenAI_Key
(case insensitive). Refer to API doc for more details.
(Pending screenshot for defining environment variable on Windows; Might be available from Internal Training presentation)
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.
Resources
If you want to learn more about the design of node configurations in Divooka, take a look at this blog article from Methodox Blog