DEV Community

Juan Felipe Lujan
Juan Felipe Lujan

Posted on โ€ข Originally published at dev.to

Build LLM apps without coding. Langchain ๐Ÿฆœ๐Ÿ”—

A comprehensive guide on using Langflow and Flowise for building Langchain apps with Google's PALM2 LLM.

This article starts a new series on langchain from the low-code/no-code perspective, where you'll learn how to create LLM apps using visual scripting.
If JavaScript is your territory, that would be Flowise, and for Python enthusiasts, the tool would be Langflow.

Most of the Langchain guides on the internet use OpenAI's GPT3.5 or GTP4, but I will use Google's Palm2 in this series, given that you get 300 USD when you sign up for Google Cloud for the first time.
I signed up in Canada and got 500+ CAD of credits; much more than the 5 USD you get for free with OpenAI.

You will need a service account with access to VertexAI; this is the identity under which Langchain will communicate with Google Cloud. Quick note: Using your primary Google Account for Langchain is a bad idea, as that account has god-level permissions on your Google Cloud project. Use a service account with limited permissions instead.

Enabling the Vertex AI API

  1. Go to the Google Cloud console.
  2. Click the hamburger menu in the top left corner of the page.
  3. Select APIs & Services > Library.
  4. Search for "Vertex AI."
  5. Click the Vertex AI API.
  6. Click Enable.

Creating a service account in Google Cloud

  1. Click the hamburger menu in the top left corner of the page.
  2. Select IAM & Admin > Service accounts.
  3. Click Create service account.
  4. Enter a name for the service account. Click Create and Continue.
  5. Grant the service account the Vertex AI User role.
  6. (Optional) Enter a description for the service account.
  7. Click Done.

Now, you'll see the list of service accounts available in your project for downloading the JSON Key of your newly created service account.

Downloading the JSON key

  1. Click the email address of the new service account.
  2. Click the Keystab.
  3. Click the Add key drop-down menu.
  4. Select Create new key.
  5. Select JSONas the key type.
  6. Click Create.
  7. Download your key and store it securely.

Note: Anyone with this JSON file might use your service account on your behalf; do NOT share it online.

Next Steps

Create your first LLM app with Flowise(JS-based)

[WIP]Create your first LLM app with Flowise LangFlow(Python-based)

Quadratic AI

Quadratic AI โ€“ The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo ๐Ÿ“Šโœจ

Top comments (0)

PulumiUP 2025 image

PulumiUP 2025: Cloud Innovation Starts Here

Get inspired by experts at PulumiUP. Discover the latest in platform engineering, IaC, and DevOps. Keynote, demos, panel, and Q&A with Pulumi engineers.

Register Now

๐Ÿ‘‹ Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someoneโ€™s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay