Products can be sent to customers using a bot builder and a basic bot triggered by a menu option or a message match keyword.
Ways to Send Products #
There are three ways to send products:
- Catalog Message
- Multi-Product Message
- Single Product Message
Sending a Catalog Message #
To send a catalog message:
- Add a catalog option in the ask a question block.
- Enter the product SKU ID or retailer ID.
Sending a Single Product Message #
To send a single product message:
- Add an ask a question block.
- Select the single product option.
- Enter the catalog ID and product SKU ID.
Sending a Multi-Product Message #
To send a multi-product message:
- Add an ask a question block.
- Select the multi-product message option.
- Enter the catalog ID.
- Create sections with product SKUs.
Searching for Products #
Products can be searched from the catalog by category, name, or description. The first 30 results can be shown as a multi-product message.
- Create a bot field with the JSON sample provided in the video description or at the bottom.
- Use the search products action to fetch products based on the search criteria.
- Save the results in the bot field.
- Use the ask a question block and select the multi-product message option.
- Enter the catalog ID and select the bot field to map the product SKUs.
Creating a Search Function #
A search function allows users to search products by:
- Name
- SKU
- Description
- Color
Procedure:
- Save the search response to the search results bot field.
- Ask the user a question.
- Send a multi-product message with dynamic choices.
- Copy the catalog ID and select the bot field to map the product SKU.
- Products matching the search term will be shown to the user, who can then add them to the cart and place an order.
SAMPLE JSON: For Bot Field ” Search Results ” { “id”: 1, “sku”: “2203”, “title”: “iPhone 9”, “description”: “An apple mobile which is nothing like apple”, “price”: 549, “discountPercentage”: 12.96, “rating”: 4.69, “stock”: 94, “brand”: “Apple”, “category”: “smartphones”, “thumbnail”: “https://i.dummyjson.com/data/products…“, “images”: [ “https://i.dummyjson.com/data/products…“, “https://i.dummyjson.com/data/products…“, “https://i.dummyjson.com/data/products…“, “https://i.dummyjson.com/data/products…“, “https://i.dummyjson.com/data/products…” ]