# Ask Keyword Option

> **Who can use this Card?**
>
> * Gallabox Users having permission to either build and deploy bots or manage bots.
> * Available on all Paid Plans.

## Overview

In WhatsApp, the options are displayed as a number list of choices, but now **you can use multiple keywords for each option, aside from the numbers.**

This way the valid answer to this question could be the corresponding number or one of the corresponding keywords.

In the Gallabox bot-builder, the **Keyword Options** looks just like a **List Option, b**ut when you start listing out the options, you'll be able to **associate maximum of 10 keywords to each Option** aside from the numbers (Which are provided by default as keywords).

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FZfxyqxSFghUgnrSFo3Ab%2FAsk%20Keyword%20option.gif?alt=media&#x26;token=5e4cbd82-dc23-40f3-93ec-cc09058fa228" alt=""><figcaption></figcaption></figure>

The Ask Keyword Option Card has the field for Question Text, Options Type, Attempt, Validation Error Message, Action on Invalid Response, and Store response in the variable. Let's see what goes into creating the **Keyword option** by creating a self-service knowledge base bot.&#x20;

### Question Text

This is the space where you ask your customer the question or write the description like - "Which feature of Gallabox you need help with?" The possibilities are endless.&#x20;

The above text can be made Bold, Italic, or strikethrough using the options provided. The text will add the asterisk(\*) for **Bold**, Underscore(\_) for **Italic text**, and Tilde(\~) for **Strikethrough** as shown in the text below.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2Ff2WMDWXm9sZcm601luoU%2Fask_keyword_option_question_text.png?alt=media&#x26;token=6a42cdd5-9672-4f87-a8b4-6603e7139f99" alt=""><figcaption></figcaption></figure>

### Options Type

For the options, Gallabox gives you the liberty of adding Static and Dynamic Options.&#x20;

Static Options means the option will be fixed while the Dynamic options are capable of changing. If you have the dynamic values stored somewhere in your database, it can be accessed using [API Call](https://docs.gallabox.com/bots/bot-connectors/connect-your-system-with-the-whatsapp-chat-bot-using-api).

**You can add a maximum of 20 Options.**&#x20;

Below is the example of how you can add the Static Options. With the option text, you can add upto 10 keywords.&#x20;

{% hint style="info" %}
Make sure to add the keywords that are relevant with your customers.&#x20;
{% endhint %}

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FAL6ifXhoXVpImRSYKHXa%2FOptions.gif?alt=media&#x26;token=a52f55fe-194a-4d62-9134-d415147c9361" alt=""><figcaption></figcaption></figure>

For the Dynamic Options in **Ask List Option**, we have three fields - Variable to iterate, Path to ID, and Path to Title.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FCWfJEy60s6yjLmkaM004%2Fask_keyword_option_dynamic_options.png?alt=media&#x26;token=1a0adba5-61b7-442f-a85f-5d92a0e33286" alt=""><figcaption></figcaption></figure>

* Variable to iterate: You have to add the name of the array here.&#x20;
* Path to ID: Add the path from your internal database in curly brackets.&#x20;
* Path to Title: Add the title in curly brackets like this {{first\_name}}.&#x20;

### **Attempt:**&#x20;

In this field, you have to add the number of times you would like to ask the same question to your customers when you get some other response.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FKbyZ6jgs2r3pl7BZlv5w%2Fask_keyword_option_attempt.png?alt=media&#x26;token=c4ea4241-7ccb-4cc5-aa8f-3ac16668e6f2" alt=""><figcaption></figcaption></figure>

### **Validation Error Message**

This message is for the customer's when they respond randomly to the question you have asked. \
For Example: If the customer doesn't respond with the options, then you could send a message - Please choose from the above options or Choose from the options listed.&#x20;

<figure><img src="broken-reference" alt=""><figcaption></figcaption></figure>

### **Action on Invalid Response**

This is for the Action you want to take when a customer gives an invalid response. You can either [**End the Flow** or **Skip the question** or **Proceed to Fallback**](https://docs.gallabox.com/gallabox-bot-faqs#define-the-options-for-action-on-invalid-response) to continue with the flow.&#x20;

<figure><img src="broken-reference" alt=""><figcaption></figcaption></figure>

### **Store response in the variable**

You can create or use the previously created variables to store the responses shared by your customers. \
\&#xNAN;*If you are creating variables for the first time, all you have to do is type the Variables name in the box; it will ask to create the variable once you click on Create "Variable Name" as shown in the screenshot below.*&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FxHJHkpDdp3jCgo8VIRzV%2FAsk_list_option_store_response_in_the_variable.png?alt=media&#x26;token=6d89f825-baaf-434b-bdfa-cd54fa3ec53e" alt=""><figcaption></figcaption></figure>

Once you have set all the fields required and click on **SAVE**, the card will look like as shown in the screenshot below.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FdQgEWAozekaflb4btZdt%2Fask_keyword_option.png?alt=media&#x26;token=4fede4d9-afb4-4c11-b9ef-6d63649de112" alt=""><figcaption></figcaption></figure>

A sample flow using the Ask Keyword Option, Send Text, Delay, Jump to, and Unassign Conversation is as below:

<figure><img src="broken-reference" alt=""><figcaption></figcaption></figure>
