langgraph-starbucks-agent — Gemini Agents | Neura Market
    Neura MarketNeura Market/Gemini
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityGemsExtensionsTrendingGenerate
    GeminiAgentslanggraph-starbucks-agent
    Back to Agents
    langgraph-starbucks-agent

    langgraph-starbucks-agent

    DjibrilM September 23, 2025
    12 copies 0 downloads

    Conversational AI Agent for Starbucks Orders

    Agent Definition
    # Conversational AI Agent for Starbucks Orders
    
    This project implements a **NestJS-based conversational AI agent** that allows users to order drinks from Starbucks.  
    The AI agent is powered by **LangChain's LangGraph** framework, connected to a **MongoDB** database, and enhanced with Google's **Generative AI** model.
    
    ---
    
    ## 🚀 Features
    
    - 🧩 **Conversational AI** for Starbucks drink ordering  
    - 📦 **LangGraph state machine** for managing conversation flows  
    - 🛠️ **Tool integration** for creating and managing orders  
    - 🗄️ **MongoDB persistence** with checkpointers  
    - ✅ **Schema validation** using Zod  
    - 🔄 **Order confirmation and progress tracking**  
    - 😀 Friendly and engaging responses with emojis  
    
    ---
    
    ## 📂 Project Structure
    
    - **ChatService** – Main NestJS injectable service handling conversations  
    - **LangGraph** – Orchestrates state machine for conversation management  
    - **MongoDBSaver** – Saves and restores conversation state  
    - **Tools** – Custom tool to create an order in MongoDB  
    - **Schemas** – Zod-based schemas for orders and drinks  
    
    ---
    
    ## 🛠️ How It Works
    
    1. User sends a **query** (e.g., "I want a latte with almond milk").  
    2. AI agent checks for missing details and asks follow-up questions.  
    3. Once the order is complete, AI asks for **confirmation**.  
    4. If confirmed, AI calls the `create_order` tool to save it in MongoDB.  
    5. Response always includes structured JSON:  
    
    ```json
    {
      "message": "Do you want it with some sugar?",
      "current_order": { ... },
      "suggestions": [ "Yes", "No" ],
      "progress": "in_progress | completed"
    }
    ```
    
    ---
    
    ## ⚙️ Setup
    
    ### 1. Clone Repository
    ```bash
    git clone https://github.com/yourusername/starbucks-ai-agent.git
    cd starbucks-ai-agent
    ```
    
    ### 2. Install Dependencies
    ```bash
    yarn install
    ```
    
    ### 3. Configure Environment
    Create a `.env` file:
    
    ```env
    GOOGLE_API_KEY=your_google_api_key
    MONGO_URI=mongodb+srv://admin:[email protected]/?retryWrites=true&w=majority
    ```
    
    ### 4. Run the

    Tags

    aigeminilangchainlanggraph

    Comments

    More Agents

    View all
    research

    NotebookLM

    Google's AI-powered research notebook that ingests your documents and becomes an expert on your content. Generates audio overviews, study guides, FAQs, and interactive discussions from uploaded sources.

    G
    Google
    browser

    Project Mariner (Browser Agent)

    Google DeepMind's experimental AI agent that can navigate websites, fill forms, and complete multi-step browser tasks autonomously. Uses Gemini's multimodal understanding to interact with web interfaces.

    G
    Google DeepMind
    multimodal

    Project Astra (Multimodal Agent)

    Google DeepMind's universal AI assistant prototype that can see, hear, and respond in real-time through your device camera and microphone. Demonstrates the future of multimodal AI interaction.

    G
    Google DeepMind
    enterprise

    Gemini Enterprise Agent Platform

    Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.

    G
    Google Cloud
    research

    Gemini Deep Research Agent

    Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.

    G
    Google
    canvas

    Gemini Canvas Agent

    Interactive coding and content creation agent that generates, previews, and iterates on code, documents, and interactive applications in a side panel. Supports HTML/CSS/JS, Python, and more.

    G
    Google

    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.