Cloudkibo / KiboPush

0 stars 1 forks source link

Configure server side bot features disable/Enable for Sapphire #11470

Closed sojharo closed 3 years ago

sojharo commented 3 years ago

This task is to make chatbot configurable on server side so that we can manually hide certain features (blocks) of chatbots for certain customers i.e. Sapphire.

Please use the WhatsApp Chatbot table for this configuration. This table contains record for each chatbot for a company. We will identify the chatbot of a company and hide the features from table for that particular chatbot i.e. hide Talk to Agent for this chatbot.

On the server side, in welcome block and others only show the options which are enabled for that chatbot in database table.

Pre-Sales

  1. Browse products
  2. Browse categories
  3. Search products
  4. Manage shopping cart
  5. create an order

Post-Sales

  1. Show recent orders
  2. Check order status
  3. View order tracking details

General features

  1. FAQs
  2. PDF catalogue
  3. Talk to agent
sojharo commented 3 years ago

I have talked to Anisha and as she might not be able to do this today. I am picking this up for today.

sojharo commented 3 years ago

I have worked on this and this is under construction. I have completed the work for Messenger chatbot for shopify and it is now configurable and now I am working on whatsapp shopify chatbot which is remaining. whatsapp one is taking a little bit time as it configured differently.

sojharo commented 3 years ago

I have completed the work on this. @AnishaChhatwani please test.

Commerce ChatBot is configurable from backend and is table driven now for whatsapp and messenger.

AnishaChhatwani commented 3 years ago

Tested. On Messenger, I'm able to see add to cart quick reply in some cases even when the cart is disabled in database.

sojharo commented 3 years ago

Fixed.

AnishaChhatwani commented 3 years ago

On whatsApp,

  1. We should not show the " do you want to purchase" block when cart is disabled.
  2. When i enter B to go back, it doesn't take me back to the previous block and produced this sentry error: https://sentry.io/organizations/cloudkibo/issues/2348994506/?project=292307&referrer=slack
  3. There is no space between the menu options and special keywords. We used to have a one line space between them. Screenshot_20210419-103948_WhatsApp
sojharo commented 3 years ago

I have done the requested UI changes.

AnishaChhatwani commented 3 years ago

working fine