---
title: "Referrals that need a person held in a Zendesk intake ticket | FlowRunner flow"
description: "Files complete faxed referrals in Healthie on its own. Anything missing or unsure opens a Zendesk intake ticket, and solving the ticket files the referral as the coordinator's note says."
url: https://flowrunner.ai/flows/zendesk-referral-held-in-an-intake-ticket
date_published: 2026-11-30
date_modified: 2026-11-30T15:12:56-08:00
---

# Referrals that need a person held in a Zendesk intake ticket

Files complete faxed referrals in Healthie on its own. Anything missing or unsure opens a Zendesk intake ticket, and solving the ticket files the referral as the coordinator's note says.

## The prompt

When a fax comes in on our Documo line, read it. If it's a patient referral, check it against our must-haves and look for the patient in Healthie by name and date of birth. If the referral is complete and matches exactly one chart, file it on that chart and record the referral. If it's complete and no chart comes close, create the patient and file it there. Anything else needs a person: something missing, no birth date, a chart that looks like the same person but doesn't match exactly, or more than one match. For those, open an internal ticket in our Zendesk intake group with the fax attached, the patient's name and birth date, the referring office, what's missing and links to the charts that might be the patient. When the coordinator solves the ticket, read their note and file the referral on the chart they name, create a new patient, or leave it unfiled if they didn't accept it. If they solve it without saying which, reopen the ticket and ask.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

## The flow

Inside the loop: Until the ticket is solved

[Import this flow](https://flowrunner.ai/downloads/prompt-to-flow/zendesk-referral-held-in-an-intake-ticket.json)

-   [Zendesk](https://flowrunner.ai/integrations/zendesk)
-   [Documo](https://flowrunner.ai/integrations/documo)
-   [Healthie](https://flowrunner.ai/integrations/healthie)

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. [How importing works](https://docs.flowrunner.ai/manage/flows#importing-a-flow)

## What each step does

1.  New fax received Starts when Documo finishes receiving a fax, with the PDF already saved.
2.  Read the referral An AI agent reads the fax and decides whether it is a referral. If it is, it pulls out the patient's details, the referring office and the reason, and lists any of your must-haves the fax does not include.
3.  Find the patient's chart Searches Healthie by name and birth date, then by last name and by first name with the birth date, to catch a chart that looks like the same person.
4.  Person needed? A complete referral with one exact match goes straight to filing, and a complete one with no chart close to it gets a new patient. Anything missing, no birth date, a near match or two matches needs a person.
5.  Open the intake ticket Opens an internal ticket in your Zendesk intake group with the fax attached, the patient's name and birth date, the referring office, what is missing, and a link to each chart that might be the patient.
6.  Until the ticket is solved Checks the ticket every 15 minutes. Once it is solved, an AI agent reads the coordinator's note: file on a chart, new patient, or not accepted. A ticket solved without a clear answer is reopened with a note asking for one.
7.  File the referral on the chart Files a fresh copy of the fax on the chart, finds or adds the referring physician, records the referral, and notes on the ticket where it went. A referral the coordinator did not accept is left unfiled, with a note on the ticket.

## We can build this for you.

It's custom work, built around how you do things by our implementation team at Midnight Flow, in your own FlowRunner workspace.

-   Every referral read, checked for what is missing, approved by your team, and the patient texted to book
    
    Built and tested by our team. Runs on your FlowRunner plan.
    
    [Have us build this](https://midnightflow.ai/packages/clinic-referral-fax-intake?utm_source=flowrunner.ai&utm_medium=referral&utm_campaign=healthcare-intake&utm_content=flows.aside&utm_term=zendesk-referral-held-in-an-intake-ticket)

## Before you turn it on

This flow assumes every service in it, FlowRunner included, has signed a business associate agreement (BAA) with you. Its messages to your staff include the patient details they need to decide.

-   Enter your Documo and Healthie API keys, and your Zendesk subdomain, agent email and API token.
-   Add your Anthropic key in the flow setting Anthropic key, set Practice time zone, and change Referral must-haves to your own list.
-   Pick your intake group in Open the intake ticket and the provider new patients go to in Create the patient. Pick your receiving fax number in New fax received if the account has more than one.
-   Before solving a ticket, the coordinator adds an internal note that says File on chart and the chart ID, New patient, or Not accepted and why. The flow stops waiting on a ticket after 30 days and says so on the ticket.

[Everything FlowRunner does with Zendesk](https://flowrunner.ai/integrations/zendesk)

---
Markdown version of https://flowrunner.ai/flows/zendesk-referral-held-in-an-intake-ticket. Site index: https://flowrunner.ai/llms.txt
