Cloudkibo / KiboPush

0 stars 1 forks source link

Modify send chatbot reply logic for DialogFlow (messenger) #10928

Closed ImranBinShoukat closed 3 years ago

ImranBinShoukat commented 3 years ago

This task is to modify the send chatbot reply logic for messenger. We will incorporate the DialogFlow call here and get the intent info from DialogFlow first and then transform it into the final answer by calling the external shopify API if needed.

jekram commented 3 years ago

@ImranBinShoukat what is the update here?

ImranBinShoukat commented 3 years ago

I couldn't work on this task as most of my time was spent on issue #10930

ImranBinShoukat commented 3 years ago

I have completed the following here:

Following are remaining here:

ImranBinShoukat commented 3 years ago

I have further worked on this but I am having issues at showing products and product variants. The overall flow for the DialogFlow chatbot is as follows:

Screenshot 2021-02-17 at 8 34 04 PM

The way I have designed this that we will have one DialogFlow chatbot and it will work on multiple channel like messenger, whatsapp, sms. But there are some issues:

  1. Some flow like Add to cart is different on WhatsApp and messenger. So, we should make the flow same for both WhatsApp and messenger so we don't have to create multiple DialogFlow chatbots for same company.
  2. Text is also different on WhatsApp and messenger. Our users like Sapphire will ask and would like to customize the text as per their suggestions. So, we need to think how we can provide this with our current design. When Sapphire asked for it we had to modify our logic and code but this is not a good way to go about it. We should provide option on the UI to customize these text messages.

I will explain this in tomorrow's meeting and then we should discuss and decide how to tackle these issues.

jekram commented 3 years ago

For #1. The logic of add to cart has to be the same and implementation needs to recognize the difference between Whatsapp and Messenger.

For #2. Let's get this version out in v2 we can modify it.

ImranBinShoukat commented 3 years ago

Task Update:

I have completed the following parts here:

Following are remaining now:

ImranBinShoukat commented 3 years ago

Work on this task has been completed. Just need to test couple of things and after that I will push the code to GitHub.

ImranBinShoukat commented 3 years ago

Assigning @AnishaChhatwani to test

AnishaChhatwani commented 3 years ago

working fine on production