Customer Collaboration domain flows
This page describes how the key Customer Collaboration flows behave over time. It references the records, request types, methods, states, and messages defined in the domain model.
System flow
Pigeon owns contact orchestration and correlation. Incident, Ticket, Investigation, and other calling domains remain responsible for interpreting a response and enforcing their own business transitions.
Outbound contact lifecycle
Required context depends on the calling service:
- Incident Management requires workspace ID and incident name.
- MVM requires customer short.
- Service Management requires customer short and service-request ID.
A Teams notification is skipped when no incident thread exists unless
create_teams_thread is explicitly true. General inquiries can create a thread.
Inbound correlation lifecycle
- Normalize the channel payload into an
IncomingMessageDatavalue. - Resolve workspace ID from customer configuration when the channel supplied only customer short.
- Cancel outstanding manual and automated phone attempts for the incident.
- Locate the most recent non-action-card request in
InProgressstate. - If a request exists:
- complete the applicable open requests;
- attach the complete original request to the response;
- publish
ion.pigeon.customercontact.responsewith the stored routing data.
- If no request exists:
- drop failure-like responses marked not to become unsolicited; or
- publish
ion.pigeon.customercontact.unsolicitedwith a deterministic event ID.
- Correlate action-card responses separately by reference ID.
| Response condition | Completion behavior |
|---|---|
Success or Failed | Complete all non-action-card open requests in the incident partition |
Incomplete | Complete only open requests whose outbound method matches the inbound method |
| Action-card response | Complete the matching action-card request only |
| No open request | Publish unsolicited message unless explicitly suppressed |
Action-card correlation follows its own path:
- the producer supplies a reference ID;
- Pigeon rejects a duplicate in-progress request with the same reference;
- a response is matched by workspace, incident, and reference ID;
- completion data is returned with the original contact request;
- cancellation updates both contact-request and action-card records.
Teams ingestion and filtering
Pigeon drops Teams input when it is:
- sent by a known ION notifier/sender account;
- a reaction;
- missing customer identity;
- a top-level channel message without
ReplyToId; - associated with no tracked incident thread;
- matched by a configured customer ignore rule;
- authored by an Ontinue user in a customer channel;
- prefixed with
--under the Ontinue-tenant special case.
Email ignore rules can match sender address, subject regex, and body regex.
Unsolicited-message routing
Pigeon Envoy validates the unsolicited-message schema, preserves the Service Bus
message ID for deduplication, and preserves the session for ordering. It then asks
the Incident domain to move the incident to New only when the current status is
WaitingForCustomer or Closed.
Pigeon Envoy does not mutate incident state directly; the Incident domain evaluates the command and precondition.