Use Ecommerce in the Flow

Use Ecommerce in the Flow



You can check this "Ecommerce Template" for inspiration after you setup your ecommerce system.

Show Products

ecommerce


In a Send Message step, find "Ecommerce"(1), "Product"(2) and then click "Edit"(3). Buttons added at area 4 will show under each product. And don't forget to put prompt at area 5 in case no product matched.

ecommerce


WARNING

Due to the fact that Facebook allows only 10 cards displayed at one time, you might need to apply a filter to narrow down the products.


  1. choose how many products to show from 1 to 10
  2. select a sorting condition according to the user's choice
  3. set a filter with as many conditions as needed.

Add to Cart

ecommerce

Select "Add to cart" when the button is pressed. It is good to prompt what was added as well.

Show Cart

ecommerce


Find "Shopping Cart" under "Ecommerce", click "Edit". Again, any button put at area 4 will display with every product.

ecommerce

The edit page of "showing cart" is similar to the "showing product"'s. But it's a bit trickier. Because a cart has to show every product for reviewing before checkout.


TIP

if a customer picks more than 10 products but below 20, try using "Newest" to show the first 10 and "Oldest" to show the rest. It's rare but what if it's more than 20? Maybe try listing products by price range or first letter. Alternatively, you can also customize some Send Message steps to show the cart rather than using the "showing cart" function. Access cart information in "SHOP" JSON variable and "$.cart.num" of "SHOP" for items number in the cart.


Remove from cart

Select "Remove from cart" when the button is pressed. You might want to use a Goto step to go to the cart again to refresh, since there are quantities shown with products that differ from showing a static menu.

Empty Cart

ecommerce

Select "Empty Cart" when the quick reply is pressed. Why not button? Because it can be redundant to have more than one empty cart following all products. Besides, "Empty Cart" is in the Action step, not a button action. So you will need to select an Action step as the next step to the quick reply.

Checkout

TIP

to simulate the checkout process, you will have to setup your Stripe Integration as well.


We've just talked about it's redundant to have an "Empty Cart" button with every product but why put multiple "Checkout"? This is because, actions in the Action step is processed at the backend while "Checkout" requires the frontedto open a website, the checkout page. So you can only call "Checkout" at a button.

If you don't want to put "Checkout" under each product, try adding one more text-type information after showing the cart:

ecommerce

When users checkout, a list of products will show with quantity and price first, following by an area to leave users' contact details:



Keep scrolling down you will see delivery options, coupon code and a summary of the order.

ecommerce

Finally, by selecting a payment option and clicking "Pay $xx.xx", the page will be directed to Stripe.com. If you are under a text mode, you will see this:

ecommerce

Click "AUTHORIZE TEST PAYMENT" or "FAIL TEST PAYMENT" to test what will it look like when the payment succeeds or fails.

ecommerce

An order confirmation will be sent when payment succeed. Click on the confirmation to view the order detail.



"Buy" Only One Product

ecommerce

"Buy" is actually a feature having nothing to do with the built-in ecommerce system. After setting up your Stripe Integration, users can purchase one product (can be from your Stripe account) with one click on the "Buy" button with no ecommerce system setting at all.

The feature is suitable for ticket product without options or paying subscription fees, etc.

How to use System JSON Variable

There are several system field storing information about the ecommerce system. Usually, the system will tell you where to find according to data like this:

ecommerce


You can access them wherever you see "</>":




System JSON - "SHOP"

"SHOP" stores all information about your ecommerce settings.




System JSON - "ORDER"

"ORDER" stores the user's last order. You only get an order after checkout.




System JSON - "CART"

"CART" stores the user's shopping cart.



System JSON - "SELECT"

When you choose "Select" when a button pressed, the selected item is stored in "SELECT".

SELECT.product:

ecommerce

SELECT.sku:

ecommerce


    • Related Articles

    • Introduction (Ecommerce)

      With our built-in Ecommerce system, you can easily manage your products, discounts and orders with Omni across all the channels we supported. Set once and use it everywhere! Your bot can introduce and sell products for you automatically. ?? Check ...
    • Flow Builder Overview

      This section will give you an overall idea about how to use the OCP flow builder. You can open a flow and try side by side when you learn it. IMPORTANT - ? Please make sure you go through every detail on this page before you start building bots. ...
    • Setup Ecommerce

      Products Here is where you manage your products. When you add new products, Remember to set the availability status for the product. Utilize the Organization section to sort and organize your products: When you click choose Product type, Vendor, Tags ...
    • How to use Template message

      Use in the flow builder Template messages offer more features, like the buttons(which can link to external URLs) & phone call button. You can send the template message right in the flow builder. It’s free to send if it’s within a 24-hour engagement ...
    • Switch the flow from the Testing phone number to your business phone number

      In this step, you will be able to switch the chatbot flow you build with the testing number to your own business number you just added. Unlink the bot In this step, you can first unlink the bot from your testing number. When you click the unlink ...