postgres-chatbot — Gemini AI Agent
    Neura MarketNeura Market/Gemini
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityGemsExtensionsTrending
    GeminiAgentspostgres-chatbot
    Back to Agents
    postgres-chatbot

    postgres-chatbot

    BlueBash May 21, 2024
    22 copies 0 downloads

    This Streamlit application allows users to interact with their PostgreSQL database using natural language queries. Users can type questions in natural language, which the app translates into SQL queries executed against the database. The results are then displayed in the chat interface. Powered by Google Generative AI and LangChain's SQL agent tool

    README.md

    Project Title: Postgres Chatbot with Streamlit

    Introduction

    This project aims to develop a chatbot that can interact with a PostgreSQL database and answer queries in natural language. The chatbot will be able to handle queries related to an Orders table, which includes columns such as order_id, customer_email, tracking_number, shipping_service, tracking_URL, order_created_at, and order_shipped_at.

    The chatbot will be designed to understand and respond to layman language questions, such as:

    1. "Give me the status of order number 12222."
    2. "What is the order ID of tracking number?"
    3. "How many orders are shipped?"

    A user interface will be created using Streamlit where users can input their PostgreSQL credentials and ask questions.

    Setup Instructions

    Follow these steps to set up the project on your local machine:

    1. Clone the Repository Begin by cloning the repository to your local machine:

    https://github.com/langchain-tech/postgres-chatbot.git
    cd postgres-chatbot
    

    2. Install Dependencies with Poetry It is recommended to use poetry to manage dependencies. Install the necessary packages and create a virtual environment:

    poetry install
    

    3. Activate the virtual environment: after installation the necessary packages activate the virtual env:

    poetry shell
    

    4. Set Up Environment Variables Create a .env file in the root directory of your project and add the required environment variables. For example:

    GOOGLE_API_KEY=your_gemini_api_key
    

    5. Start the Application

    Run the application using Streamlit:

    streamlit run app.py
    

    How to use

    My test image

    Notes

    • Questions will not be limited to one table, so it should be done to ask from database
    • As long as entry is added into database, we should be able to answer questions for that new record

    Tags

    chatbotgeminigemini-apilangchainpostgresqlretrieval-augmented-generationstreamlit

    Comments

    More Agents

    View all
    Agentsmithagentic-ai

    Agentsmith

    Universal, model-agnostic operating harness for AI agents (Claude, Codex, Gemini, …) — a lean core + work-type profiles assembled by one setup script.

    P
    PromptPartner
    308
    Awesome Gamedev Agent Skillsagent-skills

    Awesome Gamedev Agent Skills

    Game-development Agent Skills for AI coding agents: install once and a master router loads the right skill for your engine and task. 66 original, version-pinned skills (plus a master router) in the portable SKILL.md format that runs across Claude Code, Cursor, Codex, Copilot, Gemini CLI and more, for Godot, Unity, Unreal, web and beyond.

    G
    gamedev-skills
    303
    Agentpetai-agents

    Agentpet

    A desktop pet for macOS & Windows that monitors your AI coding agents (Claude Code, Codex, Cursor, Gemini...) in real time, and grows as you code, feed it tokens, level it up, climb the leaderboard.

    N
    ntd4996
    279
    UltraGameStudioai-agent

    UltraGameStudio

    UltraGameStudio - AI coding agent for game development: engine workflows, gameplay code, and asset generation.

    W
    wellingfeng
    260
    Zeroai

    Zero

    The coding agent that answers to you, your model, your machine, your rules.

    G
    Gitlawb
    1,099
    Lucarneagent-bridge

    Lucarne

    Stop babysitting local AI agents. Just notifications, approve, and resume your Codex,Pi,Grok, or Claude code sessions anywhere. 0-Intrusion mobile control bridge via Telegram/微信/飞书. No hooks, no skills, no MCP.

    T
    tuchg
    314

    Stay up to date

    Get the latest Gemini prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Gemini and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Gemini resource

    • Process Multiple Media Files in Telegram with Gemini AI & PostgreSQL Databasen8n · $24.99 · Related topic
    • Email Assistant: Convert Natural Language to SQL Queries with Phi4-mini and PostgreSQLn8n · $14.99 · Related topic
    • Query PostgreSQL Database with Natural Language using GPT-4-minin8n · $9.99 · Related topic
    • Automate PostgreSQL Queries with Natural Language via GPT-3 Chatbotn8n · $9.99 · Related topic
    Browse all workflows