<aside> 🔁 Synced from GitHub #dd024d6f3c9b. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.
</aside>
Status: Built On staging only so far, not production. The full web app (admin, manager and employee screens) has shipped alongside the already-documented backend: it has no feature flag any more, so it's visible to everyone in whatever environment runs this build. The old survey tool stays in the same menus, tagged Legacy, next to the new one tagged New, until it's cut over and removed. The backend worker that opens and closes surveys, finds automatic recipients and sends every email only runs in an environment whose SurveyV2Enabled setting is true (it's off when the setting is missing), so without it a company can publish a survey that opens straight away, but a scheduled open/close date, reminders, and the three automatic kinds (onboarding, confirmation, exit) won't fire. The switch is per environment, not per company. The backend is also ready for a production pilot: in production, Survey V2 only works for PaidHR's own account (see Gotchas).
💡 In plain words
PaidHR can send short surveys to employees and collect the answers.
HR or a manager writes some questions — or starts from a ready-made template — picks who gets them, and sends it out. Employees answer by clicking a personal link in an email. There are a few kinds: a quick "how are things" pulse check, a one-off engagement survey, "how likely are you to recommend us" (eNPS), general feedback, and check-ins sent automatically when someone joins, finishes probation, or leaves. Some surveys are anonymous; PaidHR hides answers until enough people have replied, so no one can work out who said what. You might currently see two "Surveys" sections in the menu — an old one and a new one doing the same job — while PaidHR finishes moving everyone over to the new one.
Like a short poll instead of a long, formal review.
Who's involved: company admins and managers (write and send surveys, read results), employees (answer them).
Survey V2 is core-backend-service's newer survey engine, built to eventually replace the single survey used today by exit requests. A survey belongs to a category — engagement, pulse, enps, feedback, general, or the three "automatic" kinds onboarding, confirmation, exit — and moves through a small status lifecycle (draft → scheduled/open → closed → archived). Company admins and secondary admins can create any kind; managers can create everything except the automatic kinds, scoped to their own reporting line. Who receives it (the audience) is everyone, an explicit list of people, or a filter by department/office/group. A background worker, polling every few minutes, opens and closes surveys on schedule, finds new recipients for the automatic kinds, sends invitation and reminder emails, and can repeat a survey on a recurring schedule (weekly, fortnightly, monthly, quarterly). Anonymous surveys hide who said what: results, team views and even the recipient list hide identity and are withheld until enough people have answered.
| Term | Meaning |
|---|---|
| Category | engagement, pulse, enps, feedback, general are started by a person. onboarding, confirmation, exit are "automatic": PaidHR finds recipients itself (new joiners, people finishing probation, approved exits) and a manager can't create them |
| Status | draft (editable) → scheduled (waiting for its open date) or open (collecting answers) → closed → archived. A survey is also treated as closed everywhere once its close date passes, even before the background worker catches up |
| Audience | all employees, an explicit list of person_ids, or a filter by department/office/group. Manager-created surveys are pre-scoped to that manager's own reporting line. A filter is AND across department/office/group — someone must match all three lists a company fills in — but OR within each list |
| Anonymous | Set at creation and locked once published (always off for automatic surveys). Needs at least 5 people in the audience to publish, and at least 5 to actually open. A manager whose team has fewer than 5 people can only publish a named survey for their team — the toggle can be switched off, never on |
| Recipient | One person a survey was sent to: not_started, in_progress or submitted. Snapshotted with their department/office/manager chain at the time they're added, so later reassignment doesn't change past results |
| Recurrence | A survey can repeat on a series (weekly, fortnightly, monthly or quarterly); each repeat is a new "round" with its own open window, linked by a series key so results can be compared round over round. Each round must close before the next opens, which caps how long a round can stay open: 7/14/28/89 days for weekly/fortnightly/monthly/quarterly |
| Template | A saved set of sections and questions to start a survey from. PaidHR ships built-in "system" templates that can't be edited (only copied into a new survey); a company can also save and edit its own |
stateDiagram-v2
[*] --> draft: created (Save)
draft --> draft: edited (Save)
draft --> open: Publish (opens now)
draft --> scheduled: Publish (opens later)
scheduled --> draft: Unschedule
scheduled --> open: open date reached
open --> closed: Close, or close date reached
closed --> open: Reopen (needs a new future close date, unless automatic)
draft --> archived: Archive
scheduled --> archived: Archive
open --> archived: Archive
closed --> archived: Archive
draft --> [*]: Delete (draft only)
Once published, the questions, category, audience and anonymity setting can't be changed; Unschedule is the way back to draft to edit a survey that hasn't opened yet.
A background worker checks every active company on a timer (every 5 minutes by default, configurable between 1 and 60 minutes) and, each pass: opens any scheduled survey whose open date has arrived, closes any open survey past its close date, and — for the three automatic categories — looks for new people to invite (new joiners, people who've just finished probation, employees whose exit was approved). The onboarding/confirmation eligibility scan only runs once per day per category under normal conditions, but re-checks sooner if the survey or its settings change. Exit invitations have no cut-off: an exit approved long after the survey existed is still picked up on the next pass.
An onboarding survey is set to go out 1–365 days after someone starts (suggested 30). A confirmation survey is set to go out 0–90 days before their probation ends (suggested 14), counting back from their hire date plus the probation length set under Employee confirmation in HR & Payroll settings.
Reminder emails follow the interval an admin sets (1–30 days). For a normal survey the clock starts from when the survey opened; for an automatic survey each recipient gets their own clock starting from when they were added. Up to 100 reminder/invitation emails go out per company per worker pass, so a very large audience sends over several passes rather than all at once. A survey link stops working 90 days after the recipient submits or the survey closes; reopening a survey resets that clock.
An anonymous survey hides individual answers from everyone, including admins: the recipient list shows who was invited but not their status, individual responses can't be opened, and a recipient can't be removed once added (so a removal failure message can't be used to guess who's on the list). Results for any survey — anonymous or not — are withheld as "too few responses" until at least 5 people have answered overall, and the same 5-response minimum applies to any department/office breakdown and to each individual question. When a manager looks at their own team's slice of a company-wide survey, results are always shown with identity hidden, even if the survey itself isn't anonymous — and not shown at all if their team has fewer than 5 people, though those people's answers still count in the company's overall results and in the results of any manager above them.
Survey V2 does not yet replace the single legacy survey that exit policies use today — it runs alongside it. Every Survey V2 survey quietly creates a matching row in the old survey table so that an exit policy (which stores a legacy survey id) can still point at something; exit discovery still reads from the same exit-approval data the legacy flow already produces. A one-way migration path exists to move old surveys into Survey V2 (and would require giving any anonymous legacy exit survey a new name, since Survey V2 can't represent an anonymous survey in the exit category) but it is switched off by default and hasn't been run anywhere yet.