Build Flows

AI agents & MCP · November 18, 2026 · 9 min read

One System, Not Two Tabs: Plug Your Construction Dashboard into Your AI Assistant

From a discovery call with Cattlemen Construction Services, whose separate AI vendor is building a company 'brain' over SharePoint, Outlook, calendar and texts: how to make the operating dashboard and the assistant one system. Covers embedding in an iframe with SSO, CSP frame-ancestors and short-lived embed tokens; a scoped read-only API key; an MCP server with tools like get_job_billed_to_date and list_uncoded_expenses; row-level security so the model never sees what the user can't; logging every tool call; and a one-page interface contract for working in parallel with another vendor.

By Charley Forey, founder of Build Flows

Key takeaways

  • There are three ways to join a dashboard and an AI assistant: embed it in an iframe for people, a scoped read-only API for systems, and an MCP server for agents. Most teams use two.
  • An iframe embed needs single sign-on, a Content-Security-Policy frame-ancestors header limited to the assistant's origin, and short-lived embed tokens passed with postMessage, never in a URL.
  • An API key belongs to a system, not a person. Use it for digests and scheduled pulls, not for answering one user's questions about any job.
  • MCP tool calls should carry the asking user's identity so the server can check their role and projects on every call.
  • Filter data before it reaches the language model. A prompt telling the model to hide other jobs is not a security boundary.
  • Use one row-level security rule set for the screen, the API and the MCP server, and log every tool call with user, tool, job and time.
  • A one-page interface contract lets two vendors build in parallel against the same tool names, examples and error shapes.

52 seconds · From a Build Flows walkthrough

Procore as the Trojan horse, and one system instead of two

Everyone loads into Procore, which feeds the dashboard and the AI layer. The goal is one system, not two builds that never connect.

Read the clip transcript

really what I want is I want I want your your dashboard your KPIs and all that I want that brain to somehow be together in some form or fashion so that I can kind of click through it and then I want what I'm what I'm anticipating is Procore is kind of my vehicle my trojan horse that everybody loads into and they give you it feeds all of your information your to your dashboard to this AI thing and then from there it's splitting off into SharePoint and dropping in uh repository information into SharePoint like I'm I'm starting to see how this all comes together and how it becomes usable for somebody and then I'm starting to see how this all comes together and how it becomes usable for somebody um I would just want to I would want I'd want to make sure that I'm not having you go and build something and then these guys are building something else and they never marry because it just sure I won't I want it to be one system if possible I completely

Captions adapted from the source video; proper names may reflect automatic transcription. Original segment: 28:33–29:25. Watch at the source.

38 seconds · From a Build Flows walkthrough

Let the AI vendor's agents ask "what's billed to date?"

Expose dashboard data to another team's agents through a secure, read-only API key or an MCP server, so they get answers without direct system access.

Read the clip transcript

the URL and then we can work in parallel too, which is the nice thing. So if anything that they would want to leverage the analysis and analytics for from the like operating system stuff, I can create an API key that then they could use on their agentic system to reference that data if you want. So if they're wanting to have their agents say, Hey, what is our current billed to date? And we could pull it from the report to say, Hey, what is our current billed to date or billed to date for this project? And it would pull that reference data. I can expose those APIs via secure API. If that's something that they want and they want to reference in their agent stuff, or if they want to expose it via MCP or something, I can create

Captions adapted from the source video; proper names may reflect automatic transcription. Original segment: 48:24–49:02. Watch at the source.

On our discovery call with Ryan Blankers, co-founder of Cattlemen Construction Services in Fort Worth, Texas, the main topic was getting Ramp card spend into Procore job costs. Near the end, Ryan described something running in parallel. Cattlemen is onboarding a separate AI vendor to build what he calls the company's "brain": several language models working over SharePoint, Outlook, the calendar and text messages, able to act on what they find.

Build Flows is building the operating system dashboard: Procore, QuickBooks Online and Ramp in one role-based view, with the expense coding portal inside it. Ryan didn't want those to be two products:

"I want it to be one system if possible."

He meant one place to work, not two separate tabs in a browser. This guide covers the three ways to make that happen, the access control risk that comes with all of them, and how two vendors can build in parallel without stepping on each other. The full call is on the video page, and the call walkthrough covers the job cost problem that started it.

One system. An AI assistant workspace with a chat panel on the left and the construction dashboard embedded on the right. Underneath, three connectors link the assistant to the dashboard: an embedded frame, a read-only API and an MCP server. A gate in the middle checks who the user is before any data passes.One workspace for the assistant and the dashboard, with one gate

Three ways to connect them

There are three patterns, and most teams end up using two of them together.

Three integration patterns side by side. Embed: the dashboard appears inside the assistant in an iframe, for people to look at. API: the assistant calls a scoped, read-only endpoint and gets JSON back. MCP: the assistant's agent calls named tools such as get_job_billed_to_date and list_uncoded_expenses, each checked against the user's permissions and logged.Embed for people, API for systems, MCP for agents

