---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Build your own Microsoft 365 Copilot alternative with your AI agent

An AI agent in your team’s chats that works on your own records, with the permissions of whoever asks. Give the Company agent blueprint to Claude Code, Codex or Cursor and it builds your own on SegmentStream.

Company agent

blueprint

An AI agent that lives in your team’s Slack, Telegram or WhatsApp and works on your company’s own records, with the permissions of whoever asks. It is built to replace “AI agent for business” products and Copilot-style assistants, and runs on your own records with each person’s permissions.

[Get the prompt](https://segmentstream.com/blueprints/company-agent#prompt) · [View on GitHub](https://github.com/segmentstream/build-your-own/tree/main/blueprints/company-agent)

Give this to your agent

## Paste one prompt. Your agent builds your version.

Paste it into Claude Code, Codex or Cursor. Your agent reads the blueprint, asks how your company works and shows you a one-page plan. Once you approve it, the agent builds your version on SegmentStream, turns every invariant into a test and deploys when you say so.

[Read the blueprint on GitHub](https://github.com/segmentstream/build-your-own/tree/main/blueprints/company-agent)

prompt for your coding agent

```
Read https://github.com/segmentstream/build-your-own/blob/main/AGENTS.md and follow it.
Build our company agent from the company-agent blueprint.
```

What you get

## What your agent builds

An AI agent in your team’s chats that works on your own records, with the permissions of whoever asks.

What it is not

- Not a general chatbot. It has no web browsing, and its file sandbox has no network, which is designed so that what it reads cannot send company data out.
- Not an autopilot. It sends nothing to customers, signs nothing and moves no money unless a person asks and confirms. Unattended routines get a narrow role and mostly propose.
- Not every channel. The platform’s agent channels are Telegram, Slack and WhatsApp; your project’s docs/agent.md lists what your SDK supports.

What it does

- Ask in the chat you already use and get answers from your own records, each with a link to the record it came from.
- Each person connects their chat account once. From then on the agent acts as them: it sees what they may see, does what their roles allow, and history names them.
- It changes records only through your actions. Anything destructive, irreversible or external, such as sending, signing, paying or deleting, waits for the person to press Confirm.
- Send it an invoice, a contract, a scan or a spreadsheet: it reads the file and files it on the right record.
- Every group has a purpose, so the agent knows what each chat is for, where to post, and when to stay quiet.
- Routines run on a schedule: a morning summary of what needs attention, bookkeeping proposals, follow-ups. They report in the right chat and keep a record of every run.
- When a decision belongs to a person, it asks that person and keeps the answer.
- Every blueprint you build becomes a new skill.

What the platform runs for you

## The hard parts are already running.

Your agent writes only the business logic. SegmentStream runs the infrastructure under it, so nobody on your team builds or operates it.

- The agent itself, in Telegram, Slack or WhatsApp, paired with each member’s account.
- A permission check on the server for everything the agent reads or changes, with the asking member’s own roles, and a history entry for every change.
- MCP tools generated from your records and actions, so the agent knows your company’s software without custom integration.
- Logs of what the agent did, for review.

[What the platform runs under every blueprint →](https://segmentstream.com/blueprints#platform)

Alternative to

- Microsoft 365 Copilot
- ChatGPT Enterprise
- Gemini for Google Workspace
- Slack AI
- Glean
- Lindy
- Dust
- Zapier Agents

Product names are trademarks of their owners, named only to describe what the blueprint can be compared with.

How it fits

Builds on

- [Foundation](https://github.com/segmentstream/build-your-own/blob/main/foundation/FOUNDATION.md)

Works with

- [CRM](https://segmentstream.com/blueprints/crm)
- [Bookkeeping](https://segmentstream.com/blueprints/bookkeeping)
- [Drive](https://segmentstream.com/blueprints/drive)
- [E-signature](https://segmentstream.com/blueprints/e-signature)
- [Email marketing](https://segmentstream.com/blueprints/email-marketing)
- [Marketing analytics](https://segmentstream.com/blueprints/marketing-analytics)
- [Ad fraud and bot detection](https://segmentstream.com/blueprints/ad-fraud-detection)

[All blueprints →](https://segmentstream.com/blueprints)

## What’s in the blueprint

Five files your agent reads before it builds anything. Each opens on GitHub.

- [BLUEPRINT.md The design Records, actions, roles, workflows, data flow, screens and the build order.](https://github.com/segmentstream/build-your-own/blob/main/blueprints/company-agent/BLUEPRINT.md)
- [INTERVIEW.md The interview What your agent asks about your company, and what each answer changes.](https://github.com/segmentstream/build-your-own/blob/main/blueprints/company-agent/INTERVIEW.md)
- [INVARIANTS.md The invariants Rules that must hold in every version, each one a test in your project.](https://github.com/segmentstream/build-your-own/blob/main/blueprints/company-agent/INVARIANTS.md)
- [VARIATIONS.md The variations Where companies legitimately differ, and the default for each.](https://github.com/segmentstream/build-your-own/blob/main/blueprints/company-agent/VARIATIONS.md)
- [PITFALLS.md The pitfalls Mistakes agents already made in production, so yours does not.](https://github.com/segmentstream/build-your-own/blob/main/blueprints/company-agent/PITFALLS.md)

Blueprints are provided as is; see [the disclaimer](https://github.com/segmentstream/build-your-own/blob/main/DISCLAIMER.md).

## Related solutions

[Sales and CRM](https://segmentstream.com/solutions/crm)

[Leads, deals and clients, shaped to how you sell](https://segmentstream.com/solutions/crm)

·

[Company accounting](https://segmentstream.com/solutions/accounting)

[Ledger, invoices, bills, reconciliation and reports](https://segmentstream.com/solutions/accounting)

·

[Internal tools and dashboards](https://segmentstream.com/solutions/internal-tools)

[Pages and dashboards on your records and data](https://segmentstream.com/solutions/internal-tools)

## Build your company’s own software. Let agents run it.

$ segmentstream workspace create acme --region eu --subdomain acme

▸ Created workspace acme · database, warehouse and a private git repository

$ segmentstream workspace WORKSPACE-ID clone acme && cd acme

▸ your coding agent builds what your team asked for and runs the checks

$ git add -A && git commit -m "First version"

$ segmentstream deploy

▸ app, company agent, API and MCP tools live for your invited members

[Start a pilot](https://segmentstream.com/enterprise#pilot)

Our engineers build the first version on your data in two weeks, at a fixed price.

Or build it yourself with your coding agent:

`curl -fsSL https://segmentstream.com/install.sh | sh`

Work email

We’ll email you product updates, tips and onboarding help. Unsubscribe anytime.
