Patient Experience

Triage symptoms and hand off to a nurse

Workflow purpose

This guide demonstrates how to use Proto's AI agent to guide patients who are unsure where to go – the emergency department, a same-day appointment, a routine booking or care at home – and connect them to a nurse.

The workflow checks for emergency warning signs before it asks anything else. If there are none, it asks a short set of structured questions and uses an LLM, grounded in your hospital's approved triage protocol, to suggest a care level. Patients who need clinical advice are handed to your nurse team with their answers already in the chat.

This is not a diagnosis tool, and the AI agent says so at the start. It points people to the right level of care using rules your clinicians have approved, and every conversation stays reviewable in the Inbox.

Who can benefit from this guide:

  • Hospitals and clinics running a nurse advice line
  • Emergency departments looking to redirect non-urgent attendances
  • Health plans and HMOs offering a symptom line to members
  • Primary care networks managing same-day demand
  • Clinical governance teams setting rules for digital front doors

Triage symptoms

This workflow screens for emergencies, suggests a care level from your approved protocol and hands patients to a nurse 24/7. See how to build a symptom triage workflow.

Just starting with the platform?
For initial setup of your AI agent – including workspace setup, agent training, and channel deployment – please start here. This workflow guide assumes your AI agent is set up and ready for more advanced configurations.

1. Create a trigger

Start the flow when a patient describes feeling unwell or asks where they should go.

  • 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. “Symptom Triage”) and add a short description (e.g. “Triggers if user describes symptoms, feels unwell, or asks whether they should see a doctor, go to hospital or speak to a nurse.”).
  • Add training phrases (e.g. “I feel unwell”, “My child has a high fever”, “Should I go to A&E”, “I’ve had a headache for three days”, “Can I speak to a nurse”).

2. Say what the AI agent can and can’t do

Set expectations clearly before collecting any symptoms.

Add a Send message action:

“I can help you decide where to get care and connect you to a nurse. I can’t diagnose you or replace a doctor. If you think your life is in danger, call [emergency number] now.”

Keep this wording agreed with your clinical leads – it is the first thing every patient sees.

3. Check for emergency warning signs

Rule out an emergency before asking anything else.

Add a Send message action:

“Do you or the person you’re asking about have any of these right now?

  • chest pain or pressure
  • difficulty breathing or choking
  • face drooping, arm weakness or slurred speech
  • severe bleeding that won’t stop
  • collapse, a fit or being hard to wake“

Add quick replies: Yes | No.

Under a Message received sub-trigger for Yes – with training phrases that include the symptoms themselves, such as “chest pain”, “can’t breathe” and “stroke” – add a Send message:

“Call [emergency number] now or go to your nearest emergency department. Don’t wait for a reply here.”

End the flow there. Don’t ask any further questions, and don’t hand over to a nurse first – the patient needs emergency care, not a chat.

Also run the patient’s first message through the same check, so someone who opens with “my father has chest pain” never sees the question at all. Before this step, add an LLM Processing action with {_user_input} as the input, temperature 0, and a system prompt that returns {"emergency": "yes" | "no"} for the warning signs above, answering yes when unsure. Add a Set variable action with _.json_parse() and a Branch that jumps to the emergency message on anything other than no.

4. Ask about the symptoms

Collect the same short set of answers from every patient, so the protocol has what it needs.

Under the No sub-trigger, add an Ask survey action. Action title: Symptom check

Field Variable Type Invalid reply
What is the main symptom? main_symptom Text Please describe the main symptom in a few words
How long have you had it? duration Text, with quick replies: Today | 2–3 days | About a week | Longer Please choose how long
How bad is it, from 1 (mild) to 10 (worst)? severity Number Please enter a number from 1 to 10
Age of the person who is unwell age Number Please enter an age in years
Are they pregnant? pregnant Text, with quick replies: Yes | No | Not applicable Please choose an option
Any long-term conditions, e.g. diabetes, heart or lung disease? conditions Text Please list any conditions, or reply None
Anything else we should know? other_symptoms Text Please describe any other symptoms

Turn on Enable skip for the last field only. Keep the survey short – a nurse will ask follow-up questions; the survey’s job is to pick the right next step.

5. Load the approved triage protocol

Ground the AI agent’s suggestion in your hospital’s rules, not the model’s general knowledge.

On the AI agent’s Knowledge tab, open Knowledge base and use Upload file to add the triage protocol your clinicians have approved, as a PDF. Keep only the approved, current version there – remove the old file when a new one is signed off. Knowledge answers need Large language model turned on under Personalization on the Agent tab.

