Skip to content

n8n2langraph.stub

Nicolas Cravino edited this page Apr 15, 2026 · 4 revisions

id: n8n2langraph name: N8n2LangGraph Converter repo_path: ~/Documents/sw30labs/repos/n8n-to-langraph remote_url: https://github.com/sw30labs/n8n-to-langraph.git primary_language: Python framework: LangGraph + LangChain ingested: 2026-04-11 last_commit_date: 2026-04-11 category: agentic-frameworks stacks: [langgraph, converter]

N8n2LangGraph Converter

Purpose

CLI tool that converts n8n workflow JSON exports into standalone LangGraph + LangChain Python scripts using OpenAI Responses API. Normalizes n8n graph → translates nodes via pluggable translators → generates StateGraph code.

Architecture

  • Single script: n8n_to_langgraph.py
  • Pluggable node translators for Set, IF, HTTP Request, Code, OpenAI/LLM nodes
  • Optional reflection loop and agentic re-prompting
  • LLM-assist for unsupported nodes
  • Optional black formatting for generated code

Key Features

  • Converts n8n JSON workflow exports to LangGraph StateGraph Python code
  • Pluggable translator architecture for different node types
  • Optional reflection loops for workflow refinement
  • Agentic re-prompting for complex translations
  • LLM-assisted fallback for unsupported node types
  • Optional code formatting with black

Dependencies

  • openai
  • langgraph
  • langchain-core
  • requests (runtime)
  • black (optional)

Key Claims

  • Converts n8n workflow JSON into standalone LangGraph Python scripts, with optional reflection loops and LLM-assisted translation for unsupported nodes.

Open Questions

  • Could N8n2LangGraph be used to convert workflows into DeepAgent Azure CLI custom tools?

Tags

  • python
  • langgraph
  • langchain
  • openai

Clone this wiki locally