Skip to Content
Case study · Knowledge assistant

Context from your documents, precision from your database — in one answer.

A Microsoft Copilot Studio assistant that reads each question, decides whether it needs descriptive knowledge or hard data, and loops through both your documents and your database until the answer is complete.

Platform: Microsoft Copilot Studio + reasoning model
The problem

Most assistants only know half the answer.

Single-source assistants force a choice: explain from documents, or look up facts in a database — never both. But real questions mix the two. "Which product suits a family home, and is it in stock?" A document-only bot can't see inventory; a database-only bot can't recommend. The customer gets half an answer.

What we built

One topic, two sources, one complete answer.

A Copilot Studio topic reads each question, decides whether it needs descriptive knowledge or precise data, queries the right source, and appends the result to a single running answer — looping until every part of the question is covered. Off-topic questions fall back to web search, so nothing goes unanswered.

question analyze decide PDF knowledge Excel database compile complete? answer loop until the answer is complete
How it works

A small reasoning engine over two data sources.

01

Capture & analyze

The user's question is stored and passed to a query-analysis prompt that breaks it into atomic steps and decides which source to query first.

02

Route

A condition sends each atomic question to the right place — the generative knowledge source or the structured database — depending on what that step actually needs.

03

Generative source

Descriptions, recommendations, and comparisons come from a PDF attached to the agent as knowledge. If a question falls outside it, web search fills the gap.

04

Database source

Technical specs, pricing, real-time stock, and dimensions come from a structured Excel table queried as a tool — exact figures, every time.

05

Compile & check

Each response is appended to one running answer, then a response-analysis prompt judges whether it's enough to fully answer the original question.

06

Loop or finish

If something's missing, the topic picks the next source and asks again — looping as many rounds as needed until it can deliver one confident, complete answer.

Why the detail matters

The assistant doesn't pick a source once and hope — it reasons step by step, splitting a request into atomic queries and revisiting either source as many times as needed. That's what lets it answer "recommend something that's actually in stock" in a single turn.

The stack

Built entirely on the Microsoft platform.

Microsoft Copilot Studio · topic + orchestration Reasoning model · query & response analysis PDF knowledge · descriptive source Excel · structured database SharePoint · file & table store Web search · off-topic fallback
Documented, not a black box

The whole build lives in flospect.

Every action, variable, prompt, and connection is cataloged — and the documentation is AI-generated from the real flow structure, so it never drifts from what's actually running.

  • Focus & scope, foundation summary
  • Canvas screenshots embedded inline
  • Step-by-step process breakdown
  • KPI, monitoring & document-control sections
  • Owner, version, and last-modified tracking
  • Shareable via a tenant-safe link
Open the library entry →

Want this running in your tenant?

This is the kind of build we ship in a 4-week Flow Build Sprint — architected, tested, and handed over fully documented in flospect.

Book a discovery call
4-Week Flow Build Sprint · fixed project price · one production-ready agent