Patient Experience

Deliver lab test results through AI chat

Workflow purpose

This guide demonstrates how to use Proto's platform to deliver lab test results directly through AI chat, once identity has been verified. Phoning patients to say results are ready – or worse, leaving them to call in and wait on hold – adds delay to something that is often already causing anxiety. This workflow verifies the patient, checks the result status with the laboratory information system, and either delivers the result or escalates to a doctor when the result needs clinical context.

Who can benefit from this guide:

  • Diagnostic laboratories and hospital pathology departments
  • Clinics wanting to reduce inbound calls asking "are my results ready"
  • Insurers and HMOs offering result delivery as part of a broader health service
  • Operations teams needing an auditable trail of when a result was released

Deliver a lab test result

This workflow verifies the patient, checks result status, and either delivers the result or escalates for clinical context. See how to deliver lab test results through AI chat.

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

Purpose: Start the flow when a patient asks about lab results.

  • Navigate to the Workflows tab in the AI agent settings.
  • Click New workflow and select Message received as the Workflow type.
  • Name the trigger “Lab Results”.
  • Add a description such as “Triggers if user asks whether their lab or test results are ready.”

2. Ask survey – identity and reference

Purpose: Confirm who is asking before releasing any medical information.

  • Add an Ask survey action titled Result lookup.
  • Field reference_number – Text – What’s your test reference number or booking ID?
  • Field date_of_birth – Text – Please confirm your date of birth for verification.

3. Send API – laboratory lookup

Purpose: Check the actual result status rather than guessing from turnaround time.

  • Add a Send API action to your LIS, filtered by {reference_number} and {date_of_birth}. Map the response to result_status and result_data.

4. Branch – branch by result status

Purpose: Send routine results directly, but keep anything needing clinical context with a doctor.

  • Add a Branch action.
  • Condition: _.lower(result_status) == "ready" → deliver directly.
  • Condition: _.lower(result_status) == "needs review" → Live agent handoff to your clinical team, with Live agent availability check on, so a doctor or nurse can see the chat history, including {reference_number}, before discussing the result. Under If there is no live agent online, add a Create ticket action assigned to the clinical team with {reference_number} in the description, and tell the patient a clinician will contact them.
  • Condition: _.lower(result_status) == "pending" → send the expected ready date instead.

5. Deliver the result

Purpose: Close the loop with a clear, dated message the patient can act on.

  • Add a Send message action for the “ready” branch: “Your results for {reference_number} are ready: {result_data}. Please discuss any questions with your doctor.”

6. Test the flow

Purpose: Confirm sensitive results are never delivered without review.

  • Test with a result flagged “needs review” and confirm the chat is handed to the clinical team instead of the result being sent directly.
  • Test with an incorrect date of birth and confirm the flow declines to release the result.
  • Test with a reference number that doesn’t exist and confirm a graceful “we can’t find that reference” message.