Setup
How to set up custom actions for pharmacy vaccine appoint…
How to set up custom actions for pharmacy vaccine appointment booking — answered from your own docs. How Pharmacies & Drugstores teams use Chatref (custom actio
Setting up a custom action turns your Chatref agent into a vaccine appointment desk on your website. You configure the fields you need – patient name, date of birth, preferred slot, vaccine type – and the agent collects them in conversation, then hands the booking details to your staff or pushes them to your pharmacy system. No more missed calls.
Before you start
You need a live agent in your Chatref account. If you haven’t set one up yet, create an agent and train it on your pharmacy’s vaccine-related content: hours, walk-in vs appointment policies, vaccine brands, and any intake forms. A custom action works best when the agent already understands the context. This guide covers the booking flow only.
You’ll also need:
- A list of the fields your front desk uses to book a vaccine appointment: patient name, contact number, date of birth, preferred date and time, vaccine type, insurance plan (if relevant).
- A destination for the collected data. The two most common paths: a webhook that posts to your pharmacy management system, or an email escalation that creates a manual ticket for your team.
Step-by-step setup
-
Open the agent’s custom actions tab. From your Chatref dashboard, select the agent you want to add the booking action to, then go to Custom Actions.
-
Create a new action and name it clearly. Call it “Vaccine Appointment Booking” or something similar. The name appears in the chat when the agent confirms what it’s doing, so make it straightforward for your patients.
-
Define the input fields. These are the details the agent will ask the patient for. Add one field per piece of information your front desk needs. For a typical pharmacy, start with:
- Full name (text, required)
- Date of birth (text or date, required)
- Contact phone number (text, required)
- Preferred date and time window (text, required)
- Vaccine type (dropdown: “Flu shot”, “COVID booster”, “RSV”, “Shingles”, etc.)
- Insurance carrier and member ID (optional, but helpful)
Mark fields as required if you can’t proceed without them. The agent will prompt until it gets a complete set, then move to confirmation.
-
Choose the action trigger. “Collect and hand off” is the simplest option – the agent captures the request and pushes it to your shared inbox for your team to process. If your pharmacy uses an appointment system that accepts webhooks, select “Send to webhook”, paste the endpoint URL, and map the fields exactly as the system expects. Chatref sends a JSON payload so your backend can create a booking ticket. You do not need to write code inside Chatref; the mapping is done with a simple field-to-key pairing.
-
Write the confirmation message. After the agent gathers everything, it should tell the patient what happens next. For a phone-free workflow, use something like: “I’ve submitted your request. Your pharmacy will call you back within one hour to confirm. You can also call us at 555-123-4567.” If you’re using a webhook, the message can say the appointment is pending and the system will send a confirmation. Keep it short and honest.
-
Save the action, then publish the agent so visitors on your website see the updated experience. The custom action won’t appear until the latest version of your agent is live.
Check it works
Go to the Playground tab in the same agent. Start a new conversation and act like a patient: say “I need to book a COVID booster,” or “I want to schedule a flu shot for this afternoon.” The agent should recognize the intent and steer the conversation through the fields you defined. Look for:
- The agent asks for each required field one at a time.
- Dropdowns appear when it expects a choice (vaccine type).
- The agent confirms the summary before submitting. If it skips a required field, go back to the custom action and ensure that field is marked required.
- After the confirmation, check your shared inbox or webhook receiver to see that the data arrived correctly. If it’s missing, verify the field mapping in the trigger settings.
Test a few edge cases: a patient who wants two different vaccines, someone who doesn’t know their insurance member ID, and a patient who changes their mind mid-flow. The agent should handle interruptions gracefully and hand off when the action is completed.
Common issues
Agent doesn’t start the action when a patient says “I want a vaccine appointment.” This usually means the phrase isn’t close enough to the way you trained the agent. Add explicit examples in the agent’s training material: “I need a flu shot,” “I want to book a COVID booster,” “Schedule a shingles vaccine.” The agent learns from the content you provide, so include those variations in your uploaded docs or agent description.
Webhook posts fail or send wrong data. Check that the field names in the custom action match the keys your system expects. If your pharmacy management system expects patient_name but you mapped the field as fullName, the data goes to the wrong place. The Playground lets you inspect the webhook payload after a test; use it to pinpoint the mismatch.
Patients abandon halfway through. Reduce friction: keep required fields to the bare minimum (name, phone, preferred time, vaccine type) and make optional fields clear. The confirmation message should also tell patients how long they’ll wait for a callback, which builds trust.
The action works in Playground but not on the live site. The widget might be cached. Publish the agent again and force a refresh of your website. If the widget shows an older conversation, start a new chat session.
FAQ
What causes pharmacy vaccine appointment booking problems for Pharmacies & Drugstores?
Vaccine appointments bottleneck on the phone because front-desk staff are checking in patients, handling prescriptions, and answering walk-in questions all at once. Patients call repeatedly, leave voicemails, or give up and go elsewhere. Seasonal surges—flu in autumn, back-to-school shots, new vaccine rollouts—turn a steady load into chaos. Without a way to capture booking details outside of phone hours, requests sit unread until morning, and the backlog compounds. Many pharmacies also lack a digital intake that sends structured data directly into their scheduling system, so even an online form often requires a staff member to rekey everything.
How do I improve pharmacy vaccine appointment booking for Pharmacies & Drugstores?
Start by putting a capture point on your website that works 24/7. A Chatref custom action collects the essential booking fields in a chat, then hands them off to your team or pushes them to your scheduling software, so you never miss a request. Combine it with an AI agent trained on your vaccine policies; the agent answers availability questions, explains which vaccines you stock, and walks patients through the intake without tying up the phone. For further ways that grounded AI agents fit into a pharmacy front desk, see Pharmacies & Drugstores.
Related guides
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.