# Answer to a question

Our no-code solution enables you to create various types of chatbot messages. In this article, we will explain how to create a simple bot response to a question.

## Create an "Answer to a Question" knowledge item

{% embed url="<https://youtu.be/lsO99bXVn7o>" %}

An **Answer to a Question** knowledge item consist of a user's question and its corresponding answer. For more complex conversation scenarios where you need to provide different answers based on information given by your users, you can also create a decision tree. (We explain it here)

To create an Answer to a Question knowledge item, please follow these steps:

1. Go to **Content > Knowledge**.
2. Click the **Add** button then click **New knowledge**. Or select a tag and click **... > New knowledge**. This second option allows you to assign a tag directly to your knowledge.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FiXocM5S6EsldS6MM1zqW%2FCapture%20d%E2%80%99e%CC%81cran%202023-12-18%20a%CC%80%2017.23.25.png?alt=media&#x26;token=90f70c51-0502-45b7-ad66-3d1587bbfc10" alt=""><figcaption></figcaption></figure>

3. Click **Answer to a question**.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FY3jXiYcNoF0QqPiGTlBu%2FCapture%20d%E2%80%99e%CC%81cran%202023-12-18%20a%CC%80%2017.23.55.png?alt=media&#x26;token=31091954-5ffc-4865-9693-ec9ff992bc73" alt=""><figcaption></figcaption></figure>

3. Enter the user's question and click **Create**.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FN6odf4yox7JoHh7u7mJK%2FCapture%20d%E2%80%99e%CC%81cran%202023-09-25%20a%CC%80%2014.20.23.png?alt=media&#x26;token=65ef5986-51fa-4da0-b7fe-112c45940a4f" alt=""><figcaption></figcaption></figure>

