# Concepts

A handful of rules hold everywhere in HeyMySocial: on every screen, in every assistant tool and in every API answer. They are explained here once.

## Organization and workspace

An **organization** is the account that holds the plan: a business or an agency. Limits and usage are counted for the organization as a whole.

A **workspace** is where the data lives: one brand, or one client of an agency. Brand facts, research, content, the calendar, leads, sales and results all belong to exactly one workspace and cannot move to another. A business usually has one workspace; an agency has one per client and sees them side by side on the **Clients** screen.

Each workspace has its own settings: name, website, time zone, content language, currency, goal and attribution window. An API key belongs to one workspace. An assistant acts as a person and can reach every workspace that person can open; it names one with the `workspace` argument, or works in the one the person last used.

An id from another workspace is answered as "not found", never as "forbidden". Nothing confirms that a foreign record exists.

## Roles

A person holds a role in each workspace they belong to. A role is a fixed set of abilities, and an ability that is not granted is refused.

<div class="table-scroll"><table><thead><tr><th>Role</th><th>Name in the app</th><th>Applies to</th><th>What it is for</th></tr></thead><tbody><tr><th scope="row"><code style="white-space:nowrap">owner</code></th><td>Owner</td><td>Organization</td><td>Works in every workspace as a manager, manages the plan and the people, and can transfer ownership. An organization always has exactly one.</td></tr><tr><th scope="row"><code style="white-space:nowrap">admin</code></th><td>Admin</td><td>Organization</td><td>Works in every workspace as a manager, and manages the plan and the people of the organization.</td></tr><tr><th scope="row"><code style="white-space:nowrap">member</code></th><td>Member</td><td>Organization</td><td>Opens only the workspaces they were invited to, with the workspace role given there.</td></tr><tr><th scope="row"><code style="white-space:nowrap">manager</code></th><td>Manager</td><td>Workspace</td><td>Runs the workspace: members, connections, approvals and everything the other roles can do.</td></tr><tr><th scope="row"><code style="white-space:nowrap">strategist</code></th><td>Strategist</td><td>Workspace</td><td>Researches, plans and drafts. Cannot approve or publish.</td></tr><tr><th scope="row"><code style="white-space:nowrap">publisher</code></th><td>Publisher</td><td>Workspace</td><td>Drafts, approves and publishes content.</td></tr><tr><th scope="row"><code style="white-space:nowrap">paid_operator</code></th><td>Paid operator</td><td>Workspace</td><td>Imports paid data and prepares budget requests. Cannot approve their own requests.</td></tr><tr><th scope="row"><code style="white-space:nowrap">sales_collaborator</code></th><td>Sales collaborator</td><td>Workspace</td><td>Follows up on leads: status, outcome and sales.</td></tr><tr><th scope="row"><code style="white-space:nowrap">analyst</code></th><td>Analyst</td><td>Workspace</td><td>Reads dashboards and reports.</td></tr></tbody></table></div>

Three things sit on top of the workspace role:

- **Organization roles.** An organization has one owner, admins and members. The owner and the admins act as managers in every workspace of the organization, and only they manage the plan. A member needs a workspace role to open a workspace.
- **Client collaborators.** A member can be marked as a client-side collaborator. Whatever their role, they never see the agency's private notes and never manage connections, members, workspace settings, automation or paid data, export personal data, approve a budget, or put a post on the schedule. A client whose role allows it may approve what goes out.
- **Assistants and API keys.** An assistant has exactly the abilities of the person who connected it. An API key has the scopes it was created with and no role.

