Chatbot systems have greatly evolved the customer service space with rapid, personalized responses that can save businesses hundreds of thousands of dollars. Moving into 2019 these bots are looking for ways to break the mold with innovations in automation, as well as new integrations with other powerful software tools.
OnSched provides a complete Consumer, and Setup, REST API to build online booking right into your chatbots responses and workflows. Capture default, generic, and personalized fields specific to each of your clients, then transition the contact point to a meeting or demo.
Connecting to the OnSched API and booking appointments directly into your clients calendars is a lot easier than you may think. In this article I will describe and explain the most important pieces to building your first booking flow in order to make this a project that can be easily managed by any sized team.
To begin using OnSched the first step is to create your company profile where you can set company-wide global settings, which are used across all profiles. Such as lead -time prior to bookings, how far into the future Vendors may be booked, and a default service to eliminate extra steps in the booking flow. Your vendors will be able to manage these settings on their own should they choose to, and otherwise will assume the global settings that you set.
Once you have created your OnSched profile you will receive your ClientID and Secret in order to begin. Before calling the OnSched API you must get a token using OAuth2.0 authentication. An example of this is done in the following code snippet.
Once you have a token, add it to the header in order to authenticate, then make a GET call for all locations to return a list of Vendors who can be booked. Now the Chat Operator knows which Vendor to book the meeting with. An example of this is done in the following code snippet.
Within your application the Chat Operator now has a list of all Vendor’s that are enabled for online booking, and may select one to initiate the booking flow.
The first step of the booking flow is to collect information about the lead such as name, email, phone number, and any additional fields your Vendor wishes to collect. In order to find the fields that your Vendor wishes to collect, call the OnSched API and use the location ID to return a list of any custom questions that the Vendor has created.
Once you have gathered all applicable information for the lead in order to book the appointment, you can start by creating this lead within the Vendor’s profile. This step will create a customerID, which is required in order to POST the appointment. To create a customer in the Vendor’s profile, call the API to POST a new customer.
Let us show you just how simple online bookings can be.