Use Zendesk As a Content Source

This article explains how to index the posts, articles, and tickets stored in your Zendesk instance. If you have admin access to Zendesk Community and/or Zendesk Guide, then you can link Zendesk to SearchUnify.

PERMISSIONS.

  • SearchUnify supports ticket-level content permissions from Zendesk pages.

  • Enable the help center. It is necessary to crawl data.

  • Only administrators in Zendesk have the necessary permissions to generate API credentials.

  • Responses from Zendesk are subject to rate limits. Check out this doc for the current Rate Limits in Zendesk.

  • Attachment type supported are txt, pdf, doc, docx, ppt, pptx, potx, csv, xsl, srt. Additionally, zip files can be crawled for Articles.

Establish a Connection

  1. Navigate to Content Sources and click Add New Content Sources.

  1. Find Zendesk and click Add.

  2. Under the Authentication tab, enter the required details:

    • Name. Give your content source a name.

    • Client URL. Insert your Zendesk instance web address here.

    • Authentication Method. Select your authentication method: 1) No Authentication, 2) Basic, and 3) OAuth. For assistance, check out Which Authentication Method to Select for Zendesk?.

    • Language. Select the language of your Zendesk content.

  3. After entering the aforementioned details, press Connect.

Once the connection has been set up successfully, you will be prompted to the next action - Set Frequency.

Re-Connect

The Authentication screen is displayed when an existing Content Source is opened for editing, as given below. An admin can edit a Content Source for multiple reasons:

  • To reauthenticate

  • To fix a crawl error

  • To change frequency

  • To add or remove an object or a field for crawling

  • For multiple other reasons

When you edit a Content Source, there can be any one of two cases as listed below:

If the Content Source authentication is successful; a Connected message is displayed.

Case 1: There are no crawl errors and the Content Source authentication is valid.

If the Content Source authentication fails or is disrupted; a Re-Connect button is displayed.

There is a crawl error or the authentication details have changed. In both cases, the SearchUnify Content Source connection must be authenticated again i.e. re-authenticated. To authenticate a Content Source again, enter the authentication details, and click Re-Connect.

Set Up Crawl Frequency

The first crawl is always manual and is performed after configuring the content source. In Choose A Date, select a date to start crawling; the data created after the selected date will be crawled. For now, keep the frequency to its default value Never and click Set and move to the next section.

Select Fields for Indexing

You can choose to index your entire Zendesk data or only selected subset(s) of it. SearchUnify supports three content types out-of-the-box: posts, articles, and tickets.

NOTE

  • SearchUnify can crawl the data stored in Zendesk tickets custom fields.

  • Section data is crawled for articles in nested form. You can use section_category_nested field as nested facets.

  1. Under the Rules tab, you will land on By Content Type subtab. You can see the list of supported content types here.

  2. Click to select a content type. You can see the list of pre-configured fields here.
  3. NOTE. You can add or delete the content fields. Although, it is not recommended for users other than Admins to make any changes in the fields.
  4. Switch to the By Topics subtab.

  5. Use the index to find your topics. Select the topics you want to crawl.
  6. Save the Settings.

You have successfully added Zendesk as a content source in SearchUnify. Perform a manual crawl to start indexing the Zendesk data in SearchUnify.

Related

Difference between Manual and Frequency Crawls

Find and Replace

Those on the Q2 '24 release or a later version will notice a new button next to each object on the Rules screen. It resembles a magnifying glass and is labeled "Find and Replace." You can use this feature to find and replace values in a single field or across all fields. The changes occur in the search index, not in your content source.

Find and Replace proves valuable in various scenarios. A common use case is when a product name is altered. Suppose your product name has changed from "SearchUnify" to "SUnify," and you wish for the search result titles to immediately reflect this change.

  1. To make the change, click .

  2. Now, choose either "All" or a specific content source field from the "Enter Name" dropdown. When "All" is selected, any value in the "Find" column is replaced with the corresponding value in the "Replace" column across all content source fields. If a particular field is chosen, the old value is replaced with the new value solely within the selected field.

  3. Enter the value to be replaced in the Find column and the new value in the Replace column. Both columns accept regular expressions.

  4. Click Add. You will see a warning if you are replacing a value in all fields.

  5. Save the settings.

  6. Run a crawl for the updated values to reflect in search results.

After the First Crawl

Return to the Content Sources screen and click in Actions. The number of indexed documents is updated after the crawl is complete. You can view crawl progress in in Actions. Documentation on crawl progress is in View Crawl Logs.

Once the first crawl is complete, click in Actions open the content source for editing, and set a crawl frequency.

  1. In Choose a Date, click to fire up a calendar and select a date. Only the data after the selected date is indexed.

  2. The following options are available for the Frequency field:

    • When Never is selected, the content source is not crawled until an admin opts for a manual crawl on the Content Sources screen.

    • When Minutes is selected, a new dropdown appears where the admin can choose between three values: 15, 20, and 30. Picking 20 means that the content source crawling starts every 20 minutes.

    • When Hours is selected, a new dropdown is displayed where the admin can choose between eight values between 1, 2, 3, 4, 6, 8, 12, and 24. Picking 8 means that the content source crawling starts every 8 hours.

    • When Daily is selected, a new dropdown is displayed where the admin can pick a value between 0 and 23. If 15 is chosen, then the content source crawling starts at 03 p.m. or 1500 hours every single day.

    • When Day of Week is selected, a new dropdown is displayed where the admin can pick a day of the week. If Tuesday is chosen, then content source crawling starts at 0000 hours on every Tuesday.

    • When Day of Month is selected, a new dropdown appears where the admin can select a value between 1 and 30. If 20 is chosen, then content source crawling starts on the 20th of each month.

      It’s recommended to pick a date in the range 1-28. If 30 is chosen, then the crawler may throw an error in February. The error will be “Chosen date will not work for this month.”

    • When Yearly is selected, the content source crawling starts at midnight on 1 January each year.

  3. Click Set to save crawl frequency settings. On clicking Set, you are taken to the Rules tab.

Data Deletion and SU Index

How is Zendesk's deleted data managed in SearchUnify? Deleted articles and tickets are managed in SearchUnify while deleted posts are managed via webhook in Zendesk.

  • Deleted articles are removed from the SearchUnify index over the weekends. SearchUnify uses Zendesk APIs to remove redundant articles and a maximum of 1000 articles (due to API limit) can be deleted in one attempt.

  • Deleted tickets are removed from the index during frequency crawls.

  • Deleted posts are removed from the searchunify index by webhook, if configured. Refer to this articles on how to configure a webhook in Zendesk - Creating a webhook in Zendesk.

    Note. Contact SearchUnify Support to obtain the unique Endpoint URL to be used for creating a webhook. The events needed to be added in the webhook is zen:event-type:community_post.unpublished.

This process doesn't interfere with crawling but it may slow it down. Search and any other Zendesk integrations may be impacted because of the rate limits (check Permissions).

Search Permissions

Search permissions refer to access control on results from a Zendesk content source.

NOTE.

There is no access control when a Zendesk content source is set up with "No Authentication."

Search permissions work when the search user is logged in. Their email is used to identify the user's Ticket group, Article segment, and Post segment. A search user can see all the tickets, articles, and posts in their group or segment. A ticket is visible to a search user outside their group only when the search user is the requester.

When the search user is a Zendesk admin, then all tickets, articles, and posts are visible to them.