Update a Dataphin unstructured workflow

Updated at:

You can use natural language instructions to drive code agents such as Qoder and CodeX to update existing Dataphin unstructured workflows. This lets you perform tasks such as adjusting a prompt, changing a model, adding or deleting an operator, modifying a connection, or switching a dataset version. This document describes this feature, its prerequisites, usage examples, and expected results. An appendix also lists the input parameters for your reference.

Overview

The unstructured workflow update feature lets you use natural language commands to make specific changes to an existing unstructured workflow. The agent follows a read-modify-submit process: It first reads the workflow's current full configuration to establish a baseline. Then, it applies only the specified changes, leaving all other operators, connections, and configurations untouched. Finally, it submits the update and reads the configuration again to verify the changes, preventing accidental modifications or loss of other settings.

Use cases:

  • Modify the prompt of an operator or change the model it uses.

  • Add or delete operators in the workflow and adjust the connections between them.

  • Switch the dataset version used by an operator, or adjust its resource specifications or scheduling configuration.

Note

Limitations: This feature only updates existing workflows and cannot create new ones. Updates are applied by overwriting the entire workflow. The agent first reads the current configuration, applies your specified changes, and preserves all unchanged parts. This feature does not include version history or a one-click rollback option. To revert a change, you must rely on the baseline configuration read before the update. This feature is available only for BASIC mode projects, where the environment is fixed to production.

Before you begin

  • The target workflow must already exist, and you need its identifier. You can find this information on the task details page or in the URL.

  • The workflow must belong to a BASIC mode project.

  • You must know the specific changes you want to make, such as modifying a prompt, changing a model, adding or deleting an operator, adjusting a connection, switching a dataset version, or updating resource specifications or a scheduling configuration.

Examples

You can describe your requirements to the agent in natural language. The following are example commands:

  • Change the prompt for the element extraction step to the new version, and save it as a draft.

  • Add a deduplication operator after the document parsing operator.

  • In the vectorization step of the workflow, replace the current model with a different embedding model.

Interaction steps:

  1. After you provide the workflow identifier and your change request, the agent typically reads the workflow's current configuration to establish a baseline.

  2. The agent then generates a change plan that shows the differences before and after the change, the affected operators and connections, and any risk warnings. The agent then pauses for your confirmation.

  3. Once you confirm, the agent applies the minimal required changes to the baseline configuration, keeps all other parts unchanged, and submits the update.

  4. After submission, the agent reads the configuration again and compares it with the baseline to confirm that the changes have been applied correctly and that all unchanged parts remain consistent.

Results

The operation produces the following outcomes:

  • Response: The update and submission status of the workflow.

  • Completion status: If the update is successful, the system replaces the workflow's configuration with the new content. By default, the update is saved as a draft. You must submit it from the UI for the changes to take effect.

  • Verification: You can open the workflow in the Dataphin unstructured workflow UI to confirm that the modified operator's configuration has been updated. If necessary, use a test run to verify the changes.

Note

A success message in the command-line interface (CLI) only indicates that the system received the request. The result in the Dataphin UI determines the final operation status.

Appendix: Parameters

The following table lists the parameters required when updating an unstructured workflow. This list is for reference only. In practice, the agent automatically identifies the necessary information from your commands and prompts you if anything is missing. You do not need to provide parameters the system generates automatically.

Parameter

Required

Description

Example

tenant ID

Conditionally

If multiple tenants share the same service endpoint, you must explicitly specify the tenant to which the project belongs.

1234567890123456789

project ID

Yes

The BASIC mode project that the workflow belongs to.

—

workflow identifier

Yes

The identifier for the workflow to be updated. You can find this on the task details page or in the URL.

—

change content

Yes

The content of the modifications, such as a prompt, model, operator additions or deletions, connections, a dataset version, resource specifications, or a scheduling configuration.

Modify the prompt for element extraction.

change description

No

A description of the changes. A brief summary is recommended.

—

submission action

No

Specifies whether to immediately submit the changes to take effect. By default, the changes are saved as a draft.

Save as draft