# Decision Menu

### Overview

The Decision Menu is a [Chat Bot](../studio/studio/builder-bar/chat-bots-builder) and [Voice Bot](../studio/studio/builder-bar/voice-bots-builder) component.

In both Chat Bots and Voice Bots, the Decision Menu captures the user’s decisions and guides them through a [Journey](https://docs.airkit.ai/?q=the-journey-builder) Flow. It is configured to route the user through different options that they can select by pressing buttons or speaking/texting keywords.

By clicking on the ‘+’ icon next to the new Chat or Voice Bot, the Decision Menu will be displayed as an option to build the Bot.

![2021-12-09\_12-30-00.png](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-5945d62fbc6152d9aec6699b9734e02be7cb7e41%2Fdecision-menu-control-v184-0.png?alt=media)

### Chat Bot’s Decision Menu

#### Decision Menu

The Decision Menu box displays the text that the user will read when receiving the text message from the Chat Bot.&#x20;

The text can include the following components:

**Expression**

An expression editor to add an existing Variable within the App or transform data using Airscript.

**Web link**

Insert a weblink to direct the user to their App session.

![](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-4362d13e27114cac4c38505f95b7316cedc1df14%2Fdecision-menu-control-v184-1.png?alt=media)

#### General

**Variables**

Variables can be defined to save the control’s inputs and pass information to the decision menu control.

#### Actions

In the [Actions](../studio/studio/events/action-chains) tab of the Inspector, different actions can be set before and after the chat prompt is sent. &#x20;

**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;

#### Decision Option

The Decision Option box provides options to route to a specific chat response/control based off of the matched text.&#x20;

Decision Options should reflect the options offered to the user in the Decision Menu box. By clicking on a new Decision Option, the inspector section will display a Match box to enter the number or keyword that option is associated with.&#x20;

Each Decision Option can route to another decision menu or text response capture.

**Item**

An Item should be selected to provide the user with a result for that Match.

To create an Item, a new Decision Option should be added to the Chat Bot. This way, it can then be selected as a result of the Decision Option from the dropdown..

**Match**

In the Inspector, Matches can be added for each Decision Option. These can be numbers or keywords. Variants of the same keyword can be added in order to avoid mistakes, for example: TRACKING, Tracking, tracking.

![](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-121717f258ebf1956b7afac3c9bde04b03241d4d%2Fdecision-menu-control-v184-2.png?alt=media)

#### Add a Default Response

Response that gets sent if a user responds with text that does not match any of the decision options.

### Voice Bot’s Decision Menu

#### Decision Menu

The Decision Menu box displays the message that the user will listen to when receiving the call from the Voice Bot.&#x20;

The message can include the following components:

**Expression**

An expression editor to add an existing Variable within the App or transform data using Airscript.

**Web Link**

Insert a weblink to direct the user to their App session.

#### General

**Variables**

Variables can be defined to save the control’s inputs and pass information to the decision menu control.

#### Actions

In the [Actions](../studio/studio/events/action-chains) tab of the Inspector, different actions can be set before and after the chat prompt is sent. &#x20;

**Before Sending Voice Prompt**

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

**After Sending Voice Prompt**

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

**No Valid Response**

The action chain that is run when there is an invalid response from the user or there is no response.

#### Decision Option

The Decision Option box provides options to route to a specific voice response/control based off of the matched keyword.&#x20;

Decision Options reflect the options offered to the user in the Decision Menu box. By Clicking on a new Decision Option, the inspector section will display a Match box to enter the number or keyword that option is associated with.&#x20;

Each Decision Option can route to another decision menu, touchtone capture, secure touchtone capture, or forward a call.

**Item**

An Item should be selected to provide the user with the result of that Match.

To create that Item, a new Voice Bot control should be added to the Voice Bot. This way, it can then be selected as a result of the Decision Option from the dropdown.

**Match**

In the Inspector, Matches can be added for each Decision Option. These can be numbers or keywords.&#x20;

The DTMF Matcher allows the user to respond by pressing keys while the Keyword Matcher allows the user to respond by speaking.&#x20;

#### Add a Default Response

Response that gets sent if a user's response does not match any of the decision options.

### Example:

In this example of DTMF Maching, this Chat Bot starts the App Journey by asking the user whether they want to place a new order or track an existing one.

![organizing info](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-bed46b92b5f74caac129d9345a77f9914b08dd4e%2Fdecision-menu-control-v184-3.png?alt=media)

If the user presses 1, they are directed to their App session to place an order.

![](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-d225e8c1c3959b11a3feb95f2a54a6d6ded33bc1%2Fdecision-menu-control-v184-4.png?alt=media)

If the user types the word TRACKING, they will land on the selected Web Flow to track their order.

![](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-e684c7710a6c10377613fd815d201ac8739340b6%2Fdecision-menu-control-v184-5.png?alt=media)
