# Text Response Capture

### Overview

The Text Response Capture is a component of the [Chat Bot.](../sms/chat-bot-basics) It captures keywords when a user replies to a message.

By clicking on the '+' icon next to the new Chat Bot, the Text Response Capture will be displayed as an option to build the Bot.

&#x20;

![decisionmenuchatbot1.png](https://3088276961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC6qMwMGWBgxnN70QsDuH%2Fuploads%2Fgit-blob-cab7b6de71ef458976d695c8f9dd01977243188d%2Ftext-response-capture-control-v182-0.png?alt=media)

The first box displays the text that the user will read when receiving the text message from the Chat Bot. The message can include:

**Expression**

To add an existing Variable within the App.

**Web Link**

To direct the user to their App session.

In the Text Response Capture box there is a Select an Item dropdown from where to pick the Next Message\* the user will receive when replying to the first message.

\*Next Messages are created as [Decision Options.](decision-menu-control)

![organizing info](https://3088276961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC6qMwMGWBgxnN70QsDuH%2Fuploads%2Fgit-blob-0f79c70ad5506c3ee8ba8ad3d4fb69e52c329ff4%2Ftext-response-capture-control-v182-1.png?alt=media)

### General

In the General tab of the inspector section, the following parameters can be set:

**Variable Binding**

To bind the data from the captured text to an existing Variable.

**Variables**

To define where to save the control’s inputs.

### Actions

In the Actions tab of the inspector section, different actions can be set before and after the voice prompt is sent, as well as on capturing a text response.

**Before sending chat prompt**

The action chain that can be run before a chat prompt is sent.&#x20;

**After Sending Chat Prompt**

The action chain that can be run after a chat prompt is sent.&#x20;

**On Text Response Capture**

The action chain that can be run on the capture of the text response.&#x20;

### Example:

In this example, the user receives a message and is asked to send a response. The App will capture the user’s input and provide an specific answer to it:

![organizing info](https://3088276961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC6qMwMGWBgxnN70QsDuH%2Fuploads%2Fgit-blob-0f79c70ad5506c3ee8ba8ad3d4fb69e52c329ff4%2Ftext-response-capture-control-v182-1.png?alt=media)
