Build LangGraph Workflow for Risk Analysis

implementationChallengeNovember 24, 2025

Prompt Content

Design a LangGraph workflow that takes a security query (e.g., 'Find all dormant admin accounts') as input. The workflow should use LlamaIndex for RAG against the knowledge graph, feed retrieved context to Gemini 2.5 Pro for analysis, and then iteratively refine the query or explore related graph nodes until a definitive answer or risk assessment is formed. Implement an adaptive thinking budget.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations