Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Microsoft does not currently provide the complete architecture as one turnkey, general-purpose Copilot conversation; the closest supported design is to keep governed knowledge and working state in SharePoint, use Microsoft Copilot’s semantic retrieval and memory for ordinary chat, and add a Microsoft Copilot–harness agent with Work IQ when deterministic retrieval or state handling is required.
Recommended architecture
- Make SharePoint the authoritative system of record
- Store Mithrandir, RIA, PWI, Boezelaere, decision records, and project state in governed SharePoint libraries rather than treating chat history or Copilot memory as authoritative.
- Separate current and superseded material through libraries, content types, status metadata, permissions, and lifecycle controls.
- Mark the relevant SharePoint sites as authoritative where that tenant feature is available, so trusted content receives higher priority in Copilot Search.^1^
- Review permissions carefully: Copilot respects existing SharePoint and OneDrive access, including existing oversharing.^2^
- Use ordinary Microsoft Copilot for broad conversations
- Semantic indexing can discover relevant accessible Microsoft 365 material conceptually, not merely by exact filename.
- For work requiring a defined corpus, attach the governing SharePoint site, library, or folder. Copilot then uses that scope and its column metadata to constrain and rank retrieval.^3^
- Folder attachment is therefore a supported scoping mechanism, but it is not equivalent to permanently registering the entire hierarchy as a dependable knowledge base for every future conversation.
- Create one broad agent only where additional control is needed
- In Copilot Studio, create an agent using the Microsoft Copilot harness.
- Under Build → Knowledge, add the controlled SharePoint or OneDrive sources.^4^
- Under Build → Tools → Work IQ, retain SharePoint, OneDrive, Outlook, Teams, Calendar, and other workloads required for the broad environment. Work IQ combines Microsoft 365 data, memory, and inference, although source selection is at whole-workload level rather than individual-site level.^5^
- Publish through Channels → Microsoft Copilot and Microsoft Teams, enable Make agent available in Microsoft Copilot, and obtain administrator approval.^6^
This places the agent inside Microsoft Copilot, but it remains an identifiable agent. It does not silently become the permanent operating layer of every ordinary Copilot conversation.
The four different continuity mechanisms
| Mechanism | What it does | What it does not do |
|---|---|---|
| Document retrieval | Finds relevant current content from SharePoint, OneDrive, Microsoft 365, or connected sources. | Does not remember decisions merely because they appeared in chat. |
| Copilot memory | Retains selected preferences, corrections, ongoing-work facts, and references across conversations. | Is not an authoritative record and does not guarantee every detail will be saved or recalled.^7^ |
| Conversation history | Supplies earlier messages from the current conversation and may contribute dynamic personalization. | Is not a controlled, immutable project-state store. Older inferred details may be updated or discarded.^8^ |
| Working-state continuity | Records decisions, open actions, assumptions, approvals, versions, and next steps in an explicit state store. | Is not provided reliably by conversational memory alone. |
| Reasoning capability | Synthesizes retrieved context, web information, instructions, and current dialogue. | Does not establish truth, authority, or durable state. |
For agent memory specifically, memories are isolated by tenant, environment, agent, and user; they cannot be moved between agents and are deleted after 28 days of inactivity. Microsoft also states that recall is not guaranteed.^9^ That makes agent memory unsuitable as the sole repository for consequential engineering decisions.
Ordinary Copilot personalization has different retention semantics: saved memories remain until the user deletes them, but Purview retention labels do not currently govern those memories, and administrators cannot restrict what categories are saved.^8^ It should therefore hold preferences and useful context—not controlled baselines.
What requires custom development
A dependable working-state layer requires an explicit record such as a SharePoint list, Dataverse table, or governed document containing:
- active project and current phase;
- applicable protocols and baseline versions;
- accepted and rejected decisions with rationale;
- unresolved questions and next actions;
- evidence links;
- approval status and timestamps.
The agent must retrieve this record at the start of work and update it only through a controlled action with validation or human approval. Copilot Studio global variables are insufficient because they persist only for the current session.^10^
For a custom interface, the Microsoft 365 Copilot Chat API supports multi-turn conversations, enterprise search, web grounding, and explicit SharePoint/OneDrive context. It is currently preview, requires a Microsoft 365 Copilot add-on licence, and does not support file creation, email, scheduling, code interpreter, or long-running tasks.^11^ Conversation IDs continue a thread, but durable project state must still be stored separately.
For precise repository control, the Retrieval API can retrieve current text chunks and apply KQL filters for URLs, dates, and file types while preserving permissions.^12^ This can enforce “current baseline only” retrieval more reliably than hoping an unrestricted semantic search distinguishes current from superseded material.
Practical conclusion
Available now:
- broad Microsoft Copilot reasoning with web and work grounding;
- semantic discovery across accessible Microsoft 365 content;
- site, library, and folder-scoped grounding;
- user personalization and memory;
- a broad Copilot Studio agent surfaced inside Microsoft Copilot;
- Work IQ retrieval across Microsoft 365 workloads;
- APIs for custom retrieval and Copilot-powered conversations.
Not currently available as one native, transparent capability:
- guaranteed automatic application of every governing protocol in every ordinary chat;
- deterministic durable working state maintained from conversation alone;
- memory governed like an engineering configuration baseline;
- one memory space shared transparently across ordinary Copilot, Notebooks, and multiple agents;
- automatic hierarchical authority resolution without repository metadata, scoping, or custom orchestration.
The robust design is therefore Copilot as reasoning and orchestration, SharePoint as governed knowledge and state, memory as convenience, and a controlled agent or custom action as the bridge.
References
- Microsoft 365 Copilot release notes
- Data protection and auditing for Microsoft Copilot
- Semantic indexing for Microsoft Copilot
- Add knowledge sources to an agent (Microsoft Copilot)
- Work IQ in Copilot Studio (Microsoft Copilot)
- Understand Agents in Microsoft Copilot
- Memory (Microsoft Copilot) - Microsoft Copilot Studio | Microsoft Learn
- Manage Copilot personalization and memory
- Memory management and privacy (Microsoft Copilot)
- Work with global variables
- Overview of the Microsoft 365 Copilot Chat API (preview)
- Overview of the Microsoft 365 Copilot Retrieval API