Answer
Apr 19, 2021 - 07:56 AM
When your users are submitting a question they are required to associate at least one category, tag, or product to the question to ensure they give you some context on what the question is about in order for you to effectively answer the question. You'll need to either allow users to select a category or you can also automatically identify what category or product a question should be related to through your widget parameters.
Users Selecting Category Association
We recommend for widgets to automatically associate questions with a category when possible (covered below), but you have the option to give users the ability to select their own association through the "data-show-category" parameter...so you can add this to your widget parameters:
If you have this identified as true, your ask question form will include a dropdown where users can select the category that their question is associated with. The categories that will be shown are the ones reflected in your Answerbase Administration Portal under "Categories" as you see here:
You can add, edit and manage your categories within that area.
Categories
In your administration interface you'll see a "Categories" navigation option, which will show you what categories you have saved and you can create new and manage your categories in that area. You'll see that for all of your categories you have listed, you have an Answerbase category ID as shown here:
If you want to automatically associate new questions asked through the widget to an existing category, you can do so by using the "data-category-id" parameter....so in this case if you wanted to associate all new questions to "Confined Spaces" you'd add the parameter like this:
If you have that identified with a recognized value, when customers ask questions from your widget it will automatically associate all new questions with that new category.
Products
If your Q&A engagement is associated with specific products that you're selling online that customers can purchase or you can generate leads for, you can identify the products that you're selling under "System Settings > Ecommerce Module" in your administration portal. Click on the "Products" tab and you can identify your products there. Similar to categories, if you'd like questions asked associated with a specific product....you can utilize the Widget Ecommerce Parameters to identify the association. If you're going to use these ecommerce parameters, you can simply identify the product values within your widget code and Answerbase will auotomatically create/update the products on our end to be consistent with what you populate within those parameters.
Here are the parameters that we recommend utilizing if you're going to use product associations.
You can also add the parameter identifying price and description if you'd like, but those aren't required.
If you have that identified with a recognized value, when customers ask questions from your widget it will automatically associate all new questions with that product.
Users Selecting Category Association
We recommend for widgets to automatically associate questions with a category when possible (covered below), but you have the option to give users the ability to select their own association through the "data-show-category" parameter...so you can add this to your widget parameters:
data-show-category=true
If you have this identified as true, your ask question form will include a dropdown where users can select the category that their question is associated with. The categories that will be shown are the ones reflected in your Answerbase Administration Portal under "Categories" as you see here:
You can add, edit and manage your categories within that area.
Categories
In your administration interface you'll see a "Categories" navigation option, which will show you what categories you have saved and you can create new and manage your categories in that area. You'll see that for all of your categories you have listed, you have an Answerbase category ID as shown here:
If you want to automatically associate new questions asked through the widget to an existing category, you can do so by using the "data-category-id" parameter....so in this case if you wanted to associate all new questions to "Confined Spaces" you'd add the parameter like this:
data-category-id="2057145"
If you have that identified with a recognized value, when customers ask questions from your widget it will automatically associate all new questions with that new category.
Products
If your Q&A engagement is associated with specific products that you're selling online that customers can purchase or you can generate leads for, you can identify the products that you're selling under "System Settings > Ecommerce Module" in your administration portal. Click on the "Products" tab and you can identify your products there. Similar to categories, if you'd like questions asked associated with a specific product....you can utilize the Widget Ecommerce Parameters to identify the association. If you're going to use these ecommerce parameters, you can simply identify the product values within your widget code and Answerbase will auotomatically create/update the products on our end to be consistent with what you populate within those parameters.
Here are the parameters that we recommend utilizing if you're going to use product associations.
<script src="https://yoursite.services.answerbase.com/javascript/widget/full-featured-w
idget.js" type="text/javascript"
data-product-external-id="98655589"
data-product-sku="A50021"
data-product-title="Collette, florentine dress"
data-product-url="https://yoursite.com/collette-florentine-dress/"
data-product-image-url="https://yoursite.com/products/images/florentine-dress.j
pg">
</script>
You can also add the parameter identifying price and description if you'd like, but those aren't required.
If you have that identified with a recognized value, when customers ask questions from your widget it will automatically associate all new questions with that product.