Open sojharo opened 5 years ago
Please discuss with @ImranBinShoukat if needed.
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.
*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.'
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
There are two changes required here:
We need to check if the last input from the customer was in the last 7 days.
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).
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).
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.
I have tested this again. Facebook has yet not released the human_tag
I am going to mark this blocked for now until FB implements it.
We had applied for the access of Human Tag (Beta) #8159. We need to check and comment here the status.
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.