Content Integration - Unily

Unily Knowledge Management is a knowledge management platform provided by Unily which contains all knowledge content in a single place. Using the Content API we are able to integrate with Unily to fetch the knowledge articles stored there to serve relevant answers to users.

The knowledge content are stored under different Document Types all together. We have seen the following structure in Unily’s Knowledge Management Solutions page:


The following diagram shows the high level architecture of how Moveworks integrates with Unily.

This is a live integration where we poll knowledge articles every four hours. This is done so that the enterprise cache is updated with relevant snippets for answers.

Our enterprise cache stores the knowledge documents and generates relevant knowledge snippets by understanding the content. We also store the redirect urls to direct users to where the document is stored and can be read.


The authentication in Unily platforms is performed by passing an Access Token created by sending a POST request to an OAuth API using the Client ID and Secret.

This token has an expiry time of 3600s and has to be re-generated after the speculated time is over.

See Unily Access Setup Guide.


Unily’s Content API is used to fetch and ingest the knowledge articles.


Unily doesn’t have any knowledge hierarchy, all documents can be found under All Content. But these documents are categorized by types and we ingest only the following types of documents:

  1. "Event" → Event
  2. "Insight" → Insight Posts
  3. "News" → News Articles
  4. "Video" → Video Story Posts
  5. "ufsFAQ" → FAQ Posts
  6. "SitePageModern" → Site Pages
  7. "app" → Apps, Tools & Resources
  8. “ufslocation" → Location Posts
  9. “ufsNewsAdvocacy" → News Advocacy Posts
  10. “ufsEventAdvocacy" → Events Advocacy Posts
  11. “ufsVideoAdvocacy" → Video Advocacy Posts

How we fetch knowledge articles from Unily

We use the following APIs to fetch the different kinds of content that you want to ingest.

1. Fetch all knowledge articles

curl --location '' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <generated_token>' \
--data '{}'

2. Fetch the content from a knowledge articles

curl --location '<contentID>' \
--header 'Authorization: Bearer <generated_token>'

In the response, document type is shown as:

"documentTypeAlias": "ufsFAQ"
"documentTypeAlias": "Insight"

We retrieve the content and present in them in an HTML format in the value of different keys depending on the type of document ingested.

Integration Scope


Our knowledge ingestion engine works on ingesting “HTML” tags and thus breaking the page into smaller sections. This process is known as Snippetization.

The key user experience in resolving a user query is to provide the most relevant snippet to that question.

After analyzing the response we will be able to ingest the documents.

Our knowledge engine uses the following tags to make snippets.

  1. All the heading tags for eg <h1>, <h2> etc
  2. Paragraph <p>
  3. Title <title>
  4. Ordered/Unordered lists <ol>, <ul>, <li>

The other tags as <img>, <video>, <iframe> are not supported while ingesting.

Access Control

Moveworks will ingest Documents which are available to all user.

Since Unily allows all documents to be visible to users, Moveworks will also be able to ingest all those documents.

End user experience

Case 1 : When bot gets relevant documents for the user inquiry (Success Case)

If there is any document which can solve the User’s query, the bot will present the answer in the following format with a redirect heading and a relevant knowledge snippet.

Case 2 : When bot doesn’t have any relevant answers to user inquiry (Backstop Case)

This would be the answer provided to the user if the bot doesn’t find any relevant answers from the available documents.