[Roles and permissions](https://heymysocial.com/docs/reference/roles-and-permissions) has the full matrix.

## The demo workspace and the practice channel

Two things in the product are simulations, and both are labelled wherever they appear.

The **demo workspace** is called "Nordlys Solar (demo)": an invented Danish solar installer with sample data in every part of the product. The first-run setup offers to add it, with the box ticked. It does not count against the plan's number of workspaces. Every screen in it carries a demo label, an assistant sees `is_demo: true` on it, and its sample events do not count as usage.

The **practice channel** is a simulated social account that can be connected to any workspace, so the whole flow from draft to approval to schedule to "published" can be tried without a real account. A post sent to it goes nowhere, and the metrics it reports are invented and flagged as demo. To an assistant it is the platform `mock`, connected with [connect_practice_channel](https://heymysocial.com/docs/assistant/tools/connect-practice-channel).

Demo data is never mixed into real numbers. If you see a result without a demo label, it came from your own events, files or entries.

## Evidence tiers

Every finding and recommendation carries one of three tiers, plus a fourth value for a plain assumption. A claim is only as strong as the weakest tier it rests on.

| Tier | Name in the app | What it means |
|---|---|---|
| `market_signal` | Observed market signal | Seen in public or authorized sources. It shows what others publish, not whether it works for them. |
| `own_measured` | Own measured outcome | Measured in this workspace: engagement, clicks or lead outcomes. |
| `verified_sales` | Verified sales outcome | Backed by recorded sales in this workspace. |
| `none` | No evidence | A starting assumption with nothing measured behind it yet. |

What follows from that:

- A market signal is never proof that something performs. Nothing in the product estimates a competitor's spend, return or profit.
- Results are reported as association. An observed difference between two campaigns is a reason to test, and the product does not call it a cause.
- Small samples are reported as inconclusive. Below a set number of leads on each side, a comparison between campaigns is not read as a difference, and an experiment on thin data reports "inconclusive" instead of a winner.
- A recommendation states its tier, its uncertainties and the rule by which it should be decided.

## The approval rule

Nothing leaves HeyMySocial without a person. This is one rule with two halves.

**What goes out is approved in the app.** A post is approved by a signed-in person with the right to approve, for one exact payload: this text, this picture, this channel, this time. The approval stores a hash of that payload. Changing the text, the call to action, the link, the picture, the channel, the time or the format makes the approval void and takes the post off the schedule, and the publisher compares the hash once more at the moment of sending. An assistant or an API key can request an approval and read its state. Neither can give one.

**Decisions that stay inside are confirmed in the conversation.** Approving a brand fact, an offer, a strategy or a recommendation changes nothing outside the workspace. An assistant may record such a decision when its tool call carries `person_confirmed: true`, which it is told to set only after the person has seen the exact thing and said yes. The call is written to the audit log as the person's decision.

A workspace can also require a second person. With **Four-eyes approval** on in the workspace settings (it is off by default), the person who asked for an approval cannot be the one who gives it.

There is no code in the product that changes an ad or a budget on an ad platform. Budget requests are prepared, approved and exported for a person to apply.

## What "N/A" means

A number that is not known is shown as missing. It is never shown as zero.

- A rate or a cost with nothing to divide by reads "N/A": cost per sale when there are no sales, a conversion rate when there were no visits.
- A value that was never reported, such as a metric a platform did not give, reads as a dash.
- In API and assistant replies the same value is `null`.

Zero means that something was measured and the answer was none. If you add up a column, leave the missing rows out; do not count them as zero.

## Money

Money is stored as a whole number of minor units together with an ISO currency code: 12,500.00 kr. is `1250000` with `DKK`. Assistant tools take and return `amount_minor` and `currency`. The events API also accepts `amount` in major units and converts it.

Amounts in different currencies are never added together. A workspace has one currency of its own, used when a sale arrives without one. Where revenue or spend exists in more than one currency, each currency is shown as its own figure, and a total across them is not made.

## Time zones

Every moment is stored in UTC and shown in the workspace's time zone. A time you type on the calendar is read in that zone, and the approval dialog shows the time with its zone and offset.

- Days on the calendar, and periods such as "last month" in results, are calendar days in the workspace's time zone.
- An event's `occurred_at` is kept as it was sent, and `received_at` is set by the server. An event dated more than a day into the future is refused.
- A time that does not exist, in the hour skipped when summer time begins, is refused with the reason. A time that occurs twice, when summer time ends, is taken as the first of the two, and the screen says so.
- Monthly usage is the exception: a plan's monthly allowances run by calendar month in UTC.
