$50 free credit for new accounts - ends in

Claim $50

Setup

How to set up ai agents for after hours appointment capture

How to set up ai agents for after hours appointment capture — answered from your own docs. How Veterinary Clinics teams use Chatref (ai agents, ai agents) to so

Chatref Team5 min read / Updated June 15, 2026

Setting up an AI agent for after-hours appointment capture means configuring a custom action that collects the right patient details and delivers them to your practice, so no call or message gets missed overnight or on weekends. Here is how to do it with Chatref’s AI agents and custom actions.

Before you start

You need a Chatref account with an AI agent already trained on your practice information – hours, services, appointment types, and standard booking steps. If you have not done that yet, start by adding your practice details to a new agent. This guide assumes your agent can answer basic appointment questions from your own content.

You will also need to know exactly what information you want to collect: pet/owner name, preferred date and time, reason for visit, contact phone, etc. Decide where the captured data should go – a shared email inbox, a webhook that pushes into your practice management software, or a Slack message.

Step-by-step setup

  1. Open your agent and add a custom action
    In the Chatref dashboard, go to the agent you want to use, navigate to the Custom actions section, and create a new action. Name it something clear like “After-hours appointment request”.

  2. Define the information to collect
    Add fields for each piece of data you need. For a veterinary clinic you might ask:

    • Owner full name
    • Pet name and species
    • Preferred date and time window
    • Reason for visit (wellness, illness, surgery follow-up, other)
    • Contact phone number
      You can mark required fields so the agent does not submit an incomplete form. Chatref handles the conversational back-and-forth – it asks only the missing pieces, so a patient could say “I need an appointment for my cat Mittens” and the agent will request the rest.
  3. Choose how the details are delivered
    Under Action type, select Webhook to POST the captured data to an endpoint (e.g., your veterinary practice management system’s API, Zapier, or Make). Alternatively, choose Email to send the appointment details to your front desk or on-call team. You supply the target URL or the email address.

  4. Set the trigger condition
    Configure the custom action to be offered when the intent matches “book appointment” or “schedule visit,” especially outside your business hours. You can also set the agent’s working hours in the agent settings so it uses this action only when the practice is closed, and directs patients to book during regular hours otherwise.

  5. Test the action
    Use the play ground or the live widget to send a message like “I need to bring my dog in tomorrow evening.” The agent should acknowledge the after-hours nature, offer to collect the details, then present the form fields one by one (or in a structured message, depending on your setup). After the patient submits, check that the data arrives at your chosen destination.

Check it works

Before relying on it, simulate a real after-hours scenario:

  • Set your agent’s hours to a window that does not include the current time.
  • Send a booking request from a test patient profile.
  • Verify the agent asks for every required field, handles partial replies gracefully, and confirms submission.
  • Check the delivery target (inbox, webhook logs) and confirm the payload contains all collected fields in a usable format.
  • If using a webhook, test edge cases like missing fields or very large text in the “reason” field.

Repeat the test from the embed on your site if you plan to use the widget there.

Common issues

  • The agent does not offer the custom action
    Make sure the trigger keywords or intent are aligned with what patients actually say. Try several phrasings (“book a vet visit,” “need an appointment for my cat,” “can I come in after work?”). The action should appear when the conversation steering matches the booking intent.

  • Patients drop off during the form
    Too many required fields can cause friction. Strip down to the absolute minimum – for a veterinary clinic, owner name, pet name, preferred day, and phone are often enough. You can always ask for more in your follow-up call.

  • Time zone mismatch
    The agent’s hours and the scheduled webhook delivery operate in UTC by default. If your practice is not UTC, adjust the agent’s timezone in settings and account for any offset in your webhook handler.

  • Data does not reach your system
    Check the webhook URL is accessible from the outside and returns a 2xx status. Use the test send feature in the action configuration. For email delivery, ensure the address is correct and not caught by spam filters.

  • Agent answers booking questions with a static knowledge base reply instead of the action
    This can happen if the patient’s query is too generic. In the agent’s instructions, tell it to prioritise the custom action over a simple text answer whenever a booking is requested. For example, add: “When a patient asks to schedule an appointment, always use the ‘After-hours appointment request’ action, especially outside business hours.”

FAQ

What causes after hours appointment capture problems for Veterinary Clinics?

Most issues come from relying solely on voicemail or a website form that goes unchecked overnight. Voicemail transcriptions can be inaccurate, and many patients will not leave a message if they cannot speak to someone. Other common causes: staff forgetting to follow up, incomplete contact details, time zone confusion, and the fact that a busy front desk might not get to the queue until late morning.

How do I improve after hours appointment capture for Veterinary Clinics?

Use an AI agent that can collect structured data right in the chat – not just leave a form. Ask for the fewest possible fields to reduce friction. Deliver captured requests to a shared inbox or a real-time notification channel (like Slack) so the on-call team sees them immediately. Always test the flow with common patient phrasings and time-of-day triggers to catch gaps before they cost you visits.

For more on how Chatref helps veterinary clinics handle scheduling and patient questions, see our guide for Veterinary Clinics.

Put this into practice

Chatref answers your customers from your own content, day and night. Add it to your site and go live in minutes – free to start.

Get started