---
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/"
---

# Audiences, campaigns and reporting on the same records as sales.

Marketing on records you own: one view of each customer, segments, campaigns and journeys through your own email provider, consent checked on every send, and attribution in your own warehouse.

Marketing and brand teams

Contacts, segments, campaigns and journeys on the same records as sales and support, sent through your own email provider with consent checked on every send. Ad cost and conversions sit in your warehouse, so every channel is judged on revenue.

[Start a pilot](https://segmentstream.com/solutions/marketing#pilot) · [Request access](https://segmentstream.com/solutions/marketing#waitlist)

Segments built from your own data, checked on every refresh, and audiences that leave out anyone who may not receive the message.

northwind.segmentstream.app

![A marketing app's segments: eight segments with their definition, size, refresh time and a passed check, the SQL behind one of them, and the email audience it produces with the contacts left out as unsubscribed or bounced](https://segmentstream.com/screens/dark/mock-segments.webp)

Swipe the screen sideways to see all of it.

Marketing and brand teams

## Marketing: what it does

Connect your email provider and ad accounts, then tell your agent who you market to and who approves. It writes the segments, the campaign actions and the pages.

What it does

- Contacts carry their company, deals, orders and consent, on the same records sales and support work.
- Segments are definitions over your own data, refreshed and checked, never a stale export.
- Campaigns and journeys go out through your own email provider, after the role you choose approves them.
- Every send leaves out anyone unsubscribed, bounced or complained, because the send action checks consent.
- Ad cost, sessions and conversions sit in your warehouse, so reports show revenue by channel.
- The company agent drafts campaigns and builds segments for the marketer, within the marketer's role.

## What it covers

- ### One view of each customer

  Every contact with their company, deals, orders, tickets and consent, on the same records sales, support and finance work.

- ### Segments and audiences

  Segments are definitions over your own data, refreshed and checked, so a list is never a stale export.

- ### [Campaigns and journeys →](https://segmentstream.com/solutions/newsletters)

  Newsletters, campaigns and lifecycle journeys sent through your own email provider, with approval before anything goes out.

- ### Consent on every send

  Subscriptions, unsubscribes, bounces and complaints recorded on the contact, and checked on every send.

- ### [Attribution and reporting →](https://segmentstream.com/solutions/growth-analytics)

  Ad cost, sessions and conversions joined in your warehouse, so each channel is judged on revenue, not clicks.

- ### [Work with the agent →](https://segmentstream.com/platform/agent)

  The company agent drafts campaigns, builds segments and reports results, with the permissions of the marketer it works for.

## Built from typed blocks

No new product to buy: the blocks below, written by an agent into your workspace's repository and deployed with one command.

Entitiesontology/

- contact
- segment
- campaign
- journey

Actionsontology/

- segment.define
- campaign.requestApproval
- campaign.approve
- campaign.send
- contact.subscribe
- contact.unsubscribe
- contact.setEmailStatus

Rolesontology/roles.ts

- marketing
- marketing_lead
- growth

Connectionsconnections/

- resend
- linkedin_ads
- google_ads

Pipelinespipeline/

- email_events
- ad_cost

Appapp/

- Contacts
- Segments
- Campaigns
- Journeys

Agentagent/

- The company agent, drafting campaigns and building segments for the marketer

One deploy

$ segmentstream deploy

Every block ships together from one git repository your company owns. SegmentStream runs it.

Inside SegmentStream

## A lead journey, drawn from its code.

Each new lead is graded and routed: a strong fit goes to its owner and HubSpot with a reply the agent drafts, a promising one gets the nurture sequence.

segmentstream.com

![One workflow in the console, drawn as a map from its code: the daily bookkeeping, started each weekday at 09:00 UTC, its steps in order with the records each reads, what happens when a step fails, and its runs below](https://segmentstream.com/screens/dark/console-workflow.webp)

One workflow as a map read from its code: what starts it, each step with what it reads and calls, and what happens when a step fails.

What it replaces

- Mailchimp
- Customer.io
- HubSpot Marketing Hub
- spreadsheet audience lists

How to start

Our engineers move your contacts, lists and consent records in, connect your email provider and ad accounts, and build the segment, campaign and reporting pages with your team.

Moving from

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

Build it with your agent

## Build your own from the Email marketing blueprint.

The Email marketing blueprint gives Claude Code, Codex or Cursor the design, the questions to ask you, the rules that must always hold and their tests. Paste this prompt and your agent builds your own version on SegmentStream, shaped to how your company works.

[About the ](https://segmentstream.com/blueprints/email-marketing)

[Email marketing](https://segmentstream.com/blueprints/email-marketing)

[ blueprint →](https://segmentstream.com/blueprints/email-marketing) · [View on GitHub](https://github.com/segmentstream/build-your-own/tree/main/blueprints/email-marketing)

prompt for your coding agent

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

Have us build it

### Enterprise, with our engineers

Our engineers move your contacts, lists and consent records in, connect your email provider and ad accounts, and build the segment, campaign and reporting pages with your team.

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

Build it yourself

### Self-serve, with your own agent

Connect your email provider and ad accounts, then tell your agent who you market to and who approves. It writes the segments, the campaign actions and the pages.

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

[Request access](https://segmentstream.com/solutions/marketing#waitlist)

## Related solutions

[Braze alternative](https://segmentstream.com/solutions/braze-alternative)

[Customer data, audiences and journeys you own, sent through the providers you choose](https://segmentstream.com/solutions/braze-alternative)

·

[Newsletters](https://segmentstream.com/solutions/newsletters)

[Campaigns to audiences built from your contacts](https://segmentstream.com/solutions/newsletters)

·

[Growth and marketing analytics](https://segmentstream.com/solutions/growth-analytics)

[Lead scoring, cost data and attribution as code](https://segmentstream.com/solutions/growth-analytics)

·

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

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

## Questions

### Which email provider does it use?

Your own provider, such as Amazon SES, Resend, SendGrid or Postmark, sending from your domain.

### How is consent kept?

On the contact, with the date and source of every change. The send action reads it, so an unsubscribed or bounced address never gets a campaign, whoever sends it.

### Can the agent run campaigns?

Yes. The agent can draft a campaign, build a segment or summarise results. Approval and sending stay with the roles you choose.

Enterprise pilot

## Rather have it built for you? Start a pilot.

Our engineers move your contacts, lists and consent records in, connect your email provider and ad accounts, and build the segment, campaign and reporting pages with your team.

- One solution, on your data, in your own workspace
- First version live in two weeks
- Parity proven before anything is switched off
- Fixed scope and price, credited to your contract if you continue

Not ready for a pilot? Send the form anyway with your question. An engineer will reply, not a sales rep.

[How the pilot works](https://segmentstream.com/enterprise)

NameWork email

CompanyWhat should the pilot cover?

Anything we should knowHow did you hear about us?

Goes to our founder’s inbox. No sales queue, no newsletter.

## 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/solutions/marketing#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.
