Mediate disputes between consumers and regulated entities with AI resolutions
Workflow purpose
This guide demonstrates how to use Proto's platform to mediate a dispute once a complaint has already been referred to a regulated entity and a response is on file. Not every dispute needs a human mediator from the start – many can be resolved by drafting a proposed settlement from the complaint history and the entity's response, then simply confirming both sides accept it. This workflow picks up after "Refer complaints to regulated entities and monitor redress" and only escalates to a human mediator when either party disagrees with the proposed resolution.
Who can benefit from this guide:
- Central banks and financial regulators handling consumer disputes
- Consumer protection agencies mediating between citizens and regulated entities
- Regulators wanting a faster, consistent first pass at routine disputes
- Mediation teams who want to focus their time on genuinely contested cases
Mediate a consumer dispute
This workflow drafts a proposed resolution from the existing complaint record and only escalates to a human mediator if either party disagrees. See how to mediate disputes between consumers and regulated entities with AI resolutions.
1. Create a trigger
Purpose: Start the flow when a dispute is ready for mediation.
- Navigate to the Workflows tab in the AI agent settings.
- Click New workflow and select Message received as the Workflow type.
- Name the trigger “Dispute Mediation”.
- Add a description such as “Triggers when a complaint has a regulated entity response on file and is ready for mediation.”
2. Ask survey – dispute reference
Purpose: Identify which complaint this mediation applies to.
- Add an Ask survey action titled
Dispute reference. - Field
complaint_reference– Text – What’s the complaint reference number? – Enable skip off.
3. Send API – pull the case history
Purpose: Ground the proposed resolution in what was actually said, not a generic template.
- Add a Send API action to the case system with
{complaint_reference}. Map the response tocase_history.
4. LLM Processing – proposed resolution
Purpose: Draft a fair, specific resolution from both parties’ positions.
- Add an LLM Processing action named
Mediation proposal. Input:{case_history}. Resulting variable:proposed_resolution. - Success branch: first action is Set variable –
proposed_resolution = _.json_parse(proposed_resolution). - System prompt fields:
summary(string),proposed_remedy(string),basis(string, cites which facts from the case support the remedy).
5. Confirm with both parties
Purpose: Get explicit acceptance before treating the case as resolved.
- Add a Send message action to the consumer: “{proposed_resolution[“summary”]} Proposed resolution: {proposed_resolution[“proposed_remedy”]}. Do you accept?“ with quick replies Accept, I disagree.
- Add a Set variable action to capture the reply as
consumer_response– quick reply selections aren’t captured automatically, so this step reads_user_inputinto the variable. - The regulated entity doesn’t take part in this chat. Its answer to the proposal is collected through a ticket in step 6, so the consumer never waits in the chat for the entity to reply.
6. Branch on the outcome
Purpose: Record accepted proposals for confirmation with the regulated entity, and route contested ones to a person.
- Add a Branch action. Condition:
_.lower(consumer_response) == "accept". - If true: Send API to record the consumer’s acceptance and the proposed remedy on the case. Then add a Create ticket action assigned to your mediation team, with
{complaint_reference}and{proposed_resolution["proposed_remedy"]}in the description. A mediator sends the proposal to the regulated entity from the ticket and closes the case once the entity accepts, or takes the case on if it disagrees. Finish with a Send message: “Thank you. We’ve sent the proposed resolution to the other party for confirmation. Your reference is {_new_ticket.short_id}.” - Else: Live agent handoff to your mediation team, with Live agent availability check on. The mediator sees the case history and the proposal in the chat. Under If there is no live agent online, add a Create ticket action assigned to the mediation team with
{complaint_reference}and{consumer_response}in the description.
7. Test the flow
Purpose: Confirm both the accepted and contested paths behave correctly.
- Test a case where the consumer accepts, and confirm the acceptance is recorded and a ticket is created for the mediation team to confirm with the regulated entity.
- Test a case where the consumer disagrees, and confirm it escalates to the mediation team rather than closing.
- Test with an incomplete case history (missing entity response) and confirm the LLM Processing action asks for more information rather than proposing a one-sided remedy.
.png)