Start freePortal
Docs

How to Set Up an After-Hours Emergency Dispatch Line with an AI Phone Agent

Build an after-hours emergency dispatch line on echowin from the Plumbing & HVAC template: safety steps, on-call texts, transfers and a post-call workflow.

To set up an after-hours emergency dispatch line on echowin, start from the Carlos - Plumbing & HVAC template in the template gallery. Its instructions list which calls count as emergencies and tell the voice agent to give the caller the safety steps first, text your on-call technician during the call, and transfer the caller to your dispatch number when they want a person. Everything else gets booked into your calendar. You then add one workflow that runs after each phone call, picks out the emergencies and sends them to your job system and your office, and you test each kind of call before you connect a number.

This guide is for plumbing, heating and cooling companies and other field service operators, as of November 2026.

What you need

  • An echowin account. Building and testing an agent is free to start (see pricing).
  • Your own list of emergencies, your service area by zip code, your hours and your prices.
  • The mobile number of whoever is on call, and the number of your dispatch line.
  • A Google Calendar or Outlook Calendar for service visits.
  • For the workflow: a web address from your job system that accepts incoming data (many job systems and Zapier can give you one), and the email address of your office.

If you’re an agency building this for a client, build it inside the client’s own account: open it with Switch Teams on echo.win, then follow the same steps.

Step 1: Create the agent from the template

  1. Connect your calendar first at echo.win/portal/team/calendar, because the template setup page only offers a calendar that is already connected.
  2. Open Templates at echo.win/portal/templates, click the Other tab (or All) and click Carlos - Plumbing & HVAC. Then click Get this agent.
  3. On Configure Your Agent, enter the Agent Name callers will hear, your Time Zone and your Calendar Integration.
  4. Under Additional Configuration, fill in two tools. In the Send SMS settings, name the recipient “On-Call Technician” and enter their mobile number. In the Transfer Call settings, name the target “Dispatch” and enter your dispatch number. Both start out with your own name, and the instructions refer to these two names. You can also set them later on the Instructions tab, under Tools.
  5. Click Create Agent. echowin puts your voice agent’s name and your team’s name into the instructions in place of the template’s sample names, and opens the Instructions tab.

Step 2: Write your emergency rules in plain English

The template keeps its emergency rules in the Edge Cases section of the instructions. As written, they say:

- **Emergencies**: active flooding or burst pipe, sewage backup, no heat below 40°F
  outside, no AC above 95°F outside with elderly, infants or medical needs in
  the home, and gas smells.
- **Flooding or burst pipe**: tell them to shut off the main water valve (where the
  water line enters the house, or at the street meter) and to stay away from
  standing water near outlets or appliances.
- **Gas smell or carbon monoxide alarm**: tell them to leave the home now, not to
  use switches, phones or flames inside, and to call 911 or the gas company's
  emergency line from outside. Then take their details.
- **Sewage backup**: stop using water and flushing toilets.

Change the list to match the calls you treat as emergencies, with a safety step for each. Keep the gas and carbon monoxide line, so those callers are sent outside and to 911 or the gas company first.

Then make these changes and click Save:

  1. In Call Flow, the agent tells emergency callers that a technician will call back within 15 minutes, and it gives standard visits a 2-hour arrival window. Change both to what your team really does.
  2. In Business Info, replace the sample hours, service area zip codes, services and prices with yours. Then delete the template note at the top of that section, which says the section is sample data.

Step 3: Check the tools the voice agent uses during the call

On the Instructions tab, open the Tools list and click each tool:

  • Send SMS texts the on-call technician the caller’s name, phone number, address and problem in one line, while the caller is still on the phone (Send SMS docs).
  • Transfer Call connects emergency callers who want a person, complaints and commercial accounts to Dispatch.
  • Google Scheduling or Outlook Scheduling books appointments into your calendar, including Google and Outlook calendars, and offers only open times. It books 60-minute service visits, at least 2 hours ahead and up to 14 days out. Check the Calendar, Availability Slot, Duration, Minimum Lead Time and Maximum Lead Time. It can’t cancel or reschedule a visit.
  • Send Text Message To Caller texts the caller their visit confirmation or the safety tips, after asking them first.

