Skip to content

Integrate LangChain and Langflow#96

Merged
GYFX35 merged 1 commit intomainfrom
integrate-langchain-langflow-9771374675862768798
Apr 13, 2026
Merged

Integrate LangChain and Langflow#96
GYFX35 merged 1 commit intomainfrom
integrate-langchain-langflow-9771374675862768798

Conversation

@GYFX35
Copy link
Copy Markdown
Owner

@GYFX35 GYFX35 commented Apr 13, 2026

This PR enhances the platform's AI orchestration by migrating the backend AI logic to LangChain (LCEL) and introducing Langflow for visual workflow management.

Key changes include:

  1. LangChain Migration: All AI roles in google_ai.py now use LangChain's ChatVertexAI and ChatPromptTemplate, improving prompt management and extensibility.
  2. Langflow Integration: Added a new langflow_flows/ directory for JSON-based AI workflows and a backend endpoint to execute them.
  3. Generic AI Service: Created a flexible endpoint that allows the frontend to trigger AI roles with custom system instructions.
  4. UI Enhancements: The marketplace now features a "Langflow Executor" service and visible branding for LangChain/Langflow integration.
  5. Code Quality: Refactored frontend API calls to maintain consistency with the existing architecture.

PR created automatically by Jules for task 9771374675862768798 started by @GYFX35

- Refactored google_ai.py to use LangChain ChatVertexAI and PromptTemplates.
- Added Langflow integration with sample flow and execution endpoint.
- Implemented a generic AI assistance endpoint for flexible role creation.
- Updated marketplace frontend with Langflow Executor and powered-by badges.
- Standardized API calls in the frontend using aiService.
- Updated requirements.txt with new dependencies.
- Updated project documentation and build artifacts.

Co-authored-by: GYFX35 <134739293+GYFX35@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 13, 2026

Deploying ai-services with  Cloudflare Pages  Cloudflare Pages

Latest commit: a9f16df
Status: ✅  Deploy successful!
Preview URL: https://eeb87ad3.ai-services-36y.pages.dev
Branch Preview URL: https://integrate-langchain-langflow.ai-services-36y.pages.dev

View logs

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @GYFX35, your pull request is larger than the review limit of 150000 diff characters

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 13, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
aiservices a9f16df Apr 13 2026, 05:05 PM

@guardrails
Copy link
Copy Markdown

guardrails Bot commented Apr 13, 2026

⚠️ We detected 3 security issues in this pull request:

Vulnerable Libraries (3)
Severity Details
Medium pkg:pypi/flask@0.0.0 (t) upgrade to: 3.1.3
Medium pkg:pypi/langchain@0.0.0 upgrade to: 0.2.5
High pkg:pypi/langflow@0.0.0 upgrade to: 1.5.1,0.5.1

More info on how to fix Vulnerable Libraries in Python.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

@GYFX35 GYFX35 merged commit 60434fc into main Apr 13, 2026
4 of 7 checks passed
@GYFX35 GYFX35 deleted the integrate-langchain-langflow-9771374675862768798 branch April 13, 2026 17:06
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