You can use [matching groups](https://docs-en.dydu.ai/contents/matching-groups) to replace certain words in your questions. To insert a matching group in the user's question, clicking at ![](https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FfDmiHnJI520cxU2kafRf%2FCapture%20d%E2%80%99e%CC%81cran%202023-12-18%20a%CC%80%2017.24.44.png?alt=media\&token=f22545e0-39b4-43c4-8223-9135cb16d66e).

When you click on **Create**, the bot automatically suggests a list of matching group that you can use. You can accept or ignore the suggestion. (To ignore it, click on "Create" again).

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FEgeSJXZLlwseJ6JmfPKT%2FCapture%20d%E2%80%99e%CC%81cran%202023-12-18%20a%CC%80%2017.25.10.png?alt=media&#x26;token=cc8ff5a5-2107-4843-bd37-df089dfad49f" alt=""><figcaption></figcaption></figure>

5. Once you have created the question, enter the corresponding answer in the appropriate field in the knowledge builder.

You can use different formatting options and add additional actions to your answer.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FdjPSGQpRsJ1ph9bY9gyA%2FCapture%20d%E2%80%99%C3%A9cran%20du%202024-01-02%2015-00-11.png?alt=media&#x26;token=3ed073fa-e84f-4814-a936-433fe735263d" alt="" width="501"><figcaption></figcaption></figure>

It is formatted in HTML and can therefore contain any type of valid formatting in HTML.

For more tips on creating a relevant answer, please read this article.

6. Save your knowledge item with the appropriate status and click at **Update**. Your knowledge item is now created.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FdNR3E9nI1fJo3xskpSDc%2FCapture%20d%E2%80%99%C3%A9cran%20du%202024-01-02%2015-01-20.png?alt=media&#x26;token=6d8accb5-e8d6-4ada-b4e2-d0dabba2cdcd" alt=""><figcaption></figcaption></figure>

## Deep dive into the user's question

### Business Description

This feature allows the system to better understand what the user wants and find the correct answer, even if the question is not precisely formulated or is not understood by usual search methods.

{% hint style="info" %}
To activate the business description feature, it is necessary to import the "**Dydu LLM Business description**" model into the [external NLPs](https://docs-en.dydu.ai/developers/api-reference/external-nlps).
{% endhint %}

#### Configuration&#x20;

For this search to work, you must fill out a **field within each knowledge item**.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FICSNevKGrgqJOJ7wlApM%2Fimage.png?alt=media&#x26;token=ab3a6909-9d4a-450d-9280-c7dc8343c740" alt="" width="313"><figcaption></figcaption></figure>

A "**Business description**" field is available for each knowledge item.

* This field is **optional**.
* Use it to **describe**, with simple words, what this knowledge item is for or in what situation it should be used. The **clearer this description is**, **the more accurate the bot will be**.

#### Objective and Functioning

The system uses its **advanced understanding engine (LLM)** to analyze the meaning of the user's question.

* The **Business Description** search is activated automatically when the bot cannot find a clear answer **using its classic search methods**.
* If the system finds a similarity with a knowledge item, it **automatically directs** the user to that knowledge item.
* If it finds nothing, **the bot displays a neutral message**, indicating that it cannot help with that subject.

Example Response:

<div><figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FLYg7jViF3XJdx5DdAKUB%2FCapture%20d%E2%80%99%C3%A9cran%20du%202025-12-02%2014-43-36.png?alt=media&#x26;token=897eb88c-5477-4939-b884-67e16bbc8893" alt="" width="563"><figcaption></figcaption></figure> <figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FRB32WnDBy2p4FwJVpBlH%2FCapture%20d%E2%80%99%C3%A9cran%20du%202025-12-02%2014-46-33.png?alt=media&#x26;token=a1438550-f972-4afb-9b53-771e74a6b3f3" alt="" width="277"><figcaption></figcaption></figure></div>

### Edit the user's question and its associated formulations

Once you have created a simple knowledge item, you can edit the principal user's question, which represent an intention, by clicking on the ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAWCAYAAAArdgcFAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wcQCBYZyN0ErAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAHeSURBVDjLrZTda9pQGMZ/jWeGhDVusx8otuLWrR0TSgfdxQr777eLMXBlFgq1FTsxVlFJ3M4ayceuzNQkmtqdm8OBvL/znOd5824EQRDwyJWEUNaBdQdjag0T1/NZpm3jocpvOkMuWj0ANrUsZ9UyIqM8XnmtYXLR6iEyCpXdZ9jS4UfzLtEqkQbqej61K5PuaIyhq5weldCygonn0+5bAJwcFCIZKGnAn+stuqMxeUPjrFpGy4oQmDc02n0LSzqRcJcqt6TDt8ufSMeltJ3j5KAwV3zTGTKw/2DoKjldjYQrloG/1Fu4ns+b0haHe1tzxbWGSbtvsfv8Ke9fF2O7JhZ+27M4vzYBOH5VYH8nFxZPbbKlE/uaWWtEXA+fX5uIjMKHoxJ5Qw8/tqTD96sOtnR4V97hZfFFIjgWbo5+ITIKH6vlOR8HtuTrZRvX8yOvSVoRuP37nv3t3Bx4apPIKHw6rsSGt6g60ueu52NLh0rh33OnwWlZwenbvVjwIjRW+cT1AGiaQ+rNLq7nA2Doavibp50WQRBEZ8ttz0LeT8Kzpj6hmN8M50eSytnzdI/Ak5Sl8XhxV9KAV10WB049FdMEGLeLVYrXBa8cXOuCQ1vSBvhQcCTQ/2HF7CV/ASslo4fUp0eOAAAAAElFTkSuQmCC) button.

Since an intention can be expressed in many different ways, you can add similar formulations to the principal user's question through the **Formulation** field. Click **Add** or press **Entry** to validate.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2F3kBvG7JLGXwhAfKDpdoT%2FCapture%20d%E2%80%99%C3%A9cran%20du%202024-01-02%2015-48-13.png?alt=media&#x26;token=ae4581b5-f6e4-46df-8710-ba6bc75f3cae" alt="" width="563"><figcaption></figcaption></figure>

Formulation can be added by entering a string (text) or by adding matching groups.

Once added, formulations can be edited, deleted individually or massively.

> note: the mass deletion option will only appear when you have more than 1 formulation. Mass deletion allows you to choose one formulation to conserve while deleting all others.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FW4TRoJFppBGRJymzJvXP%2FCapture%20d%E2%80%99%C3%A9cran%20du%202024-01-02%2015-51-45.png?alt=media&#x26;token=638f5cca-c2a3-4947-93db-af2d50ba0bf9" alt=""><figcaption></figcaption></figure>

The added formulations are sorted in the following order (from top to bottom of the list):

* Numbers (sorted by magnitude)
* Formulations using default variables such as integers, dates or email addresses (sorted alphabetically)
* Other formulations such as matching groups or text (sorted alphabetically)

Note that a formulation can only be used in one knowledge item.

### Use advanced options for your formulations

There are 4 tabs at the bottom of the user's question panel :&#x20;

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FCDYRZLPafbqxdSVeccSJ%2FCapture%20d%E2%80%99%C3%A9cran%20du%202024-01-02%2016-10-14.png?alt=media&#x26;token=17e39908-65b5-4f27-8f64-cbc535905096" alt=""><figcaption></figcaption></figure>

**Simple addition**

This tab allows you to choose the the type of your formulation:

* **Formulation** : it's the default type without any special options.
* **Keyword** : formulations will be created as **keyword**.

  Keyword has a bigger weight on our matching system, which means if the bot matches with a knowledge item A that contains a keyword and with another knowledge item B that contains only a formulation, the knowledge item 1 will be considered by the bot as a more appropriate answer than B even when B might have a higher matching score.

  Keywords added as a formulation are symbolized by the  icon.
* **Exclusion**: it allows you to exclude a formulation, which means the bot will ignore this formulation in its matching system and, therefore, the knowledge item will never be triggered through this formulation.

  Excluded formulations are symbolized by the  icon.

**Search**

This tab allows you to see the matching details of a given phrase with the existing formulations witin the user's question.

Enter a phrase and click **Search**. You will see to which extend this sentence matches the formulations you have already added. This will give you a better idea on the relevance of your formulations.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FUEZJGc81l2jUB5Jdwy06%2FCapture%20d%E2%80%99%C3%A9cran%20du%202024-01-02%2016-19-03.png?alt=media&#x26;token=6bb56d31-ed56-4ac8-a2c1-8e418c6e4970" alt="" width="563"><figcaption></figcaption></figure>

By clicking on the ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAVCAIAAABHbRCDAAAAA3NCSVQICAjb4U/gAAAAGXRFWHRTb2Z0d2FyZQBnbm9tZS1zY3JlZW5zaG907wO/PgAAAPZJREFUSIlj/P//PwONAROtLaCTHSwkqXZycv769Sucy83NvW/fXoK6hktYDRc7SIvzjMyMX79+HTp4kIGBwc7eno2Njfp2hIWGMjAwvHj+nIGBISY6mkhdjHjyeVFR8dGjR0lyhLW1dV9fL5ogAX/k5uViurenp4eBgaGkpARNfMnSpefOnsM0BLsdS5YuZWBgePbsGSMjIwMDg5CgkJeXJwMDw6rVq3/9+nXr1i2IGjY2Nkjobdu2/d37d+fPnX/27BlEL7LLsIeVubkFMldZWXnZsqUMuPN5VFT03bt3kbWcPHkCzh4u+WO42IEvf1ALDJewAgAAVFoUhKAOxQAAAABJRU5ErkJggg==) icon, you can get more details about the matching process.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FV1FXmRGEuWGFLA9YmTDc%2FCapture%20d%E2%80%99%C3%A9cran%20du%202024-01-02%2016-19-34.png?alt=media&#x26;token=72c2bf54-c9f1-4c4c-b02a-43ab4c498c36" alt=""><figcaption></figcaption></figure>

**Options**

There are 3 options in this tab:

* **Export:** this allows you to export, in different formats, files containing all the formulations associated with the knowledge;
* **Massive addition:** this allows you to import multiple formulations at once. Simply enter formulations (separated by line breaks) or copy-paste a list into the designated field, then click **Add**.
* **Options:** this allows you to perform advanced actions on your knowledge item:
  * **Strict matching on formulations**: when this option is activated, the knowledge item will only be triggered when there is a exact "textual" match between the user question and formulation. For example, if two letters of a formulation are reversed, the knowledge will not be triggered.
  * **Specific reword sentence**: you can find more information here.
  * **Enable reword**: when this option is activated, this option authorize the bot to use this knowledge item as a **reword** when it can not find a direct match between the user question and your knowledge base.
  * **Non exportable knowledge**: when this option is activated, the knowledge can not be exported.
  * **Exclude from top knowledge** when this option is activated, the knowledge item will not appear in the top knowledge section, whether it is automatic or manual top knowledge.

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FV61xjzom2xlxOFLwgHpr%2FCapture%20d%E2%80%99%C3%A9cran%20du%202024-01-02%2016-20-16.png?alt=media&#x26;token=8069d283-45fa-46a5-a7de-6c2c19c46f91" alt="" width="563"><figcaption></figcaption></figure>

## Decision Trees

A decision tree can be used to manage the conversational logic of a bot in the following cases:

* When a user's question is too vague or can lead to several answers depending on complementary elements;
* When a user types a sentence that makes sense only contextually.

To create a decision tree, just click on the ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAnCAIAAAADwcZiAAAAA3NCSVQICAjb4U/gAAAAGXRFWHRTb2Z0d2FyZQBnbm9tZS1zY3JlZW5zaG907wO/PgAAA6BJREFUWIW1l81u20YQx3f2k5Tsgw34FXoo0EsPvbUP0TforS+Qp+gL5NY3yEM0PaVALgFSoGcDilHBYmTatHZ2dnMYe7miFImxpDkIpDjcH2d3Zva/kFISL7W/PvyXr3/54bvxL8oXIw8xPd41z0q+iJHy0xijEAIAAOAI1AGsvGVSvgWAlBI77MbvopaAjMwmhIghPLkCEBEUxj5fY8PWbCr/jDGWJCkljyWlzN/xiKgBOHQpZfbhEdhzD3Uwh/mrjTE7JoYthICI/E1sW8FD6gAZYxzJK221WhGR1vpr4DXqJlJKqfU35Hk2RPTea62VUpvgfsQBkoiUUi9DCiF4elarVcnjlRKbOXwUZAanlHiZGZypMsNEURgAcCCSzVqbUiKisvbEoCNyoCEEa+3hSLbpdIqIRMR11VPLQGOMSqkxw7199/Hvf/7d68YlEEIow+17GCdtCKGu6zHUqx9/E0L8//7PvZ4ppeVy6ZxTSimlAKBfVw50TO/+VuOmkVc3pSQHzXazex3FlFLc5vh2GOuJqFrrECiD+2ziixNRAYA346fKZD53BkQ8Ozvb+trbdx9//f2PvaO/ef3q55++3/poPp/XdW2MUUr1keVkPpGV69rHypvUdDodOcnjK0cIgYiLxWIymVhr12JlI6Ktrx1opdYRmxrxRFTv/XYqaw5EPAW16zqWNWvUrLIQw9FzKsa4Wq24Q/X7K0u6zO66bjKZ7B3rzetXI6lN81kpJaXKCMgbEBERkfceES8vL4/VkGOM19fXzjlOYK01APRznfUmgGyaz0dBCiFmsxkAsHravq5SSqWU1ioEvL+/Pxw5n8+998YYbkk5e4Y5zFpSa9O27YHgtm1vb2+11lkprmlEzqYy3JRSjHq5XMYYz8/PX4BcLJpPn2a8lnk5eYYBYE2SlVQWWnd3dw8PD1dXV+P3opTSzc3NYrGo69paa6176vhSMkKUKjyLGt5/iCiE4L333ocQptPpxcXFbnZKqW3b2WwWY6yqyjnnXOWcNcbk6eXfofzMx6byHwBo27ZpGmttVVV1XWutq6oSQiBijPHx8bHruqZpiMgYw1E6V1lrynNHXy+7TxwcMWJA9LwpIWIIgZ9m8fycg1prbYxxzhljGbnnxCHWm1T24GutFSIqpVhmxmfLup5HN8ZorTl9xp6utkbMAbGMJqIQiCiUcn691tfqZOxJcgAW66fmUu48f1aS8qmty8LKOtlsrl8Atm0QkeA8OSkAAAAASUVORK5CYII=) button. Then, the same process of editing the user question and the bot answer occurs. This leads to a knowledge such as:

<figure><img src="https://264031769-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMvi3Izk7dvjl9HitZpp%2Fuploads%2FBAMw2PfHAkr1WOUUnt3E%2FCapture%20d%E2%80%99%C3%A9cran%20du%202024-01-02%2016-23-30.png?alt=media&#x26;token=731b77ef-f8b0-40b6-b315-17abac1cc7d4" alt="" width="512"><figcaption></figcaption></figure>

For more tips on creating decision trees, continue to read this article.

Next step: to enrich the content of your answers, learn more about the answers elements.