6. Suggest a care level

Match the answers to one of four care levels, with a strict prompt and a safe default.

Add an LLM Processing action:

  • Input: Symptom: {main_symptom}. Duration: {duration}. Severity: {severity}/10. Age: {age}. Pregnant: {pregnant}. Conditions: {conditions}. Other: {other_symptoms}. – only the survey answers, so nothing else in the chat sways the assessment
  • Model: your preferred model
  • Temperature: 0, so the same answers always give the same level
  • Use Knowledge info to provide more context: on
  • System prompt: “You apply the hospital’s triage protocol from the knowledge provided. You never diagnose. Choose exactly one care level: emergency, see_doctor_today, book_appointment or self_care. Use only the protocol. If the answers match more than one level, choose the more urgent one. If the protocol doesn’t cover the symptom, or you are unsure, choose see_doctor_today. Reply only with JSON: {"care_level": "…", "protocol_rule": "the rule you applied"}.”
  • Resulting variable: triage

Add a Set variable action – Variable: triage, Chat script: _.json_parse(triage).

The safe default matters more than the prompt: anything the model can’t place goes to a nurse, never to self-care.

7. Reply by care level

Tell the patient what to do next in plain language.

Add a Branch action:

Condition What happens
triage["care_level"] == "emergency" Send message: “Based on your answers, you need urgent care. Call [emergency number] or go to your nearest emergency department now.” End the flow.
triage["care_level"] == "see_doctor_today" Send message: “You should be seen by a doctor today. I’ll connect you to a nurse now.” Then a Jump to Step 8.
triage["care_level"] == "book_appointment" Send message: “Your symptoms don’t need urgent care, but a doctor should see you. I can book you an appointment.” Add quick replies Book an appointment | Speak to a nurse, with a Jump to your appointment trigger – see medical appointment scheduling.
triage["care_level"] == "self_care" Send message with self-care advice from the protocol and the signs that mean the patient should get help, then quick replies That helps | Speak to a nurse.
Else Jump to Step 8 – the safe default if the reply couldn’t be read.

Every reply ends with the same line: “If you get worse, or notice any of the warning signs, call [emergency number].”

8. Hand over to the nurse team

Connect the patient to a nurse, with their answers and the suggested care level already in the chat.

Add a Send message:

“I’m connecting you to a nurse. They’ll see your answers, so you won’t need to repeat them.”

Add a Live agent handoff action assigned to your nurse team, with Live agent availability check on. The nurse sees the full conversation in the Inbox – the survey answers, the care level and the protocol rule the AI agent applied – and makes the clinical decision. When the nurse has finished, they can return the patient to the AI agent; under When live agent transfers back to AI agent, add a Send message with quick replies Book an appointment | That’s all.

Under If there is no live agent online, handle out-of-hours by care level:

  • See a doctor today: give the out-of-hours clinic or urgent care centre details and opening times. Don’t promise a callback – this patient shouldn’t wait until morning.
  • Book an appointment or self-care: offer a nurse follow-up. Collect an email with an Ask survey, then add a Create ticket assigned to the nurse team, with the survey answers and {triage["care_level"]} in the description and the tag triage-follow-up. Nurses reply from the ticket in the Inbox when the team is back.

9. Set up clinical governance

Keep the clinical rules owned by clinicians, and every decision reviewable.

  • Approved protocol only: the knowledge base holds the protocol your clinical leads signed off. Any change to it, the warning-sign list or the system prompt is reviewed by them first.
  • Change control: make changes in an undeployed version and Deploy once approved. The Change log tab records what changed in the AI agent and when.
  • Review: every conversation – including the survey answers and the suggested care level – stays in the Inbox. Nurses can tag chats (e.g. triage-upgraded, triage-downgraded) when they disagree with the suggestion, and clinical leads review a sample, plus every tagged chat, on a regular schedule.

10. Test the flow

Validate every path before going live using the AI agent tester side panel.

  • Open with “my husband has chest pain” and confirm the emergency message appears with no further questions.
  • Run test cases your clinicians supply for each care level, and check the LLM picks the level the protocol gives.
  • Describe a symptom the protocol doesn’t cover and confirm the patient is sent to a nurse, not to self-care.
  • Test with no nurse online and confirm a same-day patient gets out-of-hours details, not a callback.
  • Build and test in an undeployed version – Duplicate the live version on the Workflows tab – then Deploy when every path passes and your clinical leads have approved it.

Finalise the AI agent deployment by configuring your preferred channels and languages.