# How to Create a Knowledge Graph

## Knowledge Graph Tutorial

You can create a guided knowledge flow that gives users detailed context and guides them to  the most relevant knowledge base article content.

As an example, when users ask a question about how to send a meeting invite, itmight be related to other collaboration tools such as Zoom, Slack, MS Teams. Theexample guides users to the article content that serves their needs.Comment

<div align="left"><figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCCtlArfI3VtLzew9kE1P%2Fuploads%2FugLAlx7GRC80RX2OdNCy%2Fimage.png?alt=media&#x26;token=e2948d08-7e04-4269-8c82-1467864e4a80" alt=""><figcaption></figcaption></figure></div>

To start, create a new intent called **KB Article Flow** and select **Intent Fulfillment** as the **Knowledge Flow**.&#x20;

In the screenshot below, the name of the new intent is **KB FlowArticle**, and the category is selected as a **Knowledge Flow**.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCCtlArfI3VtLzew9kE1P%2Fuploads%2FFpEoXOgZ0OwUYFSE9jKG%2Fimage.png?alt=media&#x26;token=0e254499-3d58-4e33-90ba-f2963ff6b27e" alt=""><figcaption></figcaption></figure>

Next, build the new workflow using the **AI Workflow Studio**.

Add a new user input node. It is used to define multiple options for the userinput variable. The example offers five options to the user: Cisco Webex, Microsoft Teams, Zoom, Slack, Other. They are displayed as buttons.

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCCtlArfI3VtLzew9kE1P%2Fuploads%2FAqKLJIoHXRj5MoTNf0Wr%2Fimage.png?alt=media\&token=63bafc28-fba8-4de6-afd8-dd99833f70df)

Add a **Decision** node and define five decision branches accordingly (refer how to determine the user **Input** value in the decision branches).

Associate a **Message** node under each decision branch (refer to how to display messages). As shown below, under the dropdown menu of **Select the data to display**, select the **Knowledge Content** tab and click **OK**.

<figure><img src="/files/THFirXv6o5nycsNge2oE" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aisera.com/aisera-platform/ai-automation-optimize-flow/ai-workflow-studio/building-workflows/how-to-create-a-knowledge-graph.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
