Skip to content

docs: Langflow Diffbot integration plan - #18

Open
shixish wants to merge 2 commits into
mainfrom
agent/7d64b58c-fecd-4869-98e1-0103582672c5
Open

shixish wants to merge 2 commits into
mainfrom
agent/7d64b58c-fecd-4869-98e1-0103582672c5

Conversation

@shixish

@shixish shixish commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

I added the two plan documents and nothing else. No code, tests, CI, README or SDK files changed, and nothing was posted to Langflow, PyPI or the Langflow Store.

  • docs/plans/langflow-integration.md: the plan, with the required sections 0–8 (plus a section 9 for the first milestone).
  • docs/plans/langflow-research-notes.md: the pages I opened, quotes, SDK facts, where the task's starting notes were wrong, and what I couldn't verify.

Recommendation

  • Where it lives: a Diffbot-owned extension package on PyPI (working name lfx-diffbot, bundle name diffbot), laid out like Langflow's own lfx-exa. Langflow 1.13's "Build your first extension" docs describe this as the normal path for third parties, so shipping needs no core PR.
  • Upstream: a PR to langflow-ai/langflow comes later, is optional, and needs Andrew's explicit go. Its purpose would be a branded icon and a sidebar/docs listing.
  • Ruled out for now: adding Diffbot to the lfx-bundles metapackage (Langflow says providers are moved in by their own script and not to hand-edit it) and the Langflow Store (no evidence it's a provider distribution path).
  • Shape: the 9 read-only n8n v0.1 operations as 9 separate components in one bundle, each usable on the canvas and as an Agent tool. Org, Person and News search build escaped DQL from structured fields.
  • Token: a required secret input bound to a Langflow Global Variable (Credential type), optionally sourced from the environment via DIFFBOT_API_TOKEN. Components never call resolve_token(), which on a shared server would hand one operator's token to every user.
  • SDK: the components reuse DiffbotAsync. The SDK has no Enhance wrapper, so the first milestone is a small SDK PR in this repo adding enhance(), shipped through an RC. If Andrew declines, the integration can call Enhance through the SDK's public request() instead.

Facts that differ from the task's starting notes

  • Upstream PRs must target the active release-X.Y.Z branch, not main.
  • Saved-flow IDs look like ext:<bundle>:<Class>@official, not ext::<name>@official.
  • The bundle-contribution docs still point at an old folder; in the repo, provider code now lives under src/bundles/.
  • The extension manifest has no icon field, so until an upstream PR lands the components use plain built-in (Lucide) icons.
  • lfx-diffbot is unclaimed on PyPI, but every lfx-* package I checked is published by Langflow. Whether Diffbot should use that prefix is an open question for Andrew.

Still unverified: whether async output methods work in Tool Mode on 1.13.5, whether a package outside Langflow can render its own SVG icon, and whether a secret input can default to a global variable in code. The plan assigns these to a local prototype milestone. docs.langflow.org/extensions returns 404, and one third-party example came only from a search snippet; the notes mark both.

PR summary: Adds a plan-only Langflow integration design and its research notes under docs/plans/. It recommends a Diffbot-owned lfx-diffbot extension package exposing the 9 read-only n8n v0.1 operations as separate components that work on the canvas and as Agent tools. It reuses DiffbotAsync, with a small SDK enhance() addition as the first milestone. Any upstream Langflow PR is a later, optional step that needs Andrew's explicit approval. Distribution path, package name, v0.1 scope and the SDK prerequisite are open questions for Andrew.

Sources found by web search and cited in the docs:


Opened by claude-sandbox — agent claude, mode audit, run 7d64b58c-fecd-4869-98e1-0103582672c5.

claude-sandbox bot added 2 commits December 2, 2026 20:13
Automated change by claude-sandbox (agent: claude, mode: audit, run: 7d64b58c-fecd-4869-98e1-0103582672c5).
Automated change by claude-sandbox (agent: claude, mode: audit, run: 120c2b69-702c-402e-8d7d-5c86bc41ef09).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant