Skip to main content
工作流应用

Function Compute Node

The Function Compute node is used in workflows to invoke Alibaba Cloud Function Compute (FC) services and execute custom business logic. It is suitable for scenarios requiring cloud function invocation to process data, integrate with external systems, or perform custom computations not supported by built-in workflow nodes.

Prerequisites

  • You must first create a Function Compute service.
  • The Alibaba Cloud account used to create the Function Compute service must match the current Alibaba Cloud Bailian platform login account—or belong to the same Alibaba Cloud master account.

Adding the Node

Method 1: Add via the + button

  • Hover your mouse over any node on the canvas (e.g., the Start node); a + button automatically appears on its right side.
  • Click the + button and select Agent > Agent Creation from the pop-up node list. The node will be automatically added to the canvas and connected to the upstream node.

Method 2: Drag and drop from the node library

  • In the left-side node library, select Agent > Agent Creation.
  • Drag the node to an appropriate location on the canvas, then drag a connection line from the edge of an upstream node to this node.

Core Configuration

Input

Input parameters use a custom variable structure. Users define variable names, reference methods, and values—and may add multiple variables.
ColumnDescription
Variable NameCustom name
Reference MethodChoose Reference (to reference variables from upstream nodes) or Input (to enter a fixed value directly)
ValueDisplays either a variable selector or an input field, depending on the selected reference method

Region

Select the region where your Function Compute service resides. Supported regions: Hangzhou, Beijing, Shanghai, and Shenzhen.

Service Configuration

Select the Function Compute service you want to invoke. The dropdown list displays all available FC services under the current account in the selected region.

Timeout Setting

The default timeout for the Function Compute node is 60 seconds and cannot currently be modified.

Node Output

Output variables use a custom variable structure. Define variable names, types, and descriptions—and add multiple variables as needed. The node also provides a JSON Schema generator that automatically generates the output variable structure based on the JSON response returned by the function.
ColumnDescriptionVariable Name
Custom name corresponding to a field in the function’s returned JSON object—used by downstream nodes for referencingTypeVariable type: supports Array, Object, File, String, Number, and Boolean

Frequently Asked Questions

Why is no service listed in the Service Configuration dropdown?

Possible causes:
  • You haven’t yet created a Function Compute service in the Function Compute console—please create one first.
  • The region of your Function Compute service does not match the region configured in the node—switch to the correct region.
  • The account used to create the Function Compute service is not associated with the same Alibaba Cloud master account as your Bailian platform login account—verify the account relationship.