
HeroML: Write AI Workflows, Text & Art - Short Review
Website Tools
HeroML is an innovative AI Prompt Chain/Workflow interpreter designed to streamline the interaction with advanced AI models such as OpenAI’s GPT-3 and GPT-4. Here’s a detailed overview of what HeroML does and its key features:
What HeroML Does
HeroML allows developers to set up multi-step workflows to interact with AI models. This is achieved through a novel markup language called Hero Markup Language (HeroML). The platform is specifically tailored for apps built on the Hero Page ecosystem.
Key Features and Functionality
Workflow Setup
- HeroML enables users to create workflows consisting of a series of steps, each of which is a prompt that the AI model responds to. These steps are separated by the `->>>>` delimiter, allowing for a structured and sequential interaction with the AI.
Dynamic Variables and Initial Values
- Users can set up dynamic variables that are used throughout the workflow. These variables must be defined in the initial step and can be referenced in subsequent steps. For example, you can define variables like `blog_title`, `keywords`, and `tone` and use them in later prompts.
Loop Actions
- HeroML supports loop actions, denoted by `ACTION: Loop`, which allow for repetitive tasks. For instance, you can write a prompt that loops over an array of items and performs a specific action for each item.
Output and Integration
- The HeroML interpreter can be integrated into projects using the `main` function, which takes the HeroML script and initial values as arguments. The output is generated in JSON format and can be saved to a specified file. The CLI tool provides options to customize the output filename and directory.
Modes of Operation
- HeroML operates in two modes:
- Default Mode: A single prompt that yields a response.
- Loop Action: A loop action that performs repetitive tasks based on the defined prompts.
Referencing Previous Steps
- Users can reference the output from previous steps in later steps, allowing for a cohesive and dynamic workflow. For example, you can use “ in a subsequent prompt to incorporate the response from the first step.
Visual Studio Code Extension
- HeroML offers a syntax highlighter extension for Visual Studio Code, enhancing the development experience by providing better readability and coding support.
Use Cases
HeroML is particularly useful for developers who need to automate complex interactions with AI models, such as generating content, managing data, or creating multi-step processes that require sequential AI responses.
In summary, HeroML is a powerful tool for creating and managing AI workflows, offering a structured approach to interacting with advanced AI models and enabling more efficient and dynamic use of AI in various applications.