Skip to main content

Flow Agent

Bailian CLI command reference for listing and invoking published agent apps and workflows.

Invoke agent apps and workflows published on Bailian from the terminal: list apps and send prompts directly.
App-call capabilities are currently available only to China site (aliyun.com) accounts.
Append --help to any command for full parameter details, e.g. bl app call --help. Command details on this page are verified against bl 2.5.1.
See Calling Agent Applications for feature-page usage.

Command reference

bl app call

Call a Bailian application (agent or workflow). Requires API Key authentication. Usage
bl app call --app-id <id> --prompt <text> [flags]
ParameterTypeRequiredDescription
--app-id <id>stringyesApplication ID
--prompt <text>stringyesInput prompt text
--image <url>arraynoImage URL(s) to pass to the app (repeatable)
--file-id <id>arraynoPre-uploaded file ID(s) (repeatable)
--session-id <id>stringnoSession ID for multi-turn conversation
--streamswitchnoStream response (default: on in TTY)
--pipeline-ids <ids>stringnoKnowledge base pipeline IDs (comma-separated)
--memory-id <id>stringnoMemory ID for long-term memory
--biz-params <json>stringnoBusiness parameters JSON (workflow variables)
--has-thoughtsswitchnoShow agent thinking process
Example: Call Bailian application with specified prompt
bl app call --app-id abc123 --prompt "Hello"

bl app list

List Bailian applications. Usage
bl app list [flags]
ParameterTypeRequiredDescription
--name <name>stringnoFilter by app name (keyword search)
--page <n>numbernoPage number (default: 1)
--page-size <n>numbernoResults per page (default: 30)
Example: List applications filtered by name keyword
bl app list --name customer service