Microsoft Copilot connects to Bill.com through an agent you build in Copilot Studio: add DeepLedger's MCP server as the agent's tool, and the agent can read and draft in Bill.com for every entity a user can access, switching entities when asked. Publish it to Microsoft 365 Copilot and Teams and your AP team can ask about bills where they already work. DeepLedger never pays, approves or sends anything in Bill.com.
What you are connecting
https://mcp.deepledger.ai/mcp
That one address serves QuickBooks Online, Xero (beta), Bill.com, and Stripe for reporting. Bill.com is an optional app on a DeepLedger company, next to its QuickBooks Online or Xero books. An owner or admin connects it on the company's Connections tab with your own BILL credentials.
| Product | Bill.com route |
|---|---|
| Copilot Studio | Add DeepLedger as an MCP tool on an agent |
| Microsoft 365 Copilot and Teams | Use the published agent |
| GitHub Copilot in VS Code | Add DeepLedger as a remote MCP server |
For more on Copilot Studio authentication and Teams publishing, see Connect Microsoft Copilot to QuickBooks Online.
Why one sign-in for all your entities
Approvers and AP staff in a multi-entity group sit in Teams all day, and the question they ask most is some form of "what is waiting on me, and for which entity?" A Teams agent for a group needs every entity, and each person's own access.
DeepLedger gives the agent that shape:
- One agent, every entity. Each DeepLedger company carries its own Bill.com organization; the agent switches between them by name.
- Each user's own access. With end-user credentials, the agent calls DeepLedger as the person asking, so a staff accountant sees only their assigned entities.
- Independent switching. One person's switch does not move a colleague.
- Bill.com next to the books. The agent can compare Bill.com with the same company's QuickBooks Online or Xero.
Before you start
- A DeepLedger account with each entity connected to QuickBooks Online or Xero, and Bill.com connected on its Connections tab.
- A Copilot Studio environment where you can create agents.
- Pricing: $20 per connection per month for QuickBooks Online, Xero (beta) and Bill.com, and $10 for Stripe, with unlimited users and a 14-day free trial with no credit card. See pricing.
- A DeepLedger API key for testing: Settings → API keys → Create key, All my companies. Each user will add their own key later.
How do I connect Copilot Studio to Bill.com?
Steps follow Microsoft's guide to adding an existing MCP server.
- Open the agent in Copilot Studio.
- Go to Tools → Add a tool → New tool → Model Context Protocol.
- Name it and describe it, for example "Bill.com payables and receivables plus QuickBooks and Xero books for our entities, through DeepLedger. Never pays or approves."
- Server URL:
https://mcp.deepledger.ai/mcp. - Authentication: API key, then Header, header name
Authorization. - Select Create and create a connection with the value
Bearerfollowed by your DeepLedger key. - Add the tool to the agent.
- Under Credentials to use, choose End user credentials before sharing.
Test it:
Which company am I in, and which of my companies have Bill.com connected?
Switch companies by asking
List my companies with Bill.com.
Switch to Harborview Hotels LLC and show Bill.com bills awaiting approval.
Now do the same for Harborview Hotels Management Inc.
The companies tool runs current, list and switch (by name or id). In the agent's instructions, ask it to name the active company at the top of every answer. Use the exact company name. If a name matches more than one company, or none, DeepLedger refuses the switch; ask the AI to list your companies and switch by the company id.
Publish to Teams and Microsoft 365 Copilot
- Publish the agent.
- Under Channels, add Teams and Microsoft 365 Copilot.
- Install it yourself and repeat the company check.
- Share it with the AP team only.
Signing in to the agent in Teams is Microsoft's side; see Microsoft's Teams SSO guide, which notes it works in one-to-one chats with the agent. The DeepLedger connection is separate: with end-user credentials, each person enters their own DeepLedger key the first time.
Multi-entity prompts to try
What is waiting on approval
For each company with Bill.com, list bills awaiting approval with vendor, amount and due date, oldest first.
Due before the payment run
Show approved, unpaid Bill.com bills due by Thursday in each entity, totalled by currency. Do not change anything.
Vendor question from a colleague
Switch to Harborview Hotels LLC. What do we owe Coastal Linen in Bill.com, which bills make it up, and when are they due?
Receivables by entity
List Bill.com invoices more than 30 days overdue in each company, largest first.
Bill.com against the ledger
In Harborview Hotels Management Inc, compare unpaid Bill.com bills with open bills in QuickBooks and list differences by vendor.
Prepare a draft for an approver
Switch to Harborview Hotels LLC. Create a draft Bill.com bill from the attached invoice and tell me it is ready for approval in BILL. Do not approve it.
Is it safe to give a Copilot agent Bill.com access?
- No money moves. DeepLedger never pays, approves or sends anything in Bill.com, records payments or changes approval workflows.
- End user credentials only for shared agents. Maker-provided credentials would let every user act with the maker's access.
- Duplicates are refused, and DeepLedger refuses a bill for a vendor BILL pays automatically (AutoPay), or when it cannot tell.
- Sensitive fields are removed. DeepLedger removes bank, card and tax ID fields from BILL responses.
- Per-person limits. Read-only members cannot write. Audit history records each call per company.
- Revoke a key under Settings → API keys, or disconnect Bill.com on the company's Connections tab, which deletes the saved credentials.
Use GitHub Copilot in VS Code instead
{
"servers": {
"deepledger": {
"type": "http",
"url": "https://mcp.deepledger.ai/mcp"
}
}
}
Add this to .vscode/mcp.json, start the server and sign in to DeepLedger in the browser. See VS Code's MCP configuration reference.
Troubleshooting
401 or unauthorized. The value must be Bearer plus the full key, with header name Authorization.
No Bill.com tools. None of the user's companies has Bill.com connected, or the tool list is stale. Refresh the tool.
"Switch not allowed." The key was created for One company.
"Bill.com is not connected." An owner or admin connects it on that company's Connections tab.
Frequently asked questions
Can Microsoft Copilot connect to Bill.com?
Yes, through a Copilot Studio agent. Add DeepLedger's MCP server, https://mcp.deepledger.ai/mcp, as the agent's tool with API key authentication, then publish the agent to Microsoft 365 Copilot and Teams. The agent reaches Bill.com for every company the user can access in DeepLedger.
Can the Copilot agent approve or pay Bill.com bills?
No. DeepLedger never pays, approves or sends anything in Bill.com, never records payments and never changes approval workflows. The agent can show what is waiting for approval and prepare drafts; approvers act in BILL.
How does one Teams agent serve people who work on different entities?
Use End user credentials. Each person adds their own DeepLedger API key, so the agent reaches only the companies that person is assigned to, and each person switches entities without affecting colleagues.
Do I need BILL credentials in Copilot Studio?
No. Bill.com is connected once per company in DeepLedger, with your own BILL credentials, by an owner or admin. Copilot Studio only holds each user's DeepLedger API key.
Can GitHub Copilot use Bill.com through DeepLedger?
Yes. In Visual Studio Code, add https://mcp.deepledger.ai/mcp as an HTTP server in mcp.json and sign in to DeepLedger in the browser. The Bill.com tools appear for the companies that have Bill.com connected.
Related guides
- Connect Microsoft Copilot to QuickBooks Online
- Connect Microsoft Copilot to Xero
- Multiple companies, one AI sign-in
- Connect Claude to Bill.com
- AI write access, safely
See every app on AI platforms and integrations and pricing.