# LLM Knowledge base

The LLM Knowledge base skill adds two capabilities to your Smart App to generate responses to users and operators using a large language model AI service that uses a predefined Knowledge base as its content.&#x20;

## How to install?

### Installing the package

Depending on your license, the LLM Knowledge base skill can be installed in the packages section of the platform.

Not all Smart Apps support the LLM Knowledge base skill. When they do however you can perform the following steps to install the skill to your App.

1. Go to packages
2. Click on Browse skills
3. Click on LLM Knowledge base
4. Click on Install
5. Publish the app to gain access to the 'AI - Knowledge bases' page

### Configuring the AI

The prompts can be configured in the Prompts page in the AI section, see [here](https://manuals.dialox.ai/studio/ai/prompts) for more details.

Knowledge bases can be configured in the Knowledge bases page in the AI section, see [here](https://manuals.dialox.ai/studio/ai/knowledge-bases) for more details. &#x20;

### Configuring the Inbox settings

If you want to use the knowledge base and the LLM Prompt in the inbox to generate suggestions to the operators and agents, make sure to configure the Prompt and Knowledge base in the Settings page called "Inbox AI", see below:

<figure><img src="https://3356808761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEBQHGJABNTj5ISSOTRxM%2Fuploads%2FuVkFeS1IlQtJkkRp2tNa%2Fimage.png?alt=media&#x26;token=cf32a4da-b04a-4abb-8ff6-048f067c3d34" alt=""><figcaption><p>Configuring which knowledge base and prompt to use for providing inbox suggestions</p></figcaption></figure>

## How to use?

### In the Flow Designer

The LLM Knowledge base skill introduces the following flow nodes to your Flow designer in order to provide responses that are generated by the LLM to users of your Smart App:

* [Iterate: LLM Knowledge base](https://manuals.dialox.ai/studio/flows/nodes/iterate-llm-knowledgebase)
* [Say: LLM Knowledge base](https://manuals.dialox.ai/studio/flows/nodes/say-llm-knowledgebase)

### In the Inbox

The LLM Knowledge base skill also introduces an Inbox Command for generating response suggestions using the LLM. The Inbox Command is available in the input bar when an operator or agent has joined the conversation.

<figure><img src="https://3356808761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEBQHGJABNTj5ISSOTRxM%2Fuploads%2FMrcQ2r5jpTFUeMiwcBgX%2Fimage.png?alt=media&#x26;token=065cf4c7-4f3f-48fe-9803-213cc89986d8" alt=""><figcaption><p>Inbox commands</p></figcaption></figure>

When clicking the inbox commands button a list appears with the available commands. Depending on the skills you have installed you get zero, one or more options. When the LLM KB Skill is installed you should at least see the option "AI Suggestions".

<figure><img src="https://3356808761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEBQHGJABNTj5ISSOTRxM%2Fuploads%2FuA9977AxpzJWFTZWPdEA%2Fimage.png?alt=media&#x26;token=de613f43-7511-4aab-9015-16fd5382dce4" alt=""><figcaption><p>AI suggestions</p></figcaption></figure>

You can click the AI suggestions option directly (so without having typed anything yet in the input bar) as shown above, or first type a hint to the AI and then click on the AI suggestions option to hint the AI into a specific direction for its answer:

<figure><img src="https://3356808761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEBQHGJABNTj5ISSOTRxM%2Fuploads%2FLKctc7PM6XGRyXDVaLCs%2F2025-03-24_13-42-34%20(1).gif?alt=media&#x26;token=d9b77149-a086-4309-b73e-5424679e9870" alt=""><figcaption><p>How to hint the AI for a specific answer</p></figcaption></figure>

## Frequently asked questions

### I have no 'Knowledge bases' page in the AI section after installing the skill?

After installing the skill you need to publish the app again. After publishing you should gain access to the Knowledge bases. Just by dragging a node in the Flows section, or changing a line in the Script section you can get your app in a publishable state.

### I get a warning in the inbox when I try to use the Inbox Command: AI Suggestions

You should configure the prompt and/or knowledge base in the Settings section, see above, when you get this message.

<figure><img src="https://3356808761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEBQHGJABNTj5ISSOTRxM%2Fuploads%2FLTUCuTUvSJjMv8R606Aq%2Fimage.png?alt=media&#x26;token=42ff80d2-f1a8-4697-b606-fc2d8306c44c" alt=""><figcaption><p>Prompt and/or knowledge base not configured yet</p></figcaption></figure>
