Variables for parameter references

更新时间:
复制 MD 格式

In AppFlow, downstream nodes often need to reference the output parameters of upstream nodes. This article shows you how to create these parameter references by inserting variables.

Procedure

  1. When creating a data flow, if the selected connector has configurable input parameters, click insert variable next to a parameter's input box. In the dialog that appears, select the data you want to reference, and the system automatically inserts the corresponding variable. This dialog shows the expandable output data structure of the upstream node's connector.

    Note

    In the label 1. When a text message is received, 1 is the node number, and When a text message is received is the name of the node's trigger condition or action.

    For example, when configuring the webhook URL, expand request body in the Insert Data panel and select session callback URL. The system then automatically fills the input box with the variable Node1.sessionWebhook.

  2. You can insert variables at any position within a parameter input box to create more flexible parameter references. If the referenced parameter is not an array, you can click it to insert it directly. For example, insert the variable Node1.sessionWebhook into the webhook URL field. In the text content field, you can enter "The answer is: ", insert the variable Node1.text.content, and then add "Response complete!".

  3. If you select an array parameter or an element from an array, a dialog for array parameters appears.

    For example, if choices is an array, you can use choices[0] to reference its first element, and so on.

    If you enter Node2.choices directly, it references the entire array.