# Enrich Generated Responses

## **Enrich Generated Responses**

There are two ways to enrich your generative responses with images, buttons, quick replies, and more.&#x20;

[#add-enrichments-using-input-director](#add-enrichments-using-input-director "mention")

[#add-enrichments-using-documented-data](#add-enrichments-using-documented-data "mention")

Use one option based on the type of content you want to enrich:

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><p><strong>Input Director</strong> </p><p></p><p>Perfect for adding enrichments to <strong>web-scraped / feed content</strong></p><p></p><p>If you need to add training for very specific user inputs</p></td><td></td><td></td></tr><tr><td><p><strong>Document</strong></p><p></p><p>Ideal for incorporating content that is <strong>not available</strong> on your website / feed</p></td><td></td><td></td></tr></tbody></table>

## **Add Enrichments Using Input Director**

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FwzolOnjA4ITdbQddQe7H%2Fenrich%20video%20-%20Made%20with%20Clipchamp.mp4?alt=media&token=374d2f81-b389-4cde-8134-53f960e71aa9>" fullWidth="true" %}

To add a new enrichment for a **generated** response using Input Director, follow the steps below:

1. In the Satisfi Labs dashboard, go to **Studio -> NLP Manager -> Responses**
2. Click "+" in the top right of the Responses Dashboard.
3. Create your new enrichment by adding the following fields:

<table><thead><tr><th width="424">Field</th><th>Details</th></tr></thead><tbody><tr><td>Volume Name</td><td>Your Volume Name.</td></tr><tr><td>Channel Name</td><td>If the volume name is not selected first, no channels will appear. </td></tr><tr><td>Language</td><td>English is the only supported language at this time.</td></tr><tr><td>Response Name</td><td>Response Names should be all lowercase, with no spaces or special characters except for underscores. Example: enrichment_add_new_user </td></tr><tr><td>Content Group</td><td>The default group is <strong>General</strong>; however, you can use this field to help organize your responses in whatever works best for you.</td></tr><tr><td>Content Type</td><td>Select <strong>Enrichment</strong></td></tr></tbody></table>

4. Add the enrichments including any relevant buttons, quick replies, or rich media.

{% hint style="warning" %}
Don't add any text copy when you add enrichments using the Input Director. Our platform will use already scraped web import or feed import copy to generate responses.
{% endhint %}

5. Select the toggle labeled **Input Training** and begin adding sample inputs (minimum three).&#x20;

{% hint style="warning" %}
Input Training is **VERY** important. The quality and breadth of your inputs will determine how well training works for your enrichment. &#x20;

* We recommend having a total of **10-15 inputs** per Enrichment. You must manually write at least 3 chat-like inputs before generating additional inputs.
* Add full sentences/questions for Input Training
  {% endhint %}

6. Select the **Generate Inputs** button to add additional training.
7. Delete any undesired sample inputs by selecting the toggle to the left of the input and clicking **Delete Selected Inputs**.
8. Press **Save New & Publish** and test the new enrichment.&#x20;

***

## Add Enrichments Using Documented Data

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2F5DJxUJ3OjyBT2YMogcb0%2Fenrich%20video-%20part%202%20-%20Made%20with%20Clipchamp.mp4?alt=media&token=1e14fa8e-67c1-4761-b92d-6a563c0fd4d5>" fullWidth="true" %}

In addition to adding a new enrichment response name, you can also add enrichments directly to documented data! To add a generative enrichment to an existing document response:

1. While in the [Satisfi Dashboard](https://dashboard.satis.fi/Users/Login), go to Studio -> NLP Manager -> Responses
2. Locate the document data you'd like to add an enrichment to
3. Click the pencil icon to start editing content
4. Add the desired enrichment using the following instructions:

{% tabs %}
{% tab title="Add Buttons" %}

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FpU3Twf9HHP8MUdK5jpaJ%2Fimage.png?alt=media&#x26;token=08ba0a26-c868-466e-bf30-92ad22629224" alt=""><figcaption><p>Example of a Button Enrichment Added Directly in Documented Data</p></figcaption></figure>

Below the content where you want to show the button, add an optional button label and the URL.&#x20;

**Example:**

```
Label: Learn More!
URL: https://www.satisfilabs.com
```

{% hint style="warning" %}
If no button label accompanies a URL, your system will generate a relevant button label!

For a URL, please include "https\://" before the desired URL link.&#x20;
{% endhint %}
{% endtab %}

{% tab title="Add Images" %}

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FQInbKRR8amxc2EwwkkWe%2Fimage.png?alt=media&#x26;token=2904fdab-14c5-4174-882b-3d576b29bb3b" alt=""><figcaption><p>Example of an Image Enrichment Added Directly in Documented Data</p></figcaption></figure>

First, you need to obtain the URL link for your desired image:

1. While in the [Satisfi Dashboard](https://dashboard.satis.fi/Users/Login), go to Studio -> Images
2. Upload or find an image already in your library and select it
3. Copy the URL found in the image window as shown below:

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FXPDvI5oBCCi7ATURF3TF%2Fimage.png?alt=media&#x26;token=84cd0792-dd67-4bd4-bb36-ffe266ea4772" alt="" width="563"><figcaption><p>URL Image in Your Image Library</p></figcaption></figure>

4. Go back to your documented data where you'd like to apply the image and click Edit
5. Below the content where you want to show the button, add an optional button label and the URL.&#x20;

**Example:**

{% code overflow="wrap" %}

```
Image URL: https://prod-satisfilabs-resources-gcs.satis.fi/1/TEST.jpg
```

{% endcode %}
{% endtab %}
{% endtabs %}

***

## Add Inline Click Actions in Documented Data

Inline Click Actions are designed to make conversational flows cleaner and more interactive. This tool gives you the ability to embed clickable links inside messages that trigger actions and messages.

Clicking an inline link instantly sends a predefined message to the bot, just like a typed response. This is great for surfacing FAQs, creating dynamic responses, or routing within a generative response without the need for buttons.

{% tabs %}
{% tab title="View in Dashboard" %}

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FVmFL6anstfR9sk40adX6%2Fimage.png?alt=media&#x26;token=263a3cc7-8979-4c91-b6a8-fef81ce17282" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="View In Chat" %}

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FVojIv5QOLyfcZIALnh2i%2Fimage.png?alt=media&#x26;token=013170b3-c852-4194-98f6-f46d01763cfa" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### How to Use <a href="#how-to-use" id="how-to-use"></a>

Inline Click Actions are powered by a special URL with three parameters:

{% stepper %}
{% step %}

### Create a URL

Inline Click Actions are powered by a special URL with three parameters:

#### Base URL

```
Example: https://satis.fi/action/
```

This is the static endpoint used to process the action. This text will NOT change.

#### **Name**

```
Example: ?name=submit_ticket
```

A unique ID for the click action. This helps track usage or group-related actions.

#### **Postback**

Defines what the system should send when the link is clicked. There are two options:

* Prewritten Response: Points link to a specific prewritten response record.

```
Example: &postback=response_name=buy_tickets
```

* Free Text: Acts like input text and may trigger prewritten or generated responses.

```
Example: &postback=I+want+to+buy+tickets
```

#### **Reply Text**

```
Example: reply_text=Submit+Ticket!
```

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FF4yczxE6r6IYu8723hrP%2Fimage.png?alt=media&#x26;token=5b3c8f9d-90c4-4db1-95dd-1eb79405af14" alt=""><figcaption></figcaption></figure>

The message shown in the user chat window when they click the link.
{% endstep %}

{% step %}

#### Apply the URL to Documented Data <a href="#apply-the-url-to-documented-data" id="apply-the-url-to-documented-data"></a>

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FibgY70PjvocyduEjvmiD%2Fimage.png?alt=media&#x26;token=373ceae0-ff26-4de3-9c5d-ada357eede27" alt=""><figcaption></figcaption></figure>

Add the URL to your documented data within the relevant data chunk!
{% endstep %}
{% endstepper %}

***

## FAQs

<details>

<summary>If I add a button directly in documented data and I don't add a label, what does the button say?</summary>

If no button label accompanies a URL, your system will generate a relevant button label!

</details>

<details>

<summary>When should I use Input Director vs Documents when adding new enrichments?</summary>

**Input Director:**&#x20;

* Allows you to add buttons, quick replies, images, and gifs
* Use Input Director to add enrichments to **web-scraped / feed content**
* Training for specific user inputs
* If the topic is very broad and lots of different generative content could be used to answer it

**Document:**&#x20;

* Allows you to add buttons, images, gifs
* Ideal for incorporating content that is **not available on your website / feed**
* Takes less time to add an enrichment when adding content in a documented format

</details>

<details>

<summary>Do I need to put generative enrichments in documented data next to the relevant content? Or can I add it anywhere in the response name's data?</summary>

It is important that generative enrichments always appear alongside the content where the user wants them to appear. URLs without any generative content may not be surfaced.

</details>