PatternWho uses itWhat it's good forMain risk
Embed (iframe)PeopleShowing the scorecard, WIP and coding queue inside the assistant's screenLosing authentication, or letting any site frame the dashboard
Scoped API keyThe vendor's backendScheduled pulls, summaries, feeding their own indexA long-lived key that sees every project
MCP serverThe vendor's agentsLive questions like "what's billed to date on job 24-017?"The agent seeing data the user asking can't

Option A: embed the dashboard in an iframe

The quickest way to get one screen. The assistant's app puts the dashboard in a frame, and the user sees their scorecard next to the chat.

The work is in keeping authentication intact:

  1. Single sign-on. Both apps should trust the same identity provider. For a Microsoft 365 company like Cattlemen, that's Microsoft Entra ID. The user signs in once, and the dashboard knows who they are inside the frame.
  2. Allow only the assistant's domain to frame it. Set the Content-Security-Policy header with frame-ancestors listing the assistant's exact origin. Without it, any website could frame your dashboard and try to trick a signed-in user. Browsers that don't support CSP fall back to X-Frame-Options, which can only allow same-origin or nothing.
  3. Plan for cookie restrictions. Many browsers block or partition cookies set inside a frame from another site. Don't rely on a dashboard session cookie surviving in the frame. A short-lived embed token is more predictable.
  4. Short-lived embed tokens. The assistant's server asks the dashboard's server for a token for this user, valid for minutes, and hands it to the frame. The token carries the user's identity and role, never more.
  5. No secrets in URLs. Tokens in query strings end up in browser history, proxy logs and analytics. Pass the token with postMessage after the frame loads, check the sender's origin, and never pass an API key to the browser at all.

We've written about this pattern in more depth in headless auth and embed tokens, and about locking down what runs inside a frame in the sandboxed app builder article.

An embed gives people one screen. It doesn't let the assistant's language models read the numbers. For that you need option B or C.

Option B: a scoped, read-only API key

The vendor's backend calls a small set of read-only endpoints, for example GET /jobs/{job}/billing-summary or GET /expenses?status=uncoded. This suits scheduled work: a Monday digest, a nightly pull into the vendor's own search index.

Rules that keep it safe:

  • Read-only. Writes to Procore or QuickBooks stay inside the dashboard's own approval flows, such as the expense coding portal.
  • Scoped. The key lists the endpoints and, where possible, the projects it can reach. A key for a company digest doesn't need payroll-adjacent detail.
  • Stored in a vault, rotated on a schedule, and revocable in one step.
  • Named. One key per integration, so the audit log shows which system made each call.

The weakness: a key belongs to a system, not a person. If the vendor's assistant uses one company-wide key to answer a superintendent's question, the superintendent can ask about any job. That's fine for an owners-only digest and wrong for anything user-facing.

Option C: an MCP server for the vendor's agents

The Model Context Protocol (MCP) is a standard way to give AI agents tools. Instead of raw endpoints, the dashboard publishes named tools with clear descriptions. If MCP is new to you, start with what MCP is.

A starter tool set for a GC's operating dashboard:

ToolReturnsNotes
get_job_billed_to_dateContract value, billed to date, earned to date, over/under billingJob number in YY-NNN format
list_uncoded_expensesCard expenses still waiting for a Procore cost codeFiltered to the user's own expenses unless they're an admin
get_job_cost_summaryBudget, cost to date, projected cost at completion by cost codeRead from Procore
get_kpi_scorecardThe week's KPI tiles with status and checkpointsSee the starter KPI set
list_overdue_itemsOverdue RFIs and submittals for a jobRead from Procore

Every tool call carries the identity of the person who asked, not just the vendor's. The MCP specification describes OAuth-based authorization for servers reached over HTTP, which is how the user's identity gets to your server. When the tool list grows, a single gateway tool over a registry keeps it manageable, as described in the MCP gateway pattern.

The real risk: who can see what

Charley raised this on the call as the main risk for the brain: "who has access to view what." Ryan said he was already working on "gates." The question gets harder once an AI assistant can read across SharePoint, Outlook, texts and the dashboard at once, because it can combine things nobody meant to put side by side.

An access control gate. A superintendent asks the assistant about job 24-017 and job 24-021. The request passes through a gate that checks the user's role and project list. Job 24-017 is on their list, so its numbers pass through to the agent. Job 24-021 is not, so it's blocked and the agent never receives it. Every call is written to an audit log with user, tool, job and time.The agent only sees what the user can see

Four rules we hold to:

  1. Don't let the language model see what the user can't. Filter data before it reaches the model. Instructions in a prompt like "don't show other jobs" are not a security boundary. If the rows never arrive, the model can't leak them.
  2. Row-level security by role and project. The same rules as the dashboard: superintendents and PMs see their projects, executives see everything, accounting sees the coding queue. One rule set, enforced in the data layer, used by the screen, the API and the MCP server alike.
  3. Least privilege for the integration itself. Read-only credentials to Procore, QuickBooks and Ramp where the systems allow it, kept in a vault and never shown on screen.
  4. Log every tool call. Who asked, through which assistant, which tool, which job, what came back (or a hash of it), and when. When something looks wrong, the log is how you find out what the agent actually saw.

For more on running agents with controls around them, see governing AI agents in construction.

