Lesson 12.4: How to Reference Files in Prompts

Module 12: OneDrive, SharePoint, Files, and Work Data

Lesson 12.4: How to Reference Files in Prompts

Intermediate Last verified: 2026-06-02
Availability note: OneDrive, SharePoint, file references, supported formats, sensitivity labels, and Copilot grounding vary by account, license, tenant settings, permissions, sharing settings, admin controls, and rollout status.

Lesson Promise

Reference files, folders, people, meetings, emails, and SharePoint context precisely so Copilot answers from the intended sources.

Real-World Scenario

A marketer wants Copilot to write a campaign brief using a brand guide, product FAQ, customer research, and launch timeline.

Core Concept

Context IQ lets users insert references such as Microsoft 365 files, images, people, meetings, chats, and emails, with experiences varying by license.

Microsoft Support notes cloud and local file reference paths, SharePoint site scoping, supported file formats, and limits such as referencing up to ten files or pages within a SharePoint site.

A strong file-reference prompt tells Copilot which sources to use, what task to perform, what not to use, and how to report missing or conflicting information.

Step-By-Step Workflow

  1. Choose the fewest files needed for the task.
  2. Check supported format, access, location, and file complexity.
  3. Insert or attach the files using available Copilot reference tools.
  4. Name the source role for each file.
  5. Ask Copilot to cite or identify which source supports each claim.
  6. Ask it to flag missing, outdated, or conflicting source material.

Prompt Lab

Bad Prompt

Use these files to make a campaign brief.

Better Prompt

Use the brand guide, product FAQ, customer research, and launch timeline to draft a campaign brief. Flag missing or conflicting information.

Expert Prompt

Use only these referenced files: brand guide for voice, product FAQ for approved claims, customer research for audience pains, and launch timeline for dates. Draft a campaign brief with source notes for each section, [VERIFY] markers for unsupported claims, conflicts between sources, and questions for the project owner.

Hands-On Exercise

Create a four-source prompt using safe mock files and define each file's role.

Deliverable

A source-grounded prompt with file roles, unsupported-claim markers, and verification questions.

Work Data Review Checklist

Common Mistakes

  • Assuming Copilot can only find files you personally meant to share instead of files your permissions allow.
  • Leaving old, duplicated, ownerless, or overshared files in project folders and expecting Copilot to ignore them.
  • Using broad SharePoint sites or folders as context when a few specific files would be safer and clearer.
  • Referencing unsupported, local-only, too-large, or overly complex files without converting or simplifying them.
  • Sharing Copilot-ready folders externally without reviewing links, edit permissions, block-download settings, and sensitive content.
Pro tip: Ask for a source-grounding audit: sources used, sources ignored, missing files, conflicting files, unsupported claims, and permission risks.

Quiz / Checkpoint

Why define each file's role in a prompt?

It tells Copilot which source should govern tone, facts, dates, claims, or decisions.

Official Sources To Verify

For AI founders and marketers

Want your AI product explained to a large AI-native audience?

Kingy AI helps AI companies turn complex products into clear, useful YouTube videos that drive awareness, product understanding, demos, clicks, and search visibility.