Facts Manager node

Facts Manager node

Facts manager node will extract the facts, related topics, questions, and so on based on topics, relationships, and/or questions.

Project - Name of the project.

K-Graph - Pass the Kgraph Id in the property msg.payload.orbita.facts.kgraphid.

Topic - The Facts Manager node will fetch the topic name when required from the payload property msg.payload.orbita.facts.topic

Relationship - The Facts Manager node will fetch the topic name when required from the payload property msg.payload.orbita.facts.relationship

Question - The Facts Manager node will fetch the topic name when required from the payload property msg.payload.orbita.facts.questions

Article Property - If you have a custom schema defined for the K-Graph, place the path to the property, where the fact is stored in your custom schema.

Populate - Based on the selected items in this field, the node will fetch and populate the data in the payload object msg.payload.hub

Populate Option

Input

Output

Additional comments

Populate Option

Input

Output

Additional comments

Facts

Topic and Relationship

Corresponding Facts

If the topic or relationship or both are missing, the node will output all the facts listed in the K-Graph. You can set a limit to the output result using msg.payload.hub.facts.paging.itemCount

Relationships

Topic

Corresponding Relationships

 

Related topics

Topic

Related Topics

 

Relationship Facts

Topic

Corresponding Relationships' facts.

 

Related Questions

Topic

Related topics' questions

 

All Questions

K-Graph

List of all the questions from the selected K-Graph.

 

First Question

K-Graph

First questions from all the topics of the K-Graph selected

 

Facts by Question

Question

Corresponding facts

 

Engage Organization

Project (Populated by default)

Organization's details from the current project

 

Related Facts

Topic

Related topics' facts.

 

Hub Settings

Project (Populated by default)

Hub related content from the current project.

 

How to use Facts Manager node

Facts Manager node is created especially for Engage. But based on your business use cases, you can use this node to fetch the questions, related topics, facts, and so on.

For example, in a K-Graph named “FAQ - Fact mngr“, we have created Facts with the Topic "Voice Search" and the Relationships “Description”, “Benefit“, “Optimization“, ”Implementation” in it.

If you want to know all the relationships associated with the topic Voice search, you can use the Fact Manager node and get the result.

Sample Experience Designer flow

  1. Set the topic using the function node that feeds to the Facts Manager node.
    Sample code for the function node:

    var _ = global.get('lodash'); _.set(msg, 'payload.orbita.facts.topic',"Voice search") return msg;
  2. Select the K-Graph and select Relationships from the populate field in the Facts Manager node.

  3. You will get the list of all the Relationships associated with the topic Voice search in the debug tab at
    msg.payload.hub.relationships

Troubleshoot

If you did not select the Knowledge Graph in step 2, you will get the error “Mandatory field kgraphId is missing“ on the Facts Manager node in the Experience Designer. (Refer to screenshot below for the error message.)

Related Articles