# Ask Collection List

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.**&#x20;

### 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.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FbNXYDffYYOdeuEg82kP1%2Fask_collection_list_header_text.png?alt=media&#x26;token=9f1c5562-da66-4f13-bd59-3a97d8855c54" 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.&#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%2F7bV0mQoaISoeXxXFdrPX%2Fask_collection_list_question_text.png?alt=media&#x26;token=fd643a36-9812-499b-91e1-747591cc2d77" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FanxqzdR32L09O4j63Oug%2Fask_collection_catalog.png?alt=media&#x26;token=e248d866-ccb8-40aa-a113-c78be6a8d42f" 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.&#x20;

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

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FiY2kQRNA6tqeSfc52ND9%2Fask_collection_collection.png?alt=media&#x26;token=3d0f3b0d-5118-4d91-8ded-648184bf62d6" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FP2rR1tzKNQzsjzoGy8Gv%2Fask_collection_validation_error_message.png?alt=media&#x26;token=d3791498-40de-446b-ab54-55972cf3b34a" 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/~/changes/A8xmww5XU9i8x7QbfPLe/gallabox-bot-faqs#define-the-options-for-action-on-invalid-response) to continue with the flow.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FQVOdafEEKTD32QxwmLiE%2FAction_on_invalid_response.png?alt=media&#x26;token=c91583ea-e299-4077-8fcc-3e67119de43c" 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%2F6CIGEitlAFhiqT1E8l1K%2Fask_collection_.png?alt=media&#x26;token=c07085e7-4e70-45c1-b9fa-23c61c01b9eb" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This card will work in collaboration with the [Broken link](https://docs.gallabox.com/~/changes/A8xmww5XU9i8x7QbfPLe/bots/ask-questions/broken-reference "mention")Card.&#x20;
{% endhint %}

The Send collection card has to be edited as below:&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FNnfcBW1RzTViycropjH7%2Fask_collection_send_collection.png?alt=media&#x26;token=d511af54-ee92-4baa-9a64-38e93b8b3d6f" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FOzcV7dgl3VFWByk3nuGC%2Fask_collection_send_collection_custom%20variables.png?alt=media&#x26;token=4da0ca80-12a2-4a8d-bb22-2f681e4ae54a" alt=""><figcaption></figcaption></figure>

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

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

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

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FbSSbQwImnDUNi86BOsXY%2Fask_collection.png?alt=media&#x26;token=f92a739d-89e0-4952-b078-afa92eb82d3b" alt=""><figcaption></figcaption></figure>
