The Payload Builder is a flexible configuration tool in Mentor used to define and customise the data that is sent to external systems.
It enables operators to construct dynamic payloads for integrations such as:
By combining structured JSON with runtime parameters, the Payload Builder allows precise control over outbound data while adapting to different workflows and use cases.
The Payload Builder is available within action configurations wherever external communication is required.
The Payload Builder is designed to:
The Payload Builder can be accessed via:
It is embedded directly into the configuration flow, allowing payload definitions to be created and adjusted alongside automation logic.
The Payload Editor is a free-text code editor for constructing payloads in JSON format.
You can structure the payload freely, as long as the linter accepts it as valid JSON. Add, remove, rename or nest fields to match what the receiving system expects.
A default payload template is provided when opening the editor. It contains the data that is most commonly required.
This template serves as:
Operators can modify or fully replace the default payload depending on their requirements.
Using the default payload helps maintain consistency across integrations while reducing configuration effort.
The Payload Builder supports dynamic parameters that are resolved at runtime.
These parameters allow the payload to include live data from the system, making each request context-aware.
Parameters can be inserted in two ways:
$$This opens a selectable list of available parameters.
Parameters are grouped into namespaces. Each namespace provides a different kind of data.
| Namespace | Provides |
|---|---|
customer |
Information that links directly to the player for whom the trigger emitted an event. |
datasource |
KPIs computed for the player's data source. |
incident |
The entity attached to an incident. Available when the workflow is executed through an entity attached to an incident, or when the workflow includes a case creation. |
trigger |
Information about the trigger. |
workflow |
High-level information about the workflow. |
Some parameters are only available under specific conditions.
For example:
incident namespace) are only available if a case action is part of the workflow.If no relevant context exists, the parameter will be empty.
Parameters are strictly tied to the data context of the configured workflow.
A workflow runs its actions in a defined order. Because of this, an action can refer to entities that an earlier action in the same workflow has created.
For example, a player message is created before a webhook is sent. The webhook payload can therefore include the ID of that message:
{
"messageIds": "$$customer.customerMessageIds$$"
}
A parameter only returns data that exists at the point where the action runs.
To ensure reliable and maintainable payload configurations:
Once configured:
This process is fully automated and does not require manual intervention.