StackAI Project

The Stack AI Project Node allows you to run (or "call") another Stack AI project from within your current workflow. This is useful for reusing logic, chaining projects, and modularizing complex workflows.

When to Use:

  1. You want to repeat the same logic across multiple projects. Create a project with the repeat logic, then import it in your other projects with a StackAI Project Node.

  2. You want to chain projects together. Create a separate orchestration project and import all the projects you'd like to chain as StackAI Project Nodes.

  3. You want to make a complex project more modular and easier to understand for other builders. Put each branch or section into a separate project and import them as StackAI Project Nodes.

How does it work?

  • Inputs:

    • Project: You select which Stack AI Project you want to execute. This is required.

    • Input Data: You provide the input(s) for the project. This is a list of strings. If you want to run the project multiple times (once for each item), you can enable Loop Mode. Make sure the inputs you select here match the inputs in the project you are importing.

    • Loop Mode (optional): If enabled, the node will execute the selected project for each item in the input data list, returning a list of results. When turning this ON, encode this input as a JSON list: ["input1", "input2"]

  • Outputs:

    • Results: After execution, the node outputs the results from the called Stack AI Project. If Loop Mode is enabled, you get a list of results (one per input); otherwise, you get a single result. Important: the output(s) of your StackAI Project Node will be output as a JSON, this is because a project can have multiple outputs

Typical Use Cases

  • Reusing a pre-built project (like a custom data processor or AI agent) in multiple workflows.

  • Chaining together multiple projects for advanced automation.

  • Running a project in bulk on a list of inputs (using Loop Mode).

Managing the Output(s) of the StackAI Project Node

If you'd like to see the output of the StackAI Project instead of the JSON file, use the Template feature in the Output Node. This allows you to manage multiple outputs and control how they are displayed.

With projects that have multiple outputs, it's easy to choose which ones you would like to display and how you want to format them!

Last updated

Was this helpful?