Contents
Configure Appointment Reminder and On Route Text Messages in DRS
Updated
by Andrew Dotto
This guide explains how to configure Appointment Reminder and On Route Text Messaging in DRS. It covers how to create the Job Views that identify which jobs should receive each message, configure the Smart Automation services that process those jobs, and apply the correct message templates. Appointment Reminder allows you to notify customers a configurable number of days before their scheduled appointment, while On Route messaging can be used to contact customers once an operative has accepted work scheduled for that day.
Appointment Reminder
The Appointment Reminder service allows DRS to automatically identify upcoming planned appointments and create reminder messages for the relevant customers. The timing of each reminder is controlled by the Job View used by the service, allowing you to define how many days in advance customers should be contacted. This section explains how to create the Smart Automation service, configure its schedule, build the supporting Job View, and apply the correct Text Message template.
Create the service
Open Configuration, expand Services, and select Smart Automation. Select Add to create a new service, then enter a clear and appropriate name that reflects the purpose of the reminder workflow.
Once the service has been created, open Scheduling and configure it to run once each day at 18:00, Sunday through Saturday. This provides a consistent daily processing point for upcoming appointments. Set Enabled to Yes so the service can run automatically, then save your changes.

Set the operating window
The Scheduling pane allows you to control how frequently each Smart Automation service runs and the period during which it is active.
For Appointment Reminder messaging, it is usually sufficient to schedule the service to run once per day at an appropriate time, allowing DRS to identify upcoming appointments and create the required reminder messages in a single daily run.
For On Route messaging, the service should run more frequently so that newly eligible jobs are picked up promptly. A frequency of every 5 minutes, scheduled across your normal business hours, is recommended to provide timely customer updates without placing unnecessary load on the system.

Add the text message task
In Service tasks, select Add.

Enter an appropriate task name and select Create text message as the task type.

Select Appt Reminder Template and set Simulation mode to No.
Build the Appointment Reminder view
From the task, select Edit views. Keep the view type set to Job and select Add.
Name and filter the view
Name the view using a convention which helps you remember what the data returned is. Set enough columns to help you understand the data which is being returned. Ensure you add a column which can help you identify the Apppointment Date.

To sure we are targeting Jobs in the future, set a filter on your Assignment date which targets the appropriate forward looking window. Also filter for jobs which have a Status of Planned, and set your Appointment Reminder Tracking Custom Data to exclude tasks which have already been processed.
Choose a different reminder lead time
The relative expression uses the pattern d+x, where x is the number of days after the service run date. For example, d+1 selects tomorrow’s jobs and d+7 selects jobs one week ahead. Create separate views with the required d+x values when reminders need to be staggered, and ensure each task selects the view for its intended interval. Keep Status set to Planned in every reminder view.
Select the completed view
Close the view windows and return to the task. Set Data selection to your configured view.

Confirm your reminder template has been selected.

Within the Custom Data Update, select the Custom Data to set as the value you created to track Appointment Reminders. When this service runs, the Jobs will be marked for Appointment Reminder Sent, excluding them from the next pass of this service.
Apply and verify
Click Apply, and check your settings have Saved successfully.

This service will now run automatically according to the schedule you have configured. On each run, DRS will identify the jobs that meet the criteria in the selected Job View, create the appropriate Text Message using your configured template, and pass it into the messaging process for delivery to the customer.
On Route messaging
On Route messaging is designed to keep customers informed when an operative confirms that they are travelling to their scheduled task. Once the relevant job meets the configured criteria, DRS can automatically create and send an On Route text message, providing the customer with a timely update that their operative is on the way.
Create the service
As with Appointment Confirmation, create the required task from the Smart Automation service. Open the service you want to configure, navigate to Service tasks, and select Add to create a new task.

Build the On Route Task
In Service tasks, select Add. Enter Create text message as the task name and select Create text message as the task type. Select OnRoute Message as the template, set Simulation mode to No.
Create the Job view
Select Edit views, keep the view type set to Job, and select Add. Enter an appropriate name for the view.

Set Assignment Start to d so the view selects jobs scheduled for today. Add a Status filter that reflects the point in your workflow at which an operative is considered to be On Route, then add On Route <> Sent to exclude jobs where the On Route message has already been issued.
Complete and apply the task
Confirm that Data Selection is set to the Job View you created and that Message Template is set to the correct On Route Text Message template.

Set Custom Data to set to the tracking field you configured for On Route messaging. Update this field to Sent when the message is created. This ensures that once a job has been processed, it no longer meets the criteria for future service runs, preventing the customer from receiving duplicate On Route messages.
Once complete, click Apply.
Confirm the task on the service
Ensure that your service is configured as you expect once saving.

Final verification
Before enabling the service, verify the Job View and Message Template together to make sure the correct customers will receive the correct communication. A correctly configured view paired with the wrong template can still result in the wrong message being sent, while the correct template paired with the wrong view can target the wrong jobs.
Use the table below as a final configuration check before enabling the service for live operation.
Appointment Reminder | On Route | |
Service | Create Text Message | Create Text Message |
Schedule | Once Daily as required | Every 5 minutes, within business hours |
Enabled | Yes | Yes |
Data selection | Appointment Reminder View | On Route View |
Status filter | Planned | Accepted |
Date filter | Assigned period start = d+2 | Assigned period start = d |
Template | Appointment Reminder Text Message Template | On Route Text Message Template |
Simulation mode | No | No |
Custom data to set | Appointment Reminder Message Sent | On Route Message Sent |
Testing before Go Live
Before enabling the service for wider use, test the full messaging workflow to confirm that the correct jobs are being selected, the correct message is being created, and the delivery service is processing queued messages as expected. Use controlled test jobs and recipient numbers where possible, and review the first scheduled runs to check for unexpected results or failed processing.
If messages are not sent
If an expected message is not sent, work through the configuration in sequence. Confirm that the Smart Automation service is enabled and running within its configured schedule, that the target job meets every filter in the selected Job View, and that the correct Message Template has been applied. Also check that the customer has a valid mobile number, that Simulation mode is set correctly, and that the Send Pending Text Message system service is enabled and able to process queued messages.