{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "aiprobuilder-flowx--refine-workflow-with-python-sdk",
 "repo": "AIpRoBuilder/FlowX",
 "repo_url": "https://github.com/AIpRoBuilder/FlowX",
 "repo_slug": "aiprobuilder-flowx",
 "title": "Refine an existing workflow with a follow-up change",
 "page_title": "How to refine an existing workflow with a follow-up change with FlowX",
 "summary": "Apply a targeted change to one node or the whole workflow without rebuilding everything.",
 "who": "A developer who has a generated workflow and needs to add a step, such as input validation or a summary, without starting over.",
 "problem": "Re-prompting from scratch regenerates work that was already correct and makes changes harder to control.",
 "outcome": "An updated workflow in which only the affected nodes change, rerun as a service through the SDK.",
 "steps": [
  "Run `python -m pip install -e .` in the FlowX folder after completing the .env setup.",
  "Create a Python script that opens `FlowXClient(workspace=\"./workflows\")` and calls build_workflow_json with your process description.",
  "Call list_nodes on the workflow ID to get each node's step_id and node_id.",
  "Call evolve(workflow_id, \"Validate empty input.\", target=nodes[0][\"step_id\"]) to change one node, or evolve without a target to let the engine decide.",
  "Call run_service(workflow_id) to start or restart the workflow as a service."
 ],
 "agent_prompt": "Using the FlowX Python SDK in the repo at <repo-path>, open the workflow <workflow-id>, list its nodes, and apply the change: Validate empty input. to the node <step-id>. Report the list of nodes before and after, and confirm that run_service starts the workflow.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The SDK examples in the README are the reference for the calls shown here, and the walkthrough scripts are linked from the README rather than reproduced in full.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 or later",
  "An LLM provider, model, and API key for FLOWX_LLM_PROVIDER, FLOWX_LLM_MODEL, and FLOWX_LLM_API_KEY",
  "A local MCP-capable agent client, or the Python SDK in your own script",
  "A writable folder for FLOWX_DEFAULT_WORKSPACE"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/aiprobuilder-flowx/refine-workflow-with-python-sdk/",
 "md": "https://dedupedai.com/use-cases/aiprobuilder-flowx/refine-workflow-with-python-sdk/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/aiprobuilder-flowx--refine-workflow-with-python-sdk.json",
 "api_version": "v1"
}
