Plug Sample #3: Zoho bookings integration plug for chatbots built with codeless bot builder

Plug Sample #3: Zoho bookings integration plug for chatbots built with codeless bot builder

Appointment scheduling is an essential process for any business, and we have Zoho Bookings to do it hassle-free. You can further automate the process using AI-powered chatbots, which can save a lot of time and act as an excellent tool to increase engagement with your website visitors. You can build such chatbots without writing a single line of code using our Codeless bot builder that has a drag-and-drop user interface. However, you can make your no-code bot unleash its full potential using Plugs.
 
Plugs in the Codeless bot platform help you create customized actions and third-party integrations by writing minimal code. Let's learn how to add a Zoho bookings plug for scheduling appointments.

What can this plug incorporate? 
The following plug can help you to incorporate an appointment scheduling option using Zoho bookings into your existing codeless bot flow.   
How to Create this Plugs?
  • In your SalesIQ Dashboard, navigate to Settings > Developers > Plugs > Click on Add.
  • Provide your Plug a name, description, select the Platform as SalesIQ Scripts , and click on Create Plug
  • Click on Parameters , provide the following:
    • Input Parameter 1 : name | Data Type  : String
    • Input Parameter 2 : email | Data Type  : Email
    • Input Parameter 3 : phone | Data Type  : Phone
    • Input Parameter 4 : datetime | Data Type  : Date and Time
    • Output Parameters : bookingid | Data Type : String
Note : To know how to fetch the operator's available slot, click here.


Create a Connection with Zoho bookings. 
  • Click on Connection at the left bottom. You will be redirected to the connection page.
  • Click on Create connection at the top right corner. Under Default connection, select Zoho OAuth

  • Then, give your connection a name , connection link name and choose required scopes.

  • Click on Create And Connect. Upon successful authentication,  Zoho SalesIQ and Zoho Bookings will be connected. Note : The Connection Link Name will be used in scripts to invoke URL tasks.
  • Copy, paste the below code and make the required changes. 
  1. response = Map();
  2. name = "";
  3. phone = "";
  4. email = "";
  5. datetime = "";
  6. //Change your service_id and staff_id
  7. service_id = "4302354000000026055";
  8. staff_id = "4302354000000026017";
  9. name = session.get("name").get("value");
  10. email = session.get("email").get("value");
  11. phone_number = session.get("phone").get("value");
  12. phoneList = phone.toList(" ");
  13. phone = phoneList.get(1);
  14. datetime = session.get("datetime").get("value").get("date_time");
  15. //Changing the date and time format
  16. parsedDate = datetime.toDateTime();
  17. dateAndTimesList = datetime.toList("T");
  18. parsedDateList = parsedDate.toString().toList(" ");
  19. changed_format_datetime = parsedDateList.get(0) + " " + dateAndTimesList.get(1) + ":00";
  20. //create bookings API
  21. customerDetails = Map();
  22. customerDetails.put("name",name);
  23. customerDetails.put("email",email);
  24. customerDetails.put("phone_number",phone);
  25. // "zohobookings" - connection name
  26. create_booking = zoho.bookings.createAppointment(service_id,changed_format_datetime,customerDetails,staff_id,"Asia/Calcutta",true,"zohobookings");
  27. bookingid = create_booking.get("response").get("returnvalue").get("booking_id");
  28. response = Map();
  29. response.put("bookingid",bookingid);
  30. return response;
  • Then, click Save , preview the plug and Publish it.
How to incorporate Plugs in Codeless bot?
  • Navigate to Settings > Bot > Add, provide the necessary information and select Codeless Bot as bot platform or open an existing bot.
  • Select the Plugs under Action Block and select the required Plug (Only published plugs will be listed here)
  • Provide the Plug inputs and outputs.
  • In this case, name, email, phone, date & time are stored in bot context and used as Plug inputs
  • The plug executes and returns the booking ID as output which is stored in bot context (booking.id) for displaying it to the visitors.
  • Click Save


Head's up:
  • If you have multiple services and staff, create similar plugs for each service and staff/operator and then associate them respectively in the codeless bot. 
  • For example, say you provide a service called Depression Therapy, Motivational Therapy and you have two staff for each therapy. 
  • Create plugs for each service id and staff id, and add them in the bots flow. 
    • Plug 1 - (Depression Therapy, Staff 1)
    • Plug 2 - (Depression Therapy, Staff 2)
    • Plug 3 - (Motivational Therapy, Staff 1)
    • Plug 4 - (Motivational Therapy, Staff 2)
  • Initially, display the services you provide to the visitors (In this case, depression and motivational therapy) using Button blocks.
  • Once the visitors select the service, then provide the staff available (Staff 1 and 2) and then add the respective plug in the bot' flow to schedule bookings.   
