WFH Tip : 30 How can you handle failures in the Zobot?

WFH Tip : 30 How can you handle failures in the Zobot?

Small failures are bound to occur during visitor-bot conversations - operator unavailability, invalid email address entry, etc are all examples of minor failures that happen during a conversation. To handle these minor failures, the Zobot has a handler called the Failure Handler.

Say, you have an ongoing bot-visitor conversation on your e-commerce website. The visitor wants to purchase a product from your store but he/she wants talk to a human operator from the Payments and Delivery department before placing the order. Let us also assume that at this point there are no operators available to pick up the chat. The bot tries to forward the chat but when there are no operators available, the failure handler in the Zobot sends out a response and passes on this information to the visitor.

What is the Failure Handler?

This handler gets invoked in the Zobot when the actions returned in the other handlers fail to execute. For example, when the message handler returns an action to forward the chat to an operator and if the operator is not available, the failure handler gets invoked. This handler has the following inputs:
  1. visitor
  2. cause
  3. failed_response and
  4. request

Error Response Format:

In case of any failure, the input params for the failure handler will have the param map "cause" that contains information about the failure. This param contains 2 keys :
  • "code" (unique error code) and 
  • "desc" (description of the error)
Note: 
The Failure handler code will be disabled by default but if you wish to set up failure responses you can enable it.

To learn more about this, start building your own Zobot right away.
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 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 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

                                                                    





                                                                    




                                                                        Design. Discuss. Deliver.

                                                                        Create visually engaging stories with Zoho Show.

                                                                        Get Started Now