Help Center
How to Confirm Appointments via Link

How to Confirm Appointments via Link

Send emails about upcoming appointments easily with the JetAppointment plugin for WordPress. Adjust the confirmation/cancellation system via the email links.

Before you start, check the tutorial requirements:

If you want to send an email notification about the appointment details, and let the users confirm or cancel the upcoming appointment, continue reading to find out about the whole process.

In the aftermath, you can get a similar result.

confirm service appointment email
Things to know

This guide is based on a Medcenter dynamic template. After its installation, the services and provider custom post types are already configured.

Activate Confirmation URLs

Navigate to WordPress Dashboard > Appointments > Settings, and open the Advanced tab.

Here, activate the Generate Confirmation URLs switcher to create and store the unique token for each appointment. This token can be attached to the needed appointment without being tied to the particular user.

As soon as the user books an appointment, a token and confirmation/cancellation URLs will be stored in the appointment metadata.

Fill in the Confirmed Message and Cancelled Message fields to show a user the given message once the appointment has been confirmed or cancelled.

generate confirmation urls settings

Set Appointment Workflows

Things to know

Except for regular appointments, you can integrate Zoom calls with appointments and receive Gmail notifications by using JetAppointment..

We proceed to Appointment Workflows by following the similarly named tab in the same settings dashboard.

Hit the “Add New Workflow” button. As the two dropdown fields, Event and Start, appear, set the desired values.

Now we leave the default “Appointment Created” Event and “Immediately” Start to begin the event directly once the appointment has been booked.

Press the “New Action” button to regulate the precise workflow action.

jetappointment active workflow new action button

Complete the Action name, set the “Send Email” Action, and head to the Email to field. Click the “Dynamic Tags” button next to the field bar.

dynamic tags button in the appointment confirmation action

Find the “Provider Meta Field” macro and press on it to open additional settings.

email to dynamic tags options

In the Meta Field to Get field, paste the slug of the field where the provider email is stored. 

Press the “Apply” button to save the custom macro.

meta field to get field completed

Determine the Email Subject, Sent from email, and Sent from name fields.

Hit the “Dynamic Tags” button next to the Email Message field.

email message dynamic tags button in the appointment confirmation action

Here, find the “Cancel Appointment URL” and “Confirm Appointment URL” macros and click on them to add to the Email message.

confirm and cancel appointments macros

The ultimate result should look similar to the following picture. We have customized a message not only with a macro but also with an additional text.

appointment confirmation email settings

Optionally, you can customize the look of your message by adding HTML markup and using inline styles within this code.

For example, we paste the following piece of code in the Email Message to make our links included in the buttons:

<a style="border-radius:5px; padding: 7px 15px;background:#f00;text-decoration: none;color:#fff;margin-bottom: 10px;display: inline-block;" href="%confirm_url%">Confirm</a></br>

<a style="border-radius:5px; padding: 7px 15px;background:#f00;text-decoration: none;color:#fff;margin-bottom: 10px;display: inline-block;"  href="%cancel_url%">Cancel</a>
customized appointment confirmation email settings

Confirmation Workflow

Furthermore, you can set other workflow actions if desired. 

Let’s assume you want to send the email to the user who booked an appointment right after they pressed the “Submit” button.

Fill in the Action name field, leave the “Send Email” Action and select the “Appointment User Email” macro as the Email to option.

user notification action email to field

Complete the rest of the fields with the needed information.

user notification action

Another workflow we set is the email sent to the client when the provider has confirmed the appointment.

Push the “New Workflow Item” button to build a new workflow.

This time set the “Appointment Status Changed” Event and “Completed” New Status. Leave the “Immediately” option as the Start and click on the “New Action” button.

completed appointment status workflow

Set the Action name and leave the “Send Email” Action. Hit the “Dynamic Tags” button by the side of the Email to field.

Press the “Appointment User Email” option to send an email to the user who booked an appointment.

service approval email to appointment user email

Customize all the other information as necessary.

service approval action

Let’s also email the doctor with the appointment date and time.

You can specify the email field as part of the “Provider Meta Field” macro in the Email to field.

Set Email subject. For instance, it can be completed with the “Service Title” macro.

Complete the following Sent from email and Sent from name fields with the desired values, and move to the Email message field.

Here, we paste the %appointment_start|format_date(F j, Y g:i)% macro to show the appointment date in the email, define the Date format and paste it into the field.

doctor notification action

Cancellation Workflow

Things to know

ou can set a similar user notification for the case when the appointment has been cancelled. Change the New Status to “Cancelled” and repeat the previous steps..

cancelled appointment status workflow

Check Emails

Once the appointment has been booked, the provider gets an email with confirmation and cancellation links. In our case, it’s the doctor’s email.

The doctor can confirm or cancel the upcoming meeting.

confirm appointment email

Or, if you have used inline stylization, the email can look like this:

customized confirm service appointment email

At the same time, the client gets an email to notify them they have to wait for appointment approval.

service appointment notification

If the doctor approves the appointment, the client receives a corresponding email.

appointment is approved email

After the confirmation, the doctor receives an email as well.

provider time notification email

If they cancel the booking, the client gets a matching email.

cancelled appointment email

Review Appointment Status

Go to WordPress Dashboard > Appointments to check the appointment status.

The first case is when an appointment has just been booked. Its status is now “Pending.”

appointment pending

Once the provider confirms the appointment by following the email confirmation link, the status changes to “Completed.”

appointment completed

But if the provider cancels the appointment, the status will be changed to “Canceled.”

appointment cancelled

If you have an “Admin” user role you can change the status anytime in the same dashboard menu.

That’s it; now you know how to adjust the email sending to the provider and client of the needed service using JetAppointment features.

Was this article helpful?
YesNo

Need help?

Ask Facebook community

Get answers from 22K Crocoblock Community experts from all over the world.

Start a live chat

Ask question to support agent and share its details via chat messages.