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 ZohoDeskPortalSalesIQ
    ...
    ZDPortalSalesIQ.setGuestUser(email:<#Guest_User_Email#>,
    displayName:<#Guest_User_DisplayName#>",
    phoneNumber: <#Guest_User_PhoneNumber#>")

Objective-C

  1. @import ZohoDeskPortalSalesIQ;
    ...
    [ZDPortalSalesIQ 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 of 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
            }]
    }
NotesEmail Address, Subject, and DepartmentID are mandatory parameters in the method call.


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            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







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    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


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            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 Demo

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                    • Related Articles

                                                                                                                                    • 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 ...
                                                                                                                                    • Adding Tickets and Assigning Agents in iOS

                                                                                                                                      Adding tickets A support ticket is a record submitted by the user to either report an issue or seek help from a company's support team, ensuring that customer questions and concerns are handled quickly and efficiently. In order to ensure that no ...
                                                                                                                                    • FAQs: Answer Bot in SalesIQ Chat and Zobot Platforms

                                                                                                                                      Prerequisites What does Zoho Desk Answer Bot do in a chat experience? Answer Bot helps end users find answers from a bot trained on the articles available in the portal’s Knowledge Base (KB) module. It is intended to provide self-service answers from ...
                                                                                                                                    • 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 ...
                                                                                                                                      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