# Ask Collection List

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

### Overview

This card can be used only when you have created a catalog in Facebook, created the product sets and connected the catalog to Gallabox.

If you haven't created the product sets on Facebook, click on <https://www.facebook.com/business/help/620275848114281?id=725943027795860>

The Ask Collection Option Card has the field for Header Text, Question Text, Catalog, Collection, Validation Error Message, Action on Invalid Response, and Store response in the variable. Let's see what goes into creating the **Collection option.**

### Header Type

You can add a text something like "Welcome to our Catalog" or "Our Bestsellers" depending on the collection you want to share with people.

<figure><img src="/files/6uDGAm4SjMXCoHwNf9Sk" alt=""><figcaption></figcaption></figure>

### Question Text

This is the space where you ask your customer the question or write the description for the collection you are sharing with your customers.

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.

<figure><img src="/files/YgQ27yvUlslRlHOnkZah" alt=""><figcaption></figcaption></figure>

### Catalog

You have to choose the catalog that you would like to share with your customers. This is the same Catalog from which the collections has to be listed.

<figure><img src="/files/cP7h3LsjR5TCSPcJGoeV" alt=""><figcaption></figcaption></figure>

### Collections

You have to choose the collection from the list that you would like to share with your customers. If you are not seeing any collections that means you have not created any in your Commerce Manager. Go to <https://www.facebook.com/business/help/620275848114281?id=725943027795860> to understand how you can create.

{% hint style="info" %}
"All Products" is the default set created by Meta.
{% endhint %}

<figure><img src="/files/yM6B4rsHYWVT3hb3J0xC" 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.

<figure><img src="/files/67DQ5qrX5mwovp0y2TSC" 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**](/bots/gallabox-bot-faqs.md#define-the-options-for-action-on-invalid-response) to continue with the flow.

<figure><img src="/files/YDQxbqsMjMHPhYMoCEDL" 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.*

<figure><img src="/files/bJH4uI0PRydf39EBUm5l" 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="/files/sbw4tcCYRUt7wxu5nJrn" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This card will work in collaboration with the [Send Collection](/bots/send-card/send-collection.md)Card.
{% endhint %}

The Send collection card has to be edited as below:

<figure><img src="/files/UyLu1vbFNwcSq7Hr0VSq" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Make sure to check the box for - Dynamic collection from previous response
{% endhint %}

Under the Collection for the Send Collection card, you have to choose the custom variables as shown in the picture

<figure><img src="/files/Jhw4JY5MHhCNGZ21wwru" alt=""><figcaption></figcaption></figure>

* user\_response.id: In this variables, the payload of the button that the user responded with will be stored.
* user\_response.title: In this variable, the title of the product that user responded with will be stored.
* user\_response.description: In this variable, the description of the product that user responded with will be stored.

We have chosen the **user\_response.title** variable.

Once you have edited the Send Collection card, the flow will look like

<figure><img src="/files/NTxE2jNGgHPx2rrfSHYz" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gallabox.com/bots/ask-questions/ask-collection-list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