Related Links:
To know more about the features of Zobot, kindly visit our Resources Section

Regards, 
Sasidar Thandapani


    Access your files securely from anywhere

          Zoho Developer Community




                                    Zoho Desk Resources

                                    • Desk Community Learning Series


                                    • Digest


                                    • Functions


                                    • Meetups


                                    • Kbase


                                    • Resources


                                    • Glossary


                                    • Desk Marketplace


                                    • MVP Corner


                                    • Word of the Day



                                        Zoho Marketing Automation


                                                Manage your brands on social media



                                                      Zoho TeamInbox Resources

                                                        Zoho DataPrep Resources



                                                          Zoho CRM Plus Resources

                                                            Zoho Books Resources


                                                              Zoho Subscriptions Resources

                                                                Zoho Projects Resources


                                                                  Zoho Sprints Resources


                                                                    Qntrl Resources


                                                                      Zoho Creator Resources



                                                                          Zoho Campaigns Resources


                                                                            Zoho CRM Resources

                                                                            • CRM Community Learning Series

                                                                              CRM Community Learning Series


                                                                            • Kaizen

                                                                              Kaizen

                                                                            • Functions

                                                                              Functions

                                                                            • Meetups

                                                                              Meetups

                                                                            • Kbase

                                                                              Kbase

                                                                            • Resources

                                                                              Resources

                                                                            • Digest

                                                                              Digest

                                                                            • CRM Marketplace

                                                                              CRM Marketplace

                                                                            • MVP Corner

                                                                              MVP Corner





                                                                                Design. Discuss. Deliver.

                                                                                Create visually engaging stories with Zoho Show.

                                                                                Get Started Now


                                                                                  Zoho Show Resources


                                                                                    Zoho Writer Writer

                                                                                    Get Started. Write Away!

                                                                                    Writer is a powerful online word processor, designed for collaborative work.

                                                                                      Zoho CRM コンテンツ






                                                                                        Nederlandse Hulpbronnen


                                                                                            ご検討中の方





                                                                                                  • Recent Topics

                                                                                                  • Getting email status through api

                                                                                                    Refer to code below for getitng status of mail sent through CRM any modules. You can get the subject as a key in each response, so if you want to filter a specific email you just put an if condition for that. Note that the status will be given as a JSON
                                                                                                  • Présentation d'une nouvelle fonctionnalité de webinar à la demande

                                                                                                    De nos jours, les gens s'attendent à un accès instantané aux informations et aux ressources, qu'il s'agisse de divertissement en continu ou d'apprentissage en ligne. Conscients de cette évolution, nous sommes ravis de vous présenter une nouvelle fonctionnalité
                                                                                                  • An accurate email totals report

                                                                                                    DOes anyone know how to create an email totals report that actually works? I am running the outlook integration and if I count the actual total number of emails that I sent last month, it is ten times higher than what zoho reports.
                                                                                                  • Settings - Time Display 12-hour vs 24-hour

                                                                                                    Hi All This is probably a question for developers as it only seems to be an issued on applications published from Developer account to client accounts. Usually a client would update how they want to view their time (12-hour vs 24-hour) in the Settings
                                                                                                  • AMP HTML in Email Templates on Zoho CRM?

                                                                                                    Hello Team! Is it possible to add AMP HTML features to the email tempalte in Zoho CRM? Im using an external service to create tempaltes and they provide me with AMP HTML features, or dynamic HTML modules. But when I try to add them to the Email template
                                                                                                  • Error : Bin Locations Provided are not valid

                                                                                                    1. We just moved our data from the US to Indian Data Center 2. Now, in one of my organisations, I am unable to save invoices or purchase bills for items and it shows an error 3. Irony is, we dont' even use Zoho Inventory. Operations are completely on
                                                                                                  • [FREE LIVE WEBINAR] Maximize the impact of your marketing campaigns using a centralized Brand Studio

                                                                                                    Hey everyone, We're introducing a free live webinar on Zoho Marketing Plus entitled Maximize the impact of your marketing campaigns using a centralized Brand Studio. The main agenda of the webinar is to give you a complete overview of how Zoho Marketing
                                                                                                  • Trouble Creating Basic Chart for Accounts - past 6 months

                                                                                                    We run a sports performance gym, and I want to create a chart to track member growth, by month, over the last 6 months or so. We group members under the Accounts module (e.g. a family of 4 contacts has 1 billing account). Accounts are termed "Active"
                                                                                                  • Possible to pause/control the data refresh schedule for data visualisation triggered from custom button?

                                                                                                    In a module record view, I have created a custom button action to show a data table view from Zoho Analytics, using https://help.zoho.com/portal/en/kb/crm/customize-crm-account/custom-links-and-buttons/articles/custom-buttons. I noticed that the view
                                                                                                  • Sorting a list of record acquired from the zoho.crm.searchRecords function.

                                                                                                    This is something for which I'm trying to figure out a straightforward way to do. The searchRecords does a great job fetching me the records that I want. However, in some cases, where it returns multiple records, I want it to sort the returned list by date of creation of that record, so that when I do records.get(0), I get the most recent record.  As an example, here's my sample pseudo code: records = zoho.crm.searchRecords("Clients", "Office_Number:equals:123456"); Now the "records" list above contains
                                                                                                  • Creating cadences Unable to save

                                                                                                    Hi, I'm creating a cadence for sales based on the leads module I have email templates in a folder "sales Cadence emails" when I add follow up 1 I select the email address of the user the cadence is for but it won't save....why not? Moderation Update (2nd
                                                                                                  • Tab order for custom phone fields.

                                                                                                    Our Lead records utilize multiple custom phone fields, appearing in multiple sections. The tab order has been configured from top to bottom for each section. When users create a new record, or edit one in a way that makes a custom phone field appear for
                                                                                                  • Sales IQ needs to capture both first and last names

                                                                                                    Sales IQ chat only has one field for name. When this then syncs with Campaigns, the field populates the "last name" field in Campaigns. However most people fill in the "name" field of Sales IQ with either their full name or their Christian name. This
                                                                                                  • Export PDF from Zoho Books via API

                                                                                                    Hi, I'm trying to export a PDF of all the invoices from a customer in Zoho Books via API. I'm doing it this way: $url = 'https://books.zoho.com/api/v3/invoices/pdf?'; $token = "xxxxxxxxxxxxxxxxxxxxx"; $org_ID = "xxxxxxxx"; $invoice_ids = "6289710000XXXXXXXX,62897100000YYYYYYY"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url . 'authtoken=' . $token . '&organization_id=' . $org_ID . '&invoice_ids=' . $invoice_ids); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER,
                                                                                                  • is there a way to tag the form rule? so that the email workflow can be sent through zoho begin for that perticular response?

                                                                                                    I have a form rule; based on which the response like a program to be sent via begin workflow. How do i do that?
                                                                                                  • Zoho Writer page break in a merge repeating region always adds an unwanted blank page

                                                                                                    Hi I'm merging a Zoho CRM record to a Zoho Writer document with a repeating region to display subform records on their own page within the document. When I try to insert a page break in a repeating region, the resulting merge always adds an unwanted blank
                                                                                                  • Introducing bot filtering for accurate analytics

                                                                                                    Dear Zoho Campaigns Users, We're happy to introduce bot filtering to enhance the accuracy of your email campaign analytics. This new feature is designed to help you filter out bot-generated opens and clicks, which will ensure your campaign reports reflect
                                                                                                  • Zoho Mail POP & IMAP Server Details

                                                                                                    Hello all! We have been receiving a number of requests regarding the errors while configuring or using Zoho Mail account in POP/ IMAP clients. The server details vary based on your account type and the Datacenter in which your account is setup. Ensure
                                                                                                  • Company domain with Zoho Mail as support email in Zoho Desk

                                                                                                    Hello, We are a Zoho One customer. We just converted to Zoho Mail from Google Workspace Mail yesterday. We have a domain name for our company. With Gmail, we were able to forward our info@company.com email to Zoho Desk. Customer would then be able to
                                                                                                  • Best way to organize Zoho Desk with CRM products

                                                                                                    I'm having a bit of trouble finding out how I'm supposed to organize our Zoho Desk (departments vs teams vs products) and how to use it. We want to use the KnowledgeBase, Community, and Tickets sections. Here's a general overview of our company to get
                                                                                                  • Settings Icon No Longer in ZOHO Desk?

                                                                                                    In ZOHO desk, there has been a gear icon for settings. as of yesterday, it is no longer there. I showed up briefly this morning but is gone again.  Anybody else experiecing this? 
                                                                                                  • Emoji Support in Bigin CRM

                                                                                                    We request the implementation of emoji support across Bigin CRM. This feature should allow users to seamlessly use emojis in text fields, headlines, and deals. It would enhance communication, improve the visual appeal of records, and bring more personalization
                                                                                                  • Does Zoho Learn integrate with Zoho Connect,People,Workdrive,Project,Desk?

                                                                                                    Can we propose Zoho LEarn as a centralised Knowledge Portal tool that can get synched with the other Zoho products and serve as a central Knowledge repository?
                                                                                                  • Workdrive API Get list of Sub Folders not working

                                                                                                    Hello Workdrive API "et list of Sub Folders" not working. Can you please check this. https://workdrive.zoho.com/apidocs/v1/teamfolder/getteamfolderfolders
                                                                                                  • is there a way to add tag in the "form rule" so that the email workflow can be automated through zoho begin for that perticular response?

                                                                                                    I have a form rule; based on which the response like a program to be sent via begin workflow. How do i do that?
                                                                                                  • Email address with + char is incorrectly invalid

                                                                                                    cannot enter contact with email address containing +, i. e. valid+email@example.com. this is a perfectly valid email address by but fails Zoho Campaigns validation. https://en.wikipedia.org/wiki/Email_address#Local-part
                                                                                                  • Update Regarding Zoho Finance Applications' Domains For API Users

                                                                                                    Hi users, Until now, both the Zoho Finance apps and their APIs shared a common domain. We've recently introduced separate domains for APIs. You can now start using the new domains for API calls. The old domains will not work for API users starting April
                                                                                                  • Zia powered by GPT is already available for MExico?

                                                                                                    Hi there! Is Zia powered by GPT is already available for MExico? I have Zoho ONE membership is Zia powered by GPT compatible with my membership? What's the specs? Do I have to get Chat GPT Plus plan? Thanks!
                                                                                                  • Adding a Download field to a form

                                                                                                    I want to set up a form on my website so that people can download a pdf file once they have submitted their email details. It has been really easy to set up the template but I cannot locate a field with the function. I can see file upload, but not download. This is the main task I want to add to my website as part of the "sales funnel" so hope there is the option.
                                                                                                  • Campaign Edit - Vertical Align Text to Center

                                                                                                    I have a layout in one of my campaigns that is using the split box with a picture on the left and text on the right. I can't find where I can vertically align the content of these boxes. It's forcing my text to be at the top vs centered. Am I missing
                                                                                                  • Introducing Dark Mode / Light Mode : A New Look For Your CRM

                                                                                                    Hello Users, We are excited to announce a highly anticipated feature - the launch of Day, Night and Auto Mode implementation in Zoho CRM's NextGen user interface! This feature is designed to provide a visually appealing and comfortable experience for
                                                                                                  • is it possible to pull the landing page and email campaign from Zoho app to Zoho marketing? Can I get all the benefits that exclusive app that offers in ZMA?

                                                                                                    There is a exclusive Zoho apps for landing page design, email campaign, and same features are there within ZMA as well for to setup landing page and email campaign. can ZMA offer all or limited features of those apps? I request please provide demo and
                                                                                                  • Enable 2FA / MFA in Bigin

                                                                                                    Hi, Our company started using Bigin. I (sysadmin) want to require MFA for Bigin as some users also have integrated their calender and mailbox into Bigin and regardless of that, in general, MFA logins are preferred in our company as it strengthens our
                                                                                                  • Forwarding Zoho Desk Support Email to a different e- mail

                                                                                                    Hello, I am using ZohoDesk and I have a Zoho Desk Support e-mail setup. I would like to know if there is a way to forward the e- mail inbound to this Zoho Desk Support e- mail to a different e- mail?  Thanks!
                                                                                                  • We are being overbilled by Zoho and they refuse to correct it

                                                                                                    We are being overbilled for CRM Ultimate Add-on. Zoho has acknowledged that they know this, but refuses to address and issue billing credits for the amounts we have been overpaying. Our company has been downsizing (unfortunately) and in the past 3 months
                                                                                                  • is there a better way to routinely export my project timesheets?

                                                                                                    Hi there, I am somewhat happy with how Zoho books handles time.  One thing that is missing is more user driven control over my data.  I have a workflow where I constantly need to give customers feeds of work done.  So I pick a project, and would ideally
                                                                                                  • Does the ability exist to make tax on the customer profile mandatory?

                                                                                                    I am reaching out to inquire about the possibility of making the "Customer Tax" field mandatory when creating a new customer in Zoho. We want to ensure that all customers have their tax information recorded to maintain compliance with our internal processes.
                                                                                                  • Triggering rules on lead conversion

                                                                                                    There is no field on the Rule list for rule conversion to trigger an alert on liead conversion to a potential. I assigned a rule to file on any creation or update of a lead. The lead was changed a lead to a potential but no rule was fired. Rajesh Bhadra
                                                                                                  • How do you remove a user from SalesIQ?

                                                                                                    I have a user in Sales IQ who needs to be removed (she's no longer involved with sales and chat) but I can't find any way to remove her. How do I do that?
                                                                                                  • Integrate SalesIQ with tiendanube.com

                                                                                                    Tiendanube.com is the leading e-commerce platform designed to help businesses create and manage online stores. It provides tools for entrepreneurs and companies to set up, customize, and operate their online shops with ease. Tiendanube is particularly
                                                                                                  • Next Page