Build an HR Onboarding Agent in SharePoint Online — Step-by-Step, No Code Required


Why an HR Onboarding Agent?

Every organisation has the same onboarding problem. New hires arrive on day one with dozens of questions — How do I submit a leave request? What is the dress code? Where do I find the IT setup guide? — and they either spend hours searching through SharePoint or bombard HR with the same queries week after week.

A Copilot agent grounded in your HR document library changes this entirely. Every new employee gets instant, accurate, policy-based answers — without waiting for HR to respond. HR gets fewer repetitive tickets. New hires ramp up faster. Everyone wins.

In this guide, we will build an agent called “AskHR” — a conversational assistant grounded in an HR Onboarding document library in SharePoint Online. By the end, you will have a working agent accessible from SharePoint and Microsoft Teams.

Approach: This guide uses Option creating an agent directly from a SharePoint document library. No Copilot Studio required. You need only Edit permissions and a Microsoft 365 Copilot licence (or pay-as-you-go billing).


Before You Begin

  • Microsoft 365 Copilot licence — or pay-as-you-go billing enabled for your tenant
  • Edit permissions (Site Member or Site Owner) on the target SharePoint site
  • A SharePoint document library with HR onboarding documents (Word, PDF, PowerPoint supported)
  • Documents should be well-named and current

Follow along with sample documents

Download sample HR onboarding documents to build the AskHR agent alongside this guide: Employee Onboarding Policy, New Hire Onboarding SOP, New Employee User Guide, and IT Setup Guide.

Download Sample HR Documents


1

Prepare Your HR Onboarding Document Library

Navigate to your SharePoint site and open the document library containing your HR policies. For this walkthrough, I created a library called HR Onboarding with four documents.

Tip: Name files descriptively — “Employee_Onboarding_Policy.docx” performs far better than “Policy_v3_final.docx”. Remove outdated versions before connecting the agent.

HR Onboarding document library with four policy documents

Figure 1: The HR Onboarding document library with four onboarding documents uploaded. The .agent file at the bottom appears after creating the agent in Step 2.


2

Create the Agent from the Document Library

  1. Click AI actions in the command bar.
  2. Select Create an agent from the dropdown.
  3. The agent is grounded in the entire library. Select Edit to configure it.

Alternative: Select specific files first, then right-click and choose Create an agent to scope it to only those documents.

AI actions dropdown with Create an agent highlighted in red

Figure 2: Click AI actions in the command bar, then select Create an agent. The red highlight shows the menu path.


3

Configure the Agent — Overview Tab

The Edit dialog has three tabs: Overview, Sources, and Behavior. On the Overview tab, set the agent’s identity:

  • Name: AskHR
  • Purpose: “Your guide to everything you need to know during your first 90 days”
  • Icon: Optionally change to make it recognisable
Overview tab with AskHR name, purpose, and Agent preview panel

Figure 3: The Overview tab — set the agent name to AskHR and provide a clear purpose. The Agent preview panel on the right shows a live preview with default starter prompts.


4

Review Knowledge Sources — Sources Tab

The Sources tab shows the HR Onboarding library is already pre-selected. The toggle to prioritize knowledge sources over general knowledge is enabled by default. You can add up to 20 sources — additional sites, libraries, folders, or files.

Security: The agent respects SharePoint permissions. Users only see answers from content they already have access to.

Sources tab showing HR Onboarding library selected with prioritize toggle enabled

Figure 4: The Sources tab — HR Onboarding library is automatically selected under the SharePoint site. The agent file location is shown at the bottom right. Add more sources by searching or entering a URL.


5

Configure Agent Behavior — Behavior Tab

The Behavior tab has the biggest impact on response quality. Configure three fields:

Welcome Message

Welcome to AskHR! I can help you with onboarding questions, company policies, leave entitlements, IT setup, and more.

Starter Prompts

  • “Summarize Key Policy”
  • “Tell me more about HR Policy…”
  • “Tell me more about HR SOP…”

Agent Instructions

You are AskHR, an onboarding assistant for new employees. Help new hires find accurate information about company policies, onboarding procedures, IT setup, and workplace guidelines. Rules: – Always base answers on the connected SharePoint documents. – If the answer is not in the documents, say so and direct users to HR. – Keep answers concise, friendly, and professional. – Reference the document name when citing a policy. – Do not assume information outside the connected documents.

Tip: Explicit fallback rules prevent hallucination and build trust. The more specific your instructions, the better the agent performs.

Download sample agent configuration from the download section.

Download Sample Agent Configuration


6