What a single question looks like

Here's the path for one question, with fake data.

A request sequence. A PM types into the assistant: what's billed to date on job 24-017? The assistant's agent calls get_job_billed_to_date with job 24-017 and the PM's token. The dashboard's MCP server checks the token and confirms the PM is assigned to 24-017. It reads billed to date from QuickBooks Online and cost and budget from Procore, writes an audit entry, and returns the figures. The agent answers: billed $412,000 of $1.2 million, about 4 percent over-billed against earned, source QuickBooks and Procore as of Friday's cutoff.One question, end to end, with the identity check in the middle

  1. A PM asks the assistant, "What's billed to date on job 24-017?"
  2. The assistant's agent picks get_job_billed_to_date and calls it with the job number and the PM's token.
  3. The MCP server validates the token and checks that the PM is assigned to 24-017.
  4. It reads billed to date from QuickBooks Online and cost and budget from Procore, from the same weekly snapshot the dashboard uses.
  5. It writes an audit entry and returns the numbers with their source and as-of date.
  6. The agent answers in plain English and cites where the figures came from.

If the PM had asked about a job they aren't on, step 3 returns "not authorized" and the agent says so. It doesn't guess.

Working in parallel with another vendor

Two teams building toward one system need a short written agreement on the seam between them. It doesn't have to be long. One page usually covers it:

ItemWhat to agree
IdentityWhich identity provider, and how a user's email maps to their role and projects
EmbedAllowed origin for frame-ancestors, how embed tokens are issued and how long they last
Tools and endpointsNames, inputs, outputs and example responses for each tool or endpoint
Data freshnessWeekly snapshot or live, and the as-of date on every response
ErrorsStandard shapes for not authorized, not found and system unavailable
LimitsRate limits and maximum page sizes
AuditWhich fields each side logs, and how long logs are kept
ChangesVersion numbers on tools and a notice period before breaking changes
ContactsOne technical owner on each side

With that in place, both vendors can build at the same time. The dashboard team can ship tools against the contract with fake data, and the assistant team can build against the same examples before the real credentials arrive. If you're exposing a development server to test this, our guide to tunnels and tokens covers doing it without leaking access.

Where to start

For Cattlemen, the order is:

  1. Ship the expense coding portal and dashboard behind single sign-on.
  2. Turn on the embed for the assistant's domain.
  3. Agree the interface contract with the AI vendor.
  4. Publish two or three read-only MCP tools, with row-level security and logging from the first call.

Inputs still come first. The answer to "what's billed to date?" is only right if card spend has reached Procore, which is why the coding portal comes before any of this. A clean, numbered SharePoint project folder structure helps the assistant in the same way when it reads documents.

Checklist

  • Single sign-on across the assistant and the dashboard
  • frame-ancestors set to the assistant's exact origin
  • Embed tokens short-lived and never in a URL
  • API keys read-only, scoped, named per integration and stored in a vault
  • MCP tools carry the asking user's identity
  • Row-level security by role and project, one rule set for screen, API and MCP
  • Every tool call logged with user, tool, job and time
  • One-page interface contract agreed with the other vendor

Building toward one system?

Build Flows builds operating dashboards for contractors and the integrations that let other tools, including AI assistants, use them safely. If you're bringing in an AI vendor and want the dashboard side to fit, email charley@buildflows.ai or tell us what you're building.

Frequently asked questions

Can I embed a Procore or QuickBooks dashboard inside an AI assistant?

Yes, if the dashboard is your own app built on that data. Embed it in an iframe, use single sign-on so the user is recognized inside the frame, set Content-Security-Policy frame-ancestors to the assistant's exact origin, and hand the frame a short-lived embed token rather than a long-lived key.

Should an AI assistant use an API key or an MCP server to read dashboard data?

Use a scoped, read-only API key for system jobs like a weekly digest. Use an MCP server when agents answer individual users' questions, because each tool call can carry that user's identity and be checked against their role and projects.

How do I stop an AI agent from seeing data the user isn't allowed to see?

Enforce row-level security by role and project in the data layer, before anything reaches the model. Pass the user's identity with every tool call, return not authorized for jobs they aren't on, and log every call. Prompt instructions alone are not a control.

Why shouldn't embed tokens go in the iframe URL?

URLs end up in browser history, server and proxy logs and analytics tools. Load the frame without the token, then pass a short-lived token with postMessage and check the sender's origin.

What MCP tools would a contractor's operating dashboard expose?

A starter set: get_job_billed_to_date, list_uncoded_expenses, get_job_cost_summary, get_kpi_scorecard and list_overdue_items. Keep them read-only, with clear descriptions, and return the source system and as-of date with every answer.

How do two vendors build an AI assistant and a dashboard in parallel?

Agree a one-page interface contract: identity provider and role mapping, allowed embed origin and token lifetime, tool and endpoint names with example responses, data freshness, error shapes, rate limits, audit fields, versioning and a technical contact on each side.

Next step

Have a workflow in mind?

Start with a readiness review: the task, the data and tools it needs, the access boundaries, and how a pilot would be evaluated.

Prefer email? charley@buildflows.ai

Keep learning