Subflow Tools

While Tools enable the Large Language Models (LLMs) to access data and perform actions, Subflow Tools enables orchestrations across a fleet of AI agents.

Adding Subflow Tools to the Workflow

You can add Subflow Tools in the AI Agent node by giving your tool a name and an optional description. Think of each subflow flow as a specialist agent that you would like the main agent to command.

Example: Contact Enrichment

Subflow Tools can work independently. In the contact enrichment example above, these tools check various systems without needing input from each other.

Subflow Tools can also work collaboratively. In the report writing example below, the AI Agent node (LLM) can first call the research website to cast a wide net. Then, the AI Agent node can call the article deep dive to only analyze a subset of articles based on selection criteria.

Example: Report Writing

Setting up Subflow Tools

Each Subflow Tool can be as simple or complex as required by the business use case.

Each Subflow Tool needs to connect to an output node be complete (e.g. Deep Dive Output in the above example). The output node connected with the main orchestrator (e.g. Final Output in the above example) is what end users see.

Prompting for Subflow Tools is easy. In the Instructions of the AI Agent node, you can describe

  • The purpose of each Subflow Tool

  • The logical sequence: Some tools can be used in parallel (e.g. contact enrichment), while other tools are dependent on each other (e.g. report writing).

  • The usage: Some Subflow Tools are expected to be called multiple times. For example, you may indicate in the Instructions "use article deep dive as many times as needed to analyze every article."

circle-info

For best results, try to keep the name of the Subflow Tools consistent between the Instructions in LLM and the Subflow Tool configuration.

A note on Subflow Tool Input

Input into Subflow Tools may be different from input into the orchestrating LLM (AI Agent node).

Input vs Subflow Tool Input

In the report writing example, the Text Input may be "research the list of websites", whereas the Subflow Tool Input to the article deep dive Subflow Tool will be the content of articles found on the websites.

You can use these two variables to pass intermediary information to other parts of the workflow based on your needs.

Last updated

Was this helpful?