Step 4: Send emergencies to your job system and office after the call

A workflow is a set of steps echowin runs on its own. The Post-Call trigger makes it run after every phone call ends. A decision step reads the conversation and picks a path, and a webhook sends the call’s details to a web address your job system gives you.

  1. Open the agent’s Workflows tab and click Create Workflow. Enter a Workflow Name, such as “Send emergencies to dispatch”, and click Next.
  2. Under Triggers, choose Post-Call (“Run after phone calls end”), then click Create Workflow.
  3. From Add Nodes, drag in a Decision step. Set the Title to “Is this an emergency?”, and set the AI Instruction to: “Choose Emergency if the caller reported flooding, a burst pipe, a sewage backup, a gas smell, or no heat or cooling under our emergency rules. Otherwise choose Routine.” Rename the Outputs to “Emergency” and “Routine”.
  4. Drag in a Tools step, choose Call API (Webhooks) and connect it to the Emergency output. Paste your job system’s address into Webhook URL, set HTTP Method to POST, and write the Request Body:
{
  "callId": "$callId",
  "phone": "$callerNumber",
  "name": "$callerFullName",
  "address": "$serviceAddressWithZip",
  "problem": "$problemInOneLine",
  "safetyStepGiven": "$safetyStepGiven"
}

echowin fills in $callId and $callerNumber itself. It fills in the other values from the conversation, based on their names and the step’s Title, so give the step a clear title, such as “Create an emergency job”.

  1. Drag in another Tools step, choose Send Email, enter your office’s Email Address and connect it to the Emergency output too. Leave Routine unconnected, because those visits are already on your calendar. Click Save.

Decision steps are explained in more detail in the decision node docs. A workflow can’t transfer a call, so live transfers stay with the Transfer Call tool in Step 3.

Step 5: Test each kind of call

Use Phone Call on the Testing tab: save the number you’ll call from, then dial the test number. Transfers, texts to the caller and the workflow only happen on phone calls, not in the browser Voice test.

  1. Burst pipe. Say water is pouring into your kitchen. Check that the agent gives the shut-off step first, takes your details, texts the technician, and gives your callback promise. After you hang up, check that your job system and the office inbox each received the job.
  2. Emergency caller who wants a person. Ask for someone right now. Check that the call rings your dispatch number.
  3. Gas smell. Check that the agent tells you to leave, not to use switches, phones or flames, and to call 911 or the gas company from outside.
  4. Routine visit. Ask for an AC tune-up next week. Check that it books a time and that the workflow sends nothing.
  5. Outside your area. Give a zip code you don’t serve.

These tests create real records: calendar events, texts to the technician and jobs in your job system. Delete the test events and jobs afterwards, so they don’t reach your crew or take real callers’ times.

Step 6: Connect a phone number

Open the Deployment tab, choose Phone and click Connect a number. A live number costs $10 a month, plus usage (see pricing). To use it only after hours, set your main line to forward to it when the office closes, using your phone provider’s call forwarding.

Troubleshooting

  • The technician gets no text. Open Send SMS, check the technician’s full mobile number, and save the tool.
  • The workflow never runs. It only runs after phone calls. Check that it uses the Post-Call trigger and that you tested with Phone Call.
  • Routine calls reach your job system. Make the decision step’s AI Instruction stricter and list what is not an emergency.
  • The Templates page shows a 404 error, or Phone Call is missing. Neither is available on an agency’s own white-label web address. Use echo.win.

FAQ

How does the voice agent decide which calls are emergencies?

It follows the emergency rules you write in its instructions. When a call matches them, it gives the safety step, texts the technician and offers Dispatch if the caller wants a person. The workflow’s decision step uses its own AI Instruction, so keep both lists the same.

Can I add a second on-call technician?

Yes. Send SMS takes several recipients, each with a name, and the agent picks one by name or texts them all. Say in the instructions who gets which calls.

Does the workflow have to use a webhook?

No. The email step works on its own, or you can use a Zapier step instead. See the tool node docs for every step a workflow can run.

Build your after-hours dispatch line free at echo.win.