> For the complete documentation index, see [llms.txt](https://docs.intranet.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.intranet.ai/sharepoint-intranet/components/answer-chain.md).

# Answer Chain

A chain of questions and answers that guides employees to the right answer, step by step.

## What is Answer Chain

Answer Chain is the web part that **guides users through a chain of questions and answers** directly on a SharePoint page. Each answer the user selects leads to the next question, until the chain reaches its final outcome. Users can **navigate back** through the chain at any time to review their previous answers and change them if needed. They can also **restart the flow** from the first question: in this case, all previously selected answers are cleared and the chain starts again from the beginning. Questions and answers are stored in two **SharePoint lists.**

You can use Answer Chain in many ways across the company, for example:

* **Decision support**: help employees choose the right option (e.g. which request form to fill in, which tool or contract type to use).
* **Guided troubleshooting**: walk users step by step toward the solution of an issue.
* **Self-service FAQ**: replace long FAQ pages with a short, interactive path to the right answer.
* **Onboarding**: guide new employees to the resources, contacts and procedures relevant to their role.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FCwLMtCzRQuj1Xx2YtXoh%2FanswerChain.png?alt=media&amp;token=ba6f383a-5eeb-4255-a835-4f533adfa1c1" alt=""><figcaption></figcaption></figure></div>

***

## Add the Answer Chain web part to a SharePoint page

* If your page is not already in edit mode, click **Edit** at the top right of the page.
* Hover your mouse above or below an existing web part and you'll see a line with a circled +, like this: <img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Ffu1Yz9x1CGijMvthnK9I%2Fimage.png?alt=media&amp;token=d979d99b-85dc-4828-9e0f-ded961a37c41" alt="" data-size="line">
* Click on it and, in the web part search box, enter **Answer Chain** to quickly find and select the Answer Chain web part, which is named "IAI - AnswerChain".
* Click the **Edit** properties <img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FtISLi6Q95LSUM9SVsQJU%2Fimage.png?alt=media&amp;token=877a74a0-c70f-4308-8ca4-358a98d96ab3" alt="" data-size="line"> button on the left of the web part to open the property pane and set options. See below for more information.

***

## Configuration

1. [View settings](#view-settings)
2. [Lists settings](#lists-settings)

### View settings

The layout settings allow you to customize the appearance of your application by adjusting various layout settings.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F761k5L6Y77yIu0Z4CQgL%2FviewSettings.png?alt=media&amp;token=60b43eeb-0917-4146-b872-ae0a4a2d1068" alt=""><figcaption></figcaption></figure></div>

By opening this first configuration, you will see the following options:

* **Do you want to hide the background?** You can choose to **hide** or **display** the webpart background. The default setting is “No”. This means that, by default, the webpart is characterized by a white background. If you **enable** this option, the white card background will be completely **removed**, allowing the content appear directly on the page. As a result, the webpart will be **transparent**, showing either the **selected background image** or the **chosen SharePoint page color**.
* **Do you want to hide the background shadow?** You can choose whether to show or hide the background shadow. The default setting is “No”. This means that, by default, the webpart is characterized by a subtle depth effect that can make the webpart stand out more against the rest of the page. If you **enable** this option, the shadow behind the background will be removed, giving the web part a flatter, cleaner look without any depth.
* **Select the type of background shadow**: if you decide to set the background shadow, a further configuration will appear and you can select the style from **High Contrast, Light**, or **Dark** options.
  * If you select **High contrast**, this option creates a strong, bold shadow effect that provides a high level of contrast between the background and the content.
  * By choosing the **Light** background shadow, it will create a soft and subtle effect, giving a more delicate and gentle depth to the background.
  * Finally, the **Dark** background shadow style provides a darker, more intense effect, adding depth and emphasizing the background even more
* **Do you want to hide the title?** Here you can select whether to show the webpart title or hide it. If set to **visible**, the web part title will appear on the left side.
* **Enter the application title** : thanks to this configuration, you can **customize the application title**. If you keep it **blank**, SharePoint will show the default title “Highlights” at the **top left angle** of the webpart.
* **Do you want to set the height of the webpart** / **Enter the height of the webpart in pixels**: if you enable the first option, you can set the desired height for the webpart in pixels.

### Lists settings

The lists settings allow you to select the lists that contain the questions and answers to be displayed in the web part.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FJviGtBgbL4MDef9rZdRT%2FlistSettings.png?alt=media&amp;token=fa28e92f-44c0-41fa-9518-6d974f7d6879" alt=""><figcaption></figcaption></figure></div>

* First of all, **enter the link to the site** where to get the list of questions.
* Use the dropdown to **select the list where the questions are stored.**
* Use the dropdown to **select the list where the answers are stored.**

***

## Add questions to Questions List

To add/remove/edit questions to the Questions List, follow these steps.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FEPpgNfCW7h7a7FxKvq4a%2Fimage.png?alt=media&amp;token=7c3c5cc2-fc72-4211-b1f5-7e72cf1fe0e6" alt=""><figcaption></figcaption></figure></div>

Scroll down util you see the list named **Answer Chain Questions.**

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FJ42BA8alCC9ak2pbzQe4%2FquestionsList.png?alt=media&amp;token=8605af00-da31-456d-8410-7238b3550966" alt=""><figcaption></figcaption></figure></div>

To add a new question, click on **New**. The following panel will appear. The fields marked with an **asterisk** are **mandatory:**

<figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FWMHgANNHMk0gkdm08hV7%2FitemQuestion.png?alt=media&amp;token=07cf2b04-d501-4e10-bef4-5da97dabf374" alt=""><figcaption></figcaption></figure>

* **Title**: enter the title of the question. It can be a recognizable label (for example, Q1) or it can correspond to the actual text of the question. The title will not be displayed by the web part, but it will serve to link an answer to its corresponding questions.
* **Question**: enter the the actual text of the question. The body of the question can be **customized** with the desired fonts, sizes, and colors.
* **Is first:** enable this option if the question is **the first one in the flow**. **Please note:** only one question can be marked as the first one. Otherwise, the web part will return an error.

## Add answers to Answers List

To add/remove/edit answers to the Answers List, follow these steps.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FsKLFmvrqjaSKBbjUdyGW%2Fimage.png?alt=media&amp;token=a9a8494d-14ef-44ba-8271-c9efd0005956" alt=""><figcaption></figcaption></figure></div>

Scroll down util you see the list named **Answer Chain Answers.**

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FCu4BMWLoTlPwaLH73Bwd%2FanswersList.png?alt=media&amp;token=6f5f517a-1caa-458a-937f-8914d974098e" alt=""><figcaption></figcaption></figure></div>

To add a new answer, click on **New**. The following panel will appear. The fields marked with an **asterisk** are **mandatory:**

<figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F192CYQsJnFiISbBWexUF%2FitemAnswer.png?alt=media&amp;token=77a7749f-3f2f-4d82-8c8b-221c0587abab" alt=""><figcaption></figcaption></figure>

* **Title**: enter the title of the answer. It can be a recognizable label (for example, Q1) or it can correspond to the actual text of the question. The title will not be displayed by the web part, but it will serve to link the answer to its corresponding questions.
* **Answer**: enter the the actual text of the answer. The body of the question can be **customized** with the desired fonts, sizes, and colors.
* **Parent Question:** use the dropdown to select the **question that this answer refers to**.
* **Next Question:** use the dropdown to select **the question that will appear when users click this answer**.
