---
description: >-
  Describes how you can configure your solution to automatically open up a modal
  window when the answer text is greater than 400 characters
---

# Open Long Response in Modal

## Introduction

If the case where your Teneo Response answers are very long are imported from the bulk import tool or they are arriving from a CMS you can instruct Leopard in the solution config area to crop the long response in the main chat window and present a modal containing the longer answer text.&#x20;

This saves the effort in having to go through each answer and having to manually add the output parameters to show a modal. Current configuration is set to look for answers greater than 400 chars and if found the answer will be truncated at 300 chars and ellipsis added. A "more" button will be shown and a modal will open with the user's question as the title and the body containing the long answer text. By default this new feature is not enabled until you instruct Leopard to do so.

### Screenshots

{% tabs %}
{% tab title="Chat Window" %}
<div align="left"><img src="https://4062709520-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La71Iy76rotlqbCOWoQ%2F-Lc3-CMweJbdixsMj7I_%2F-Lc306fbjWH4OpBzkaRD%2Flong-responses.jpg?alt=media&#x26;token=44f8f753-bea0-453b-a696-360b03d66378" alt="Long Response are cut short at 400 chars and the full response can be seen by clicking on the &#x22;more&#x22; button"></div>
{% endtab %}

{% tab title="Configuration" %}
![](https://4062709520-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La71Iy76rotlqbCOWoQ%2F-Lc30M3zcdkTWNjvgHmW%2F-Lc31a6geGBO5XUKFf-a%2Flong-response-config.jpg?alt=media\&token=a5d093c4-3ef7-4674-9274-42bf2d2ee040)
{% endtab %}
{% endtabs %}
