Skip to main content
Once you finish your Langflow flow, you can import it into watsonx Orchestrate. You have two options:

Importing langflow flow using langflow flow name

To import a flow by name, pass the Langflow flow name in the CLI import command. This method works only if you use Langflow integrated with watsonx Orchestrate Developer Edition during the import process. Otherwise, the command fails. The command imports the latest version of the specified Langflow flow with its global variables. If a flow with the same name exists, the command updates it. To import a Langflow flow using its name, run:
BASH
orchestrate tools import -k langflow -n <langflow-flow-name>

Importing langflow flow using langflow flow json

You can also import a flow using its exported JSON file. After you finish the flow, share it and export it as a JSON file for watsonx Orchestrate. When exporting, select Save with my API keys. For more information, see Import and export flows.

Save with my API keys option

Note:If your Langflow flow uses global variables, bind these variables to watsonx Orchestrate connections first. For more information, see Binding global variables to connections.
Then, to import a Langflow flow, run:
BASH
orchestrate tools import -k langflow -f <json-file-path> -a <app-id> -<requirements-file-path>