What is a ticket?
A ticket is a work item your team tracks from first contact until it is resolved or closed. Think of it as a case file: it has a title, a priority, an owner, a pipeline, a current stage on the board, and links to related records (reviews, customers, journeys, campaigns, or events). Tickets live in the CRM → Tickets area of the dashboard. You can also create and update them through the Storefront API if you integrate Masivo with your own tools (help desk, inbox connector, custom portal, etc.).The three layers you need to understand
Masivo separates case management from conversation storage. This keeps the ticket board fast while still storing full message history.
Important: listing threads returns thread shells (summary fields only). To read the full conversation, call the messages endpoint for each thread.
Ticket lifecycle (pipelines, stages, and status)
Every ticket belongs to one pipeline and one stage inside that pipeline. Create separate pipelines only when support processes have genuinely different stages; teams that share a process should share a pipeline. Each stage has a stable internalcode, a display name, an order, and an internal stage_type:
Status (
open, resolved, closed) is derived from the stage’s internal type—not its display name. You normally change pipeline/stage, not status directly. Each pipeline receives its own stable stage codes.
Resolving or closing a ticket no longer asks for a resolution summary or a closure reason. To collect information when a ticket is resolved or closed, use closure forms. resolution_summary and closure_reason are still accepted in required_fields and stored when you send them.
Configure pipelines under CRM → Pipelines. Every active pipeline must keep exactly one open default stage, at least one open stage, and at least one closed stage. A used stage cannot be removed or change its internal state until its tickets are moved.
When an inbound customer message arrives on a closed ticket, Masivo reopens the same ticket in the first open stage of its current pipeline. It does not create a replacement ticket.
Category hierarchy
Classification describes the problem independently from its workflow stage. Configure it under CRM → Categories as one hierarchy. A top-level category groups related categories and defines their e-commerce availability. A leaf can end at the second or third level; it is selectable on tickets and owns the schema that agents complete.
When an agent creates or edits a ticket, category selectors appear progressively,
for example Orders › Payments › Card declined. Only a leaf can be selected.
Selecting it displays its Schema and restricts Brand, Channel, and Store to the
availability inherited from the top-level category. The database validates the
same restrictions.
All levels live in
ticket_categories. A top-level category has a null
parent_id; every other category references its parent. The leaf Schema is
stored in ticket_categories.schema. Tickets reference the selected leaf through
category_id and store validated values in category_answers. A category in
use cannot be removed until its tickets are moved.
Closure forms
Closure forms collect the information a ticket must carry when it ends, such as the solution applied (for example Resend, Refund, Not applicable) or who was responsible (Store, Aggregator, Rider). Configure them under CRM → Closure forms. They use the same field types as category Schemas:text, textarea, and select, each optionally required.
Masivo asks for the fields of every applicable form each time a ticket moves
from an open stage to a
resolved or closed stage. Answers are stored in
tickets.closure_answers, keyed by field ID, and in the closure_answers of
that transition’s stage_history entry. Moving a resolved ticket to a closed
stage does not ask again unless a required field is still empty (for example,
a form created after the ticket was resolved).
Reopening a resolved or closed ticket by moving it to an open stage asks for
the same fields again. Every applicable field is shown empty, required fields
block the move, and the answers are stored in the closure_answers of that
transition’s stage_history entry. Reopening clears tickets.closure_answers,
so the next closing asks for the form again; the answers of every closing and
reopening stay in the ticket Stage history tab. Reopenings that no person
performs skip the form: a customer replying to a closed ticket, and journey
stage actions.
The board, the ticket editor, and the Storefront API (closure_answers on
POST /tickets and PATCH /tickets/{id}) apply the same validation. Journey
stage actions skip closure forms because automations cannot answer them; use
journeys for automatic moves and let agents complete closure forms when they
finish a case.
Closure answers appear in the Resolution tab of the ticket, in the ticket
sidebar, and in the ticket export.
Linked order
A ticket can reference the purchase it is about. The order is stored as anevent association that points to the purchase event, so the order keeps its
products, store, and value without copying them into the ticket.
- Dashboard: in the ticket editor, open E-commerce → Order and search by
order number (
purchase_id). The search covers orders issued in the last 30 days. - API: send
event_id, orpurchase_idto let Masivo find the order. Sendevent_id: nullonPATCHto unlink it.
Associations
The Associations tab lists everything linked to a ticket: reviews, customers, journeys, campaigns, and orders. Members who can edit tickets use New association to pick the entity type and then search for the record (customers by name, email, phone, or ID; reviews by ID; journeys and campaigns by name; orders by purchase ID). Each association stored on the ticket has a Remove button. A ticket links one order, so adding another order replaces the current one. Adding or removing an association publishes aticket.updated event with associations in changed_fields.
Store access, regions, and area managers
Members with theADMIN role see every ticket. Everyone else always sees the
tickets they are assigned to or watch. Beyond that:
- Ticket agents see what their visibility rules allow.
- Other members also see tickets whose store lists them under Assigned people in the store settings.
See Stores for how to model regions, cities, and
responsible people.
Notification rules
Notification rules alert people when tickets or regions need attention. They live under CRM → Notification rules and have their own engine, separate from journeys: a scheduled job evaluates every active rule every 15 minutes. Each rule watches either open tickets or regions.Ticket rules
Ticket rules can use the ticket’s fields (status, priority, pipeline, stage, source, store, brand, channel, customer, review, assignee and customer presence) and these timing fields:
Each match creates an in-app notification and an email (preference group
CRM alerts) that links to the ticket. A rule notifies once per ticket
opening; reopening the ticket restarts the cycle. Deliveries are recorded in
the ticket’s
metadata.rule_deliveries.
Region rules
Region rules compare a closed period with the one before it, region by region: each week (Monday to Sunday, UTC, evaluated from Monday 12:00 UTC) or each day (UTC, evaluated from 06:00 UTC). Sentiment comes from the AI analysis of reviews (0–100); only analyzed reviews of stores with a region count.
A region rule is evaluated once per period; saving changes to the rule
evaluates the current period again, without repeating a notification that is
still open. Each matching region creates an in-app notification and an email
(preference group CRM alerts) with the stores that dropped the most and the
top ticket categories of the period. Region names are compared without letter
case, so
Quito and quito are the same region.
Ticket sources
Review-sourced tickets automatically get a review communication thread with the review answers as the first inbound message.
Assignees
Each ticket can have team members in two roles:
Being linked to a ticket only as a watcher makes it read-only for that person: they cannot change its stage, edit it, comment, reply, reassign, or delete it, even when their account role allows writing tickets. Admins keep their global bypass, and anyone with no link to the ticket still acts according to their role, so supervisors can pick up unassigned work.
Assignee changes emit journey events (
TICKET_ASSIGNEE_ADDED, TICKET_ASSIGNEE_REMOVED) that you can use in Ticket Journey Triggers.
Agents and automatic assignment
Everyone who owns a ticket is a ticket agent. Assigning a team member by hand adds them to the roster automatically, with automatic routing switched off so they only receive what you hand them. Each agent declares how much work they can take and when:
A ticket created without an assignee goes to the available agent with the lightest open load, breaking ties by who was assigned least recently. The agent must be on shift, under capacity, subscribed to the ticket’s pipeline, and skilled in its category or in one of that category’s parents. Accounts with no roster keep creating unassigned tickets.
Skipping routing for a single ticket is possible by creating it with
auto_assign: false; the decision is stored on the ticket, so later sweeps respect it too.
Ticket visibility
Each agent has visibility rules, set by an admin under CRM → Agents. Agents always see the tickets routed to them automatically or given to them by someone, plus the ones they watch. Those stay visible after the ticket is resolved or closed; they only go away when the agent is removed from the ticket. Admins can add any of these, all off by default:
The rules apply to the board, the table, ticket details, customer tickets,
agent profiles, ticket analytics, and exports. Agents added to the roster
automatically, by being assigned a ticket, keep store visibility so they don’t
lose the tickets they already worked. Only admins can change these rules.
Anyone who can see an open ticket without an assignee can take it with
Assign to me on the ticket detail, watchers included (their watch becomes
the assignment). If two people click at once, only the first one gets it; the
other sees that the ticket was already taken.
Watchers stay read-only: on the board their tickets can’t be dragged to
another stage, and the edit page sends them back to the ticket.
When every agent is busy
If nobody can take the ticket at creation time it stays unassigned instead of failing. An externally scheduled job (POST /api/cron/tickets/auto_assign) sweeps the pending backlog. The first sweep after an agent closes work, comes back from a break, or starts their shift assigns the waiting ticket. The sweep interleaves pipeline/category routes so an unsupported category cannot block unrelated work; within each route, urgent and older tickets go first.
Agents can also be pulled in manually from the ticket detail with Auto-assign, which runs the same routing on demand.
Agent profiles and performance
Open CRM → Agents to inspect an agent’s current load, shift, pipeline and category routing, recent ticket flow, average resolution time, reopen rate, and open work by priority. The summary compares the latest 30-day window with the previous one. Lifetime metrics keep tickets the agent previously held after reassignment and count each ticket once. The ticket tabs show the agent’s current active assignments, split into open, resolved, and closed work.Communication threads
A thread represents one external conversation identity, for example:- One email mailbox thread (
channel: email,external_thread_idfrom your provider) - One WhatsApp number conversation (
channel: whatsapp) - One web chat session (
channel: chat) - The review submission tied to a ticket (
channel: review, created automatically)
Thread fields that matter day to day
Thread uniqueness (avoid duplicates)
If you sync from an external system, always sendexternal_thread_id (and usually channel_account_id) when creating threads and messages. Masivo deduplicates on:
- Thread:
(account, channel, channel_account_id, external_thread_id) - Message:
(account, channel, external_message_id)
Communication messages
Each message has:
Rules to remember:
- Replies must reference a
parent_message_idthat exists in the same thread. Cross-thread replies are rejected. - At least one of
subject,body_text, orbody_htmlis required when creating a message. - Internal notes (
direction: internal,message_type: internal_note) are visible to agents only. They do not emit customer reply journey events.
Ticket communication_summary
When you fetch a single ticket (GET /tickets/{id}), the response includes communication_summary: a rollup across all threads on that ticket (thread count, latest preview, total unread, dominant channel). Use this for list views and board cards without loading every message.
Events emitted (for journeys and webhooks)
Ticket and communication actions publish internal behavior events. Common ones:
See Ticket Journey Triggers to automate follow-ups when these events occur.
Dashboard vs API
For step-by-step API recipes and copy-paste examples, continue with the Ticket management guide.