Cloudkibo / KiboPush

0 stars 1 forks source link

Live Chat changes for facebook new changes #6679

Open sojharo opened 5 years ago

sojharo commented 5 years ago

This issue is coming from following discussion document of @ImranBinShoukat

https://docs.google.com/document/d/180hyLEijx46UG4voWDwQp9A9GMmkcSoM5Lw45hr4CbQ/edit#

Please do the use for human tag in live chat and do complete testing and see how it works with send api.

sojharo commented 5 years ago

Please discuss with @ImranBinShoukat if needed.

saniasiddiqui commented 5 years ago

I was not able to send messages through livechat using the HUMAN_AGENT* tag because new tags have yet not been rolled out by Facebook.

The graph API below shows the current list of supported tags for any page and these are still the old ones.

image

*HUMAN_AGENT is the new message tag which facebook has defined in their changed Messenger Policy as the one that 'Allows human agents to respond to user inquiries. and which can send Messages within 7 days after a user message.'

saniasiddiqui commented 5 years ago

This issue can be deferred for the time till Facebook rolls out new tags. Or we can close it and open it later. FYI @sojharo

jekram commented 4 years ago

There are two changes required here:

  1. We need to check if the last input from the customer was in the last 7 days.

  2. If the last message was in the last 7 days then we need to use Human Tag (this can be deferred - until FB has released this).

  3. If the last message is more then 7 days then we need to inform the agent he cannot respond anymore. We should complete this logic now. For testing purposes, we can test with less than 7 days of logic. (ex: 30 minutes).

ImranBinShoukat commented 4 years ago

We have the logic to check for 24 hours. Right now, it checks if the last message from subscriber was in 24 hours then it lets admin reply from live chat. Else it displays a message that he cannot reply because 24 hours session is not active.

When FB releases human tag we will just change to time from 24 hours to 7 days.

saniasiddiqui commented 4 years ago

I have tested this again. Facebook has yet not released the human_tag

jekram commented 4 years ago

I am going to mark this blocked for now until FB implements it.

ImranBinShoukat commented 4 years ago

We had applied for the access of Human Tag (Beta) #8159. We need to check and comment here the status.