---
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 HubSpot and Salesforce alternative with your AI agent

Leads from your forms, triage, deal pipelines and customers on your own companies and contacts, shaped to how you sell. Give the CRM blueprint to Claude Code, Codex or Cursor and it builds your own on SegmentStream.

CRM

blueprint

Leads, deals and customers on your own company records, with the pipeline, stages and rules your team actually uses. It is built to replace HubSpot, Salesforce and similar sales CRMs.

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

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/crm)

prompt for your coding agent

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

What you get

## What your agent builds

Leads from your forms, triage, deal pipelines and customers on your own companies and contacts, shaped to how you sell.

What it is not

- Not a marketing automation suite: no email sequences, scoring models or landing pages in the first version. They are variations or other blueprints.
- Not billing: subscriptions, invoices and renewals of existing customers belong to bookkeeping. The CRM ends when a deal is won.
- Not a two-way sync with another CRM. It can import your history once; after that it is the system of record.

What it does

- Every form submission becomes one lead, exactly once, however often the website retries. The person and their company are found or created for you.
- New leads reach the right owner by your routing rules. The owner gets one email with a link to the lead; a Telegram team chat also hears about each lead once.
- Triage in a few clicks: take a lead, qualify it into a deal, or disqualify it with a reason you can report on later.
- Deal pipelines with your own stages and entry rules. Won and lost are final, each with a date and a reason, so your numbers do not drift.
- Amounts always carry their currency. Pipeline, win rate and revenue reports never add euros to dollars.
- Customers are worked out from won deals, never typed in, so the list is always right.
- Ask the company agent “what is stuck in proposal?” or “log my call with Northwind” from your team chat, with your own permissions.

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.

- Your leads, contacts, companies and deals in the company database, where every change goes through an action, is checked against the person’s role and kept in history.
- An intake API key for your website’s form that can submit leads and read nothing.
- The REST API and MCP tools, so the company agent, Claude or your own agents can work the pipeline with each person’s permissions.
- Replication of deals into the warehouse, so revenue reports and metrics need no export.

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

Alternative to

- Salesforce
- HubSpot
- Microsoft Dynamics 365
- Zoho CRM
- Monday Sales CRM
- Freshsales
- Attio
- Close CRM

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

- [Email marketing](https://segmentstream.com/blueprints/email-marketing)
- [Marketing analytics](https://segmentstream.com/blueprints/marketing-analytics)
- [Company agent](https://segmentstream.com/blueprints/company-agent)
- [E-signature](https://segmentstream.com/blueprints/e-signature)

[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/crm/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/crm/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/crm/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/crm/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/crm/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)

·

[HubSpot alternative](https://segmentstream.com/solutions/hubspot-alternative)

[Your CRM and marketing on records you own, moved off HubSpot for you](https://segmentstream.com/solutions/hubspot-alternative)

·

[Salesforce alternative](https://segmentstream.com/solutions/salesforce-alternative)

[Your pipeline and rules on records you own, moved off Salesforce for you](https://segmentstream.com/solutions/salesforce-alternative)

## 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.