Save and Test the Agent in SharePoint

Click Save. The agent is now live. Click the Copilot icon in the SharePoint suite bar to open the agent panel — you will see the AskHR welcome message and custom starter prompts.

AskHR agent panel open in SharePoint with custom starter prompts

Figure 5: AskHR is live in SharePoint. The Copilot icon in the suite bar (highlighted in red) opens the agent panel with the custom starter prompts.

Click a starter prompt or type your own question. The agent responds with grounded, cited answers drawn from your HR documents.

AskHR responding with a detailed policy summary citing multiple source documents

Figure 6: AskHR responding to “Tell me more about key HR Policy” — a structured summary covering onboarding phases, probation, code of conduct, and security policies, with numbered citations linking to the source documents.


7

Share, Approve, and Manage the Agent

Click the ellipsis () next to AskHR in the agent panel to access management options.

Agent menu with Share, Edit agent, Set as approved, and Copy link for Teams options

Figure 7: The agent context menu — Copy link for Teams, Share, Edit agent, and Set as approved. The chat history panel shows previous user queries.

Agent menu showing Share this agent in Teams and Copy link for Teams options

Figure 8: The Share this agent in Teams option at the top provides a quick way to deploy AskHR to a Teams channel. Select Set as approved to make the agent visible to all site visitors.


Deploying AskHR to Microsoft Teams

One of the most powerful features is the ability to share agents directly into Teams. Employees can @mention AskHR in a channel without leaving their collaboration workspace.

From the agent menu, click Copy link for Teams, navigate to your Teams channel, paste the link, and post it.

Sharing AskHR agent in a Teams channel via a post

Figure 9: Sharing AskHR into the HR-Onboarding Teams channel. The agent card renders automatically with the name, description, and an Add to this channel button.

AskHR agent card posted in Teams with Add to this channel button

Figure 10: The AskHR agent card in the Teams channel. Click Add to this channel to install the agent for all channel members.

AskHR successfully added to the Teams channel with confirmation

Figure 11: Confirmation — AskHR is added to the channel. The “Added to this channel” status is visible. The channel details panel confirms the agent was installed.

Team members can now @mention AskHR in the channel. The agent responds with the same grounded, cited answers — directly in the Teams conversation.

AskHR responding to a policy question in Microsoft Teams with detailed cited answer

Figure 12: AskHR in Microsoft Teams — responding to “Provide the summary for key HR policy” with a detailed, structured answer covering onboarding phases, probation, code of conduct, and security policies. Citations appear as numbered superscript links to the source documents.


Keeping AskHR Accurate Over Time

  • Keep documents current. Update source documents in SharePoint when policies change. The agent picks up changes automatically.
  • Remove outdated content. Old versions in the library will confuse the agent.
  • Refine instructions. Monitor what employees ask and tweak the Behavior tab accordingly.
  • Version history is your safety net. The .agent file supports SharePoint versioning — restore a previous version if needed.
  • Permissions are always enforced. Changes to document permissions are reflected automatically.

Quick Troubleshooting

Issue

Resolution

“Create an agent” not visible

Verify Copilot licence and Edit permissions. Check if agents are disabled via restricted content discovery.

Agent cannot find existing information

Check file format is supported. Ensure files aren’t checked out. Try rephrasing — the agent uses semantic search.

Responses are generic, not grounded

Add explicit instruction: “Only answer from connected SharePoint documents.”

Duplicate .agent files

Caused by clicking Create an agent multiple times. Delete duplicates, keep the configured one.


What You Have Built

In under 10 minutes and without a single line of code, you now have a working AI agent that:

  • Answers employee questions with cited sources from your HR documents
  • Respects SharePoint permissions — no risk of exposing restricted content
  • Automatically stays current when source documents change
  • Works across SharePoint, Microsoft 365 Copilot Chat, and Microsoft Teams
  • Supports version history and can be restored if needed

Coming Next

This guide covered the fastest path. But what if you need custom conversation flows, multiple knowledge sources, Power Automate integration, or deployment beyond SharePoint and Teams? That is where Microsoft Copilot Studio comes in.

Upcoming

Building an Agent in Copilot Studio with SharePoint Knowledge

A step-by-step guide with custom topics, multiple knowledge sources, Power Automate integration, and multi-channel deployment. Follow the blog to get notified.

Follow wrvishnu.com for the next post in this series and more practical guides on SharePoint, Microsoft 365 Copilot, and the Power Platform — written from a Solutions Architect perspective.

Leave a Reply

Your email address will not be published. Required fields are marked *