Shop_bot with price list and shopping cart

(Antonio) #1

Hello everybody,
I’d like to build a bot for my shop.
This bot should have a price list and a shopping cart. The price list should have pictures (of the product) on which the user could tap, inserting the quantity, to add that product to the cart.
How could I implement this? Have you some suggestion?

Thanks in advance for your help
Antonio

(Marc Louie Cabigas) #2

I don’t know about having a pictures. “Make HTTP Request” is a good things to use when getting data.

(Marc Louie Cabigas) #3

Try to read this, I think this is the one your looking for.

(Daniel Beckett) #4

@ansfo2013

As @mcfaith mentioned you can use Webhooks & HTTP if your store page has any kind of API to interface with to send and/or receive data.

Alternatively, if your products are stored in a database via. MySQL or in Google Sheets then you could connect your flows to the database to query for information.

For displaying items to the user, the Images and Cards service could be used to send a card set. You can add shortcuts to the cards and then follow the card set with an ‘Ask a Question’ action to capture their answer and save it to a database or attribute.

Since you’re looking to have a shopping cart system in the bot I think it may be worth mentioning that payments can’t be collected in the bot. There are some integrated services like Stripe that can be used to raise invoices etc. but we can’t collect payments directly in the bot. Depending on the platform that you choose to build the bot on it could be possible to use webviews to push the user to the payment page

1 Like
(Antonio) #5

Thank you Marc and thank you Daniel,
I really apreciate your suggetions.
All information about the products are stored in a Google Sheet so i think the best way to proceed is the one suggested by Daniel. So imediately i’m starting to learn how to use Images and cards.

I do not think payments will be a problem, as those will be done through PAYPALL (only an email address needs to be communicated to the user).

What i’m trying to figure out, is how to implement the right flow for tracking all products ordered by each user and sending him/her the summary via email. Moreover, how to recognize the user when he/she come back to the shop and not asking him/her anymore questions already answered when he/she came the first time to the shop (shipping address for instance)

Would anybody please show me some examples?

Thanks a lot for your help.
Antonio

1 Like
(Daniel Beckett) #6

Hi Antonio,

Since you’re going to be using Google Sheets you might find the following tutorials helpful:


In regards to saving user choices there’s a couple of options that I’d recommend:

  1. Save any user choices inside attributes. You can then access this information whenever they interact with the bot as it’ll be saved against their response path.
  2. Save the user’s information and selections into a Google Sheet with a unique identifier. You can include something like their response path or user ID in the Google Sheet and then save answers to questions and shipping info inside the sheet - when the user comes back you can then query the sheet to see if you have all their required info and if so have filters so that the flow skips over asking for it again.

You may find what works best is a combination of both attributes and Google Sheets so it’s worth experimenting a bit to find what suits you best. :slight_smile:

1 Like
(Antonio) #7

Thank you Daniel,
your help is really precious for me!!! :slight_smile:

Antonio

1 Like