{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "wanmol-goal-flow--transpile-dify-flow-to-langgraph-python",
 "repo": "wanmol/goal-flow",
 "repo_url": "https://github.com/wanmol/goal-flow",
 "repo_slug": "wanmol-goal-flow",
 "title": "Turn a Dify flow into a version-controlled LangGraph file",
 "page_title": "How to turn a Dify flow into a version-controlled LangGraph file with Goal Flow",
 "summary": "Convert a Dify DSL export into a runnable LangGraph Python workflow you own.",
 "who": "A developer whose product team designed an LLM flow in Dify's visual editor and now needs it in git without depending on Dify's runtime.",
 "problem": "Visual flows are hard to review, test, and version in source control, and running them requires the Dify runtime.",
 "outcome": "A generated Python file with a class that extends BaseWorkflow, which can be committed, reviewed, and registered with the GoalFlow server.",
 "steps": [
  "Run `git clone` on the goalflow repository and `cd goalflow`.",
  "Run `cp .env.example .env` and fill in the values you need.",
  "Run `pip install -e .` to put the goalflow package on your path.",
  "Run the Dify transformer at src/goalflow/tool/dify_transformer/wf_code_generator.py against your exported Dify DSL .yml file to emit a workflow .py file. (inferred, check the README)",
  "Open the generated file and check that it defines a class extending BaseWorkflow before committing it."
 ],
 "agent_prompt": "In the goalflow repo, transpile the Dify DSL export at <path-to-dsl.yml> using the Dify transformer in src/goalflow/tool/dify_transformer/. Write the generated Python workflow class to <output-path>.py. Verify that the file defines a class that extends BaseWorkflow and report any Dify node types the transformer could not map.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README does not give the exact transpiler command, so verify the entry point in docs/dify-transformer.md before running it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.12",
  "Redis (cluster or standalone) and MySQL",
  "A cloned copy of the goalflow repository and a filled-in .env file copied from .env.example",
  "A Dify DSL export (.yml) if you want to transpile a visual flow"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/wanmol-goal-flow/transpile-dify-flow-to-langgraph-python/",
 "md": "https://dedupedai.com/use-cases/wanmol-goal-flow/transpile-dify-flow-to-langgraph-python/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/wanmol-goal-flow--transpile-dify-flow-to-langgraph-python.json",
 "api_version": "v1"
}
