Summarise complaints for investigators
Workflow purpose
This guide demonstrates how to use Proto's AI agent to turn a person's account of their complaint into a structured summary that an investigator can read in under a minute.
The workflow asks a few investigation questions, then an LLM Processing step writes a summary under fixed headings – who, what, when, amount, institution, the outcome they want, evidence received and open questions. The person checks the summary and corrects anything that's wrong before it's written into the ticket's description, with their own words kept underneath.
Investigators lose hours reading long, out-of-order chat transcripts to find the date, the amount and what the person actually wants. A summary the complainant has confirmed is faster to read and harder to dispute later.
Who can benefit from this guide:
- Regulators and ombudsman schemes with investigation teams
- Grievance-redress units that hand complaints from intake to case officers
- Banks, insurers and telecom operators with complaints resolution teams
- Health services reviewing patient complaints
- Any organisation where the person who logs a complaint isn't the person who resolves it
Summarise complaints for investigators
This workflow builds a confirmed, structured complaint summary and writes it into the ticket. See how to build a complaint summary workflow.
1. Create a trigger
Create a workflow that gathers the details an investigation needs and turns them into a summary.
- Navigate to the Workflows tab in the AI agent settings.
- Click New workflow and select Message received as the Workflow type.
- Name the trigger (e.g. “Complaint Summary”) and add a short description (e.g. “Triggers if user wants to add dates, amounts, evidence or more detail to the complaint they are making.”).
- Add training phrases (e.g. “I want to give more details”, “I have more information about my complaint”, “I need to explain what happened”, “I have documents to add”).
Most people reach this workflow from complaints intake: in the intake’s Confirm sub-trigger, replace Create ticket with a Jump action pointing to Step 2 below. The name, email, phone and complaint_description collected there carry over, so this workflow only asks what intake didn’t.
2. Ask the investigation questions
Collect the facts investigators always go looking for.
Add an Ask survey action. Action title: Investigation details
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Which company, provider or office is this about? | institution |
Text | Please enter the name of the organisation |
| When did it happen? | incident_date |
Text | Please give a date or an approximate time, e.g. “early March” |
| How much money is involved, if any? | amount |
Number | Please enter the amount as a number |
| What would you like to happen now? | desired_outcome |
Text | Please tell us what outcome you’re hoping for |
| Upload any receipts, messages or letters | evidence |
Attachment (multiple files) | Please upload the files as attachments |
Turn on Enable skip for the amount and the evidence – not every complaint involves money or documents, and a skipped field becomes an open question in the summary rather than a blocker. Keep the date as Text, since people often remember “last Tuesday” better than an exact date.
3. Write the summary with LLM processing
Turn the answers into a summary under the same headings every time.
LLM Processing works only on what you put in its Input – it doesn’t read the chat history on its own, so pass every variable the summary needs.
First, add a Branch so the summary can say whether files arrived: If evidence – Set variable with Variable name evidence_note and Chat script "Files uploaded"; Else – the same with "No files uploaded". Also add a Set variable with Variable name summary_edits and Chat script 0, for Step 5.
Then add an LLM Processing action. Action title: Build summary
- Input: Complainant: {first_name} {last_name}, {email}, {phone}. Institution: {institution}. Date: {incident_date}. Amount: {amount}. Account in their words: {complaint_description}. Outcome wanted: {desired_outcome}. Evidence: {evidence_note}.
- Model: your preferred model
- Temperature: 0, so the summary stays close to what the person said
- System Prompt: e.g.
“You write complaint summaries for investigators. Use exactly these headings, one line each: Who, What happened, When, Amount, Institution, Outcome wanted, Evidence received, Open questions. Use only facts in the input. If a fact is missing or empty, write ‘Not given’ and add it to Open questions. Under Open questions, list what an investigator would need to ask next. Write in plain language, no more than 150 words, with no opinions on who is at fault.”
- Use Knowledge info to provide more context: off
- Resulting variable:
complaint_summary
Under the Error and Timed out branches, skip the summary: add a copy of the Create ticket action from Step 6 with the person’s own answers in the Description and the tag summary-failed, so no complaint is lost because the LLM call failed.
4. Ask the person to confirm it
Make sure the summary says what the person meant before anyone relies on it.
Add a Send message action. Action title: Summary check
“Here’s a summary of your complaint for our investigators:
{complaint_summary}
Is this right?“
Add quick replies: Yes, that’s right | Something’s wrong.
- Under a Message received sub-trigger for Yes, that’s right (training phrases: yes, correct, that’s right, looks good), continue to Step 6.
- Under Something’s wrong (training phrases: no, that’s wrong, not quite, change it), continue to Step 5.
5. Correct the summary and loop back
Let the person fix the summary in their own words, without starting again.
Add an Ask survey action with one field: What needs changing? (summary_correction, Text, Enable skip off).
Then add a second LLM Processing action. Action title: Apply correction
- Input: Current summary: {complaint_summary}. Correction from the complainant: {summary_correction}.
- Temperature: 0
- System Prompt: “Update the complaint summary with the complainant’s correction. Keep the same headings and format. Change only what the correction covers. If the correction adds a fact, add it under the right heading and remove it from Open questions.”
- Resulting variable:
complaint_summary
Add a Set variable action to count corrections – Variable name: summary_edits, Chat script: summary_edits + 1. Then a Branch:
- If
summary_edits < 3: Jump back to Step 4, Summary check. - Else: Send message – “Thank you. I’ll pass your complaint on with your corrections, and an investigator will check the details with you.” Then add a copy of the Create ticket action from Step 6, tagged summary-disputed instead of summary-confirmed.
Three rounds is enough. After that, an investigator resolves the wording with the person directly.
6. Write the summary into the ticket
Put the confirmed summary at the top of the ticket, with the original account underneath.
Add a Create ticket action:
- Assignee: your investigations team
- Subject: Complaint – {institution} – {incident_date}
- Description:
{complaint_summary}, then a line Original account:, then{complaint_description} - Full name:
{first_name} {last_name} - Email and Phone number:
{email}and{phone} - Attachment(s):
{evidence} - Auto-apply tags: complaint, summary-confirmed
Keeping the original account matters. The summary is for speed, the person’s own words are the record, and an investigator can check one against the other.
Then add a Send message:
“Thank you, {first_name}. Your complaint has been logged as {_new_ticket.short_id}. An investigator will contact you at {email} if they need anything else.”
7. Add a chat summary in the Inbox
For conversations that continue with a live agent, add Proto’s chat summary alongside the ticket summary.
Navigate to Settings › AI analysis and, on the Chats tab:
- Turn on Chat summary and write a Summary prompt with the same headings as Step 3, so both summaries read the same way.
- Under Manual analysis, allow live agents to generate a chat summary from the Inbox when they need one.
The two do different jobs. The workflow summary is confirmed by the complainant and lives in the ticket. The chat summary covers the whole conversation, including anything said to a live agent after the handoff, and isn’t shown to the person. AI analysis uses credits for each summary, so set its Analysis threshold to skip very short chats.
8. Test the flow
Validate every path before going live using the AI agent tester side panel.
- Complete the flow with every field filled and check the summary uses all eight headings and adds nothing that wasn’t said.
- Skip the amount and evidence, and confirm both appear as Not given and under Open questions.
- Choose Something’s wrong, correct the date, and confirm only the date changes in the new summary.
- Correct the summary three times and confirm the ticket is created with the summary-disputed tag.
- Build and test in an undeployed version (Duplicate the live version), then Deploy when every path passes.
Finalise the AI agent deployment by configuring your preferred channels and languages.
.png)