How to display details of anonymous users in the chat module to your agents?

How to display details of anonymous users in the chat module to your agents?

When an anonymous user contacts the customer support agent via Chat, their details usually do not appear on the agent's screen. However, you can configure the ASAP help widget to display these details after receiving them from the user.

To configure this setting, use the following method:

Swift

  1. import ZohoDeskPortalChat
       ...
       ZDPortalChat.setGuestUser(email:<#Guest_User_Email#>,
       displayName:<#Guest_User_DisplayName#>",
       phoneNumber: <#Guest_User_PhoneNumber#>")

Objective-C

  1. @import ZohoDeskPortalChat;
    ...
        [ZDPortalChat setGuestUserWithEmail:<#Guest_User_Email#>
        displayName:<#Guest_User_DisplayName#>
        phoneNumber:<#Guest_User_PhoneNumber#>]; 
Additionally, agents can convert chat conversations into tickets if additional user interactions are required later. The email address is a mandatory parameter to make this conversion possible.

Programmatically adding tickets

While end-users can manually submit tickets through the ASAP help widget, you can also configure your app to record tickets automatically when certain events occur in the app. For instance, if you run a clothing business and your app fails to load the For Women screen when a user tries to access it, this failure instance can be automatically recorded as a ticket on your help desk. The user does not need to visit your help center and manually submit a ticket.

To make this automatic submission of tickets possible, incorporate the following methods in your app code:

Swift

  1. import ZohoDeskPortalAPIKit

Objective-C

  1. @import ZohoDeskPortalAPIKit;

To fetch the IDs of the departments in your help desk portal, use the following method:

Swift

  1. ZohoDeskPortalSDK.getDepartments(onCompletion:
    { (departments, error) in
    // on success, departments will return an array, error will return nil
    // on failure, error will return a value, departments will return nil
    }

Objective-C

  1. [ZohoDeskPortalSDK getDepartmentsOnCompletion:^
    (NSArray * departments, NSError * error)
    {
    // on success, departments will return an array, error will return nil
    // on failure, error will return a value, departments will return nil
    }];

Use the following method to fetch information on the products configured in a department:

Swift

  1. ZohoDeskPortalSDK.getProducts(inDepartmentID: <#T##String#>, params: <#T##[String : Any]?#>)
    { products, error in
    // on success, products will return an array, error will return nil
    // on failure, error will return a value, products will return nil
    }

Objective-C

  1. [ZohoDeskPortalSDK getProductsInDepartmentID:<#NSString#>
    params:<#NSDictionary#>onCompletion:^
    (NSArray * products, NSError * error)
    {
    // on success, products will return an array, error will return nil
    // on failure, error will return a value, products will return nil
    }];

To fetch the fields configured in the ticket layout of a department, use the following method:

Swift

  1. ZohoDeskPortalSDK.Ticket.getFields(<#T##params: [String : Any]?##[String : Any]?#>)
    { fields, error in
    // on success, fields will return an array, error will return nil
    // on failure, error will return a value, products will return nil
    }

Objective-C

  1. [[ZohoDeskPortalSDKTicket getFields:
    <#(NSDictionary * _Nullable)#>onCompletion:^
    (NSArray * fields, NSError * error)
    {
    // on success, fields will return an array, error will return nil
    // on failure, error will return a value, fields will return nil
    }];

To include a file attachment in the Ticket, use the following method:

Swift

  1. ZohoDeskPortalSDK.Ticket.addAttachment(with:<#Data#>,
    andName:<#String#>, using: <#ZDPUploaderDelegate?#>)
    { (attachment, error) in
    // on success, attachment will return a value, error will return nil
    // on failure, error will return a value, attachment will return nil
    }

Objective-C

  1. [ZohoDeskPortalSDKTicket addAttachmentWith:
    <#NSData#>andName:<#NSString#>using:
    <#(id _Nullable)#>onCompletion:^
    (ZDPortalAttachment * attachment, NSError * error)
    {
    // on success, attachment will return a value, error will return nil
    // on failure, error will return a value, attachment will return nil
    }];

To make this automatic ticket submission possible, incorporate the following method into your app code. You must call different methods to post tickets for authenticated and unauthenticated users:

Swift

  1. if ZohoDeskPortalSDK.isUserLoggedIn
    {
        ZohoDeskPortalSDK.Ticket.add(withFields:<#T##[String : Any]#>)
        { (ticket, error) in
       // on success, ticket will return an object,
    error will return nil
       // on failure, error will return a value,
    ticket will return nil
        }
    } else
    {
        ZohoDeskPortalSDK.Ticket.addAsGuest
    (withFields: <#T##[String : Any]#>)
        { (ticketNumber, error) in
        // on success, ticketNumber will return a string value,
    error will return nil
        // on failure, error will return a value,
    ticketNumber will return nil
        }
    }

Objective-C

  1. if (ZohoDeskPortalSDK.isUserLoggedIn)
    {
            [ZohoDeskPortalSDKTicket addWithFields:<#(NSDictionary * _Nonnull)#> onCompletion:^(ZDPTicket * ticket, NSError * error)
        {
             // on success, ticket will return an object, error will return nil
             // on failure, error will return a value, ticket will return nil
            }];
    }
    else
    {
            [ZohoDeskPortalSDKTicket addAsGuestWithFields:
            <#(NSDictionary * _Nonnull)#> onCompletion:^(NSString * ticketNumber, NSError * error)
            {
             // on success, ticketNumber will return a string value, error will return nil
             // on failure, error will return a value, ticketNumber will return nil
            }]
    }

Email Address, Subject, and DepartmentID are mandatory parameters in the method call.

    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION











                                        You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                            Manage your brands on social media

                                              Zoho Desk Resources

                                              • Desk Community Learning Series


                                              • Digest


                                              • Functions


                                              • Meetups


                                              • Kbase


                                              • Resources


                                              • Glossary


                                              • Desk Marketplace


                                              • MVP Corner


                                              • Word of the Day


                                                Zoho Marketing Automation

                                                  Zoho Sheet Resources

                                                   

                                                      Zoho Forms Resources


                                                        Secure your business
                                                        communication with Zoho Mail


                                                        Mail on the move with
                                                        Zoho Mail mobile application

                                                          Stay on top of your schedule
                                                          at all times


                                                          Carry your calendar with you
                                                          Anytime, anywhere




                                                                Zoho Sign Resources

                                                                  Sign, Paperless!

                                                                  Sign and send business documents on the go!

                                                                  Get Started Now




                                                                          Zoho TeamInbox Resources



                                                                                  Zoho DataPrep Resources



                                                                                    Zoho DataPrep Demo

                                                                                    Get a personalized demo or POC

                                                                                    REGISTER NOW


                                                                                      Design. Discuss. Deliver.

                                                                                      Create visually engaging stories with Zoho Show.

                                                                                      Get Started Now









                                                                                                          • Related Articles

                                                                                                          • Working with Chat Module in Zoho Desk

                                                                                                            The Chat module in Zoho Desk is a central hub for the support agents, from which they can engage with visitors and also track older conversations with the customers that provide better insights in resolving questions. For example, if a customer seeks ...
                                                                                                          • Adding and Managing Agents

                                                                                                            In an organization, customer support representatives play a major role as the point of contact for customers. Support reps, also known as agents in help desk software, form the customer-facing teams, who assist customers with billing, product issues ...
                                                                                                          • How to display details of anonymous users to your agents?

                                                                                                            Programmatically adding tickets While end-users can manually submit tickets through the ASAP help widget, you can also configure your app to record tickets automatically when certain events occur in the app. For instance, if you run a clothing ...
                                                                                                          • Setting up Google Chat Integration

                                                                                                            Google Chat is a real-time messaging and collaboration platform, designed to facilitate communication and teamwork among individuals and groups. It is a useful tool for both personal and professional use. Once integrated with Desk, users can perform ...
                                                                                                          • Customizing the Agent Details Card in Radar

                                                                                                            The Agent Details Page in the Radar app offers a comprehensive view of an agent’s ticket information, contact details, and performance metrics, including average handling time and customer satisfaction ratings. The page is organized into various ...
                                                                                                            Wherever you are is as good as
                                                                                                            your workplace

                                                                                                              Resources

                                                                                                              Videos

                                                                                                              Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                              eBooks

                                                                                                              Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                              Webinars

                                                                                                              Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                              CRM Tips

                                                                                                              Make the most of Zoho CRM with these useful tips.



                                                                                                                Zoho Show Resources