{"id":"f1c0c31c-05db-4621-bf49-c25cf568deb0","entityType":"agent","slug":"dify-scarlettmao-legal-research-agent-agentic-rag","name":"Legal Research Agent (Agentic RAG)","canonicalUrl":"https://www.xpersona.co/agent/dify-scarlettmao-legal-research-agent-agentic-rag","canonicalPath":"/agent/dify-scarlettmao-legal-research-agent-agentic-rag","generatedAt":"2026-10-10T07:09:50.619Z","source":"DIFY_MARKETPLACE","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T01:20:56.734Z","emptyReason":null},"description":"This workflow implements an agentic retrieval‑augmented‑generation (RAG) pipeline for legal research. The Agent node inspects the user’s question and selects the most appropriate action: search pre‑built Qdrant collections (e.g. CUAD mini, Iowa housing law, Wyoming housing law) or perform a Google web search. Search results are summarised and cited, and the agent returns a natural‑language answer while following strict instructions (e.g. no legal advice). The pipeline is designed for questions about contract clauses and housing regulations and demonstrates a multi‑tool, context‑aware RAG agent Set up a Qdrant vector store with your legal document collections (e.g., CUAD mini, Iowa and Wyoming housing). Record the collection names. Install and configure the Qdrant Hybrid Search and Qdrant Vector Search plugins with your Qdrant API key and server URL. Install a browser/web search plugin (e.g., Tavily Search) and supply the corresponding API key for fallback searches. Provide an LLM provider (OpenAI or anothe","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. Last updated 10/9/2026.","installCommand":null,"sourceUrl":"https://marketplace.dify.ai/api/v1/templates/79472c38-268e-4e8b-9ac3-a4584260b708","homepage":null,"primaryLinks":[{"label":"View on Dify","url":"https://marketplace.dify.ai/api/v1/templates/79472c38-268e-4e8b-9ac3-a4584260b708","kind":"source"}],"safetyScore":82,"overallRank":88.5,"popularityScore":100,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"This workflow implements an agentic retrieval‑augmented‑generation (RAG) pipeline for legal research. The Agent node inspects the user’s question and selects th"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T01:20:56.734Z","emptyReason":null},"protocols":[],"capabilities":[{"label":"workflow","status":"self-declared"},{"label":"support","status":"self-declared"},{"label":"sales","status":"self-declared"},{"label":"knowledge","status":"self-declared"},{"label":"openai","status":"self-declared"}],"verifiedCount":0,"selfDeclaredCount":5,"capabilityMatrix":{"rows":[{"key":"workflow","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"},{"key":"support","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"},{"key":"sales","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"},{"key":"knowledge","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"},{"key":"openai","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"}],"flattenedTokens":"capability:workflow|supported|profile capability:support|supported|profile capability:sales|supported|profile capability:knowledge|supported|profile capability:openai|supported|profile"}},"adoption":{"evidence":{"source":"no-adoption-signals","verified":false,"confidence":"low","updatedAt":"2026-10-09T01:20:56.734Z","emptyReason":"No source adoption metrics were available."},"stars":null,"forks":null,"downloads":null,"packageName":null,"latestVersion":null,"tractionLabel":null},"release":{"evidence":{"source":"agent-index","verified":false,"confidence":"medium","updatedAt":"2026-10-09T01:20:56.734Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T01:20:56.734Z","lastCrawledAt":"2026-10-09T01:20:56.734Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T01:20:56.734Z","lastVerifiedAt":null,"highlights":[]},"execution":{"evidence":{"source":"Dify","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":null,"setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":[]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"DIFY_MARKETPLACE","generatedAt":"2026-10-10T07:09:50.619Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/dify-scarlettmao-legal-research-agent-agentic-rag/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"Dify","verified":false,"confidence":"high","updatedAt":"2026-10-09T01:20:56.734Z","emptyReason":null},"readme":"Set up a Qdrant vector store with your legal document collections (e.g., CUAD mini, Iowa and Wyoming housing). Record the collection names.\r\n \r\n Install and configure the Qdrant Hybrid Search and Qdrant Vector Search plugins with your Qdrant API key and server URL.\r\n \r\n Install a browser/web search plugin (e.g., Tavily Search) and supply the corresponding API key for fallback searches.\r\n \r\n Provide an LLM provider (OpenAI or another) for the agent’s reasoning, summarisation and final answer.\r\n \r\n Review the agent instructions to ensure they reference your collections and abide by any legal compliance rules.","readmeExcerpt":"Set up a Qdrant vector store with your legal document collections (e.g., CUAD mini, Iowa and Wyoming housing). Record the collection names. Install and configure the Qdrant Hybrid Search and Qdrant Vector Search plugins with your Qdrant API key and server URL. Install a browser/web search plugin (e.g., Tavily Search) and supply the corresponding API key for fallback searches. Provide an LLM provider (OpenAI or anothe","codeSnippets":[],"executableExamples":[],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[],"languages":["en"],"docsSourceLabel":"Dify","editorialOverview":"This workflow implements an agentic retrieval‑augmented‑generation (RAG) pipeline for legal research. The Agent node inspects the user’s question and selects the most appropriate action: search pre‑built Qdrant collections (e.g. CUAD mini, Iowa housing law, Wyoming housing law) or perform a Google web search. Search results are summarised and cited, and the agent returns a natural‑language answer while following strict instructions (e.g. no legal advice). The pipeline is designed for questions about contract clauses and housing regulations and demonstrates a multi‑tool, context‑aware RAG agent Set up a Qdrant vector store with your legal document collections (e.g., CUAD mini, Iowa and Wyoming housing). Record the collection names. Install and configure the Qdrant Hybrid Search and Qdrant Vector Search plugins with your Qdrant API key and server URL. Install a browser/web search plugin (e.g., Tavily Search) and supply the corresponding API key for fallback searches. Provide an LLM provider (OpenAI or anothe","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":487,"uniquenessScore":61,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T01:20:56.734Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T01:20:56.734Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"agent-directory","verified":false,"confidence":"low","updatedAt":"2026-10-10T07:09:50.619Z","emptyReason":"No close protocol neighbors were found."},"items":[],"links":{"hub":"/agent","source":"/agent/source/dify_marketplace","protocols":[]}}}