WFH Tip : 23 How to validate the information provided by visitors during conversations with Zobots?

WFH Tip : 23 How to validate the information provided by visitors during conversations with Zobots?

Greetings from Zoho SalesIQ!
Ever wondered if you were dealing with only the right details/information during a live chat session? Validation is a crucial process for any business that has hundreds and thousands of customers coming in by the hour. It is essential to validate every detail that is provided by a visitor during a conversation to evaluate the genuineness of the request and to initiate the proper follow-up. A human operator can mostly identify invalid information but chatbots can seldom do so. As a solution to this, Zoho SalesIQ's Zobot has a validation feature.

You can configure your Zobot with this feature to allow it to validate the information that is provided by visitors. You can validate the following input fields:
  1. email - To validate the email address given by the visitor.
  2. phoneno - To validate the phone number provided.
  3. website - To validate the website address provided.
  4. number - To validate the number or to allow just numbers in the field.
  5. number(n-m) - To validate the number and you can also specify the "from" and "to" range of the number allowed.
  6. string(n-m) - To validate the number and you can also specify the "from" and "to"  to validate the length(number of characters) of the strings allowed.
Note: You can add an error message while configuring this feature to notify the visitor about the invalid details. If you skip configuring the "error" message, then the question pop-up repeatedly without the error message until the visitor enters a valid input .

                                              

Syntax:
  1. {
  2.      "text": "May I have your email address, please? ",
  3.       "validate": {
  4.              "format": "email",
  5.              "error": {"Seems like the value is invalid.","Please enter a valid email address"}
  6.                        }
  7. }
Sample Code:
  1. if(!msg.isNull())
  2. {
  3.       response.put("action","context");
  4.       if(msg.equalsIgnoreCase("Existing Customer"))
  5.       {
  6.             response.put("context_id","existing customer");
  7.             question = {"name":"email","replies":{"Please enter your registered email address",{"field_name":"siq_email","validate":{"format":"email","error":{"Please enter a valid email address"}}}}};
  8.             response.put("questions",{question});
  9.       }
  10.       else if(msg.containsIgnoreCase("Bye"))
  11.       {
  12.              response.put("action","end");
  13.              response.put("delay","30");
  14.              response.put("replies",{"Bye"});
  15.        }
  16.        else
  17.        {
  18.             response.put("action","reply");
  19.             response.put("replies",{"Hey there! Smart Bot here","Got a question? I can help."});
  20.             response.put("suggestions",{"Existing Customer","Looking to purchase","Book Test Drive"});
  21.             return response;
  22.          }
  23. }

To learn more about this, start building your own Zobot right away.
We also have Sample Scripts that use connections. 
For more information, check out our Help Documentation.

Regards,
Michelle


    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

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

                            Zoho CRM コンテンツ




                              ご検討中の方