iOS Chat SDK v2: "no agents online" message is not showing
Posted Aug 09, 2022
Hello!
Chat SDK v.2 for iOS
Our task is simple: show an automated message to our users when they initialize a chat outside of working hours and (optionally) prompt them to leave a message for us to get back to them later.
We considered several ways to achieve this:
1) Chat triggers: apparently, this won't work, cause "Chat triggers will not fire if: no agents are online." source
2) Support triggers: these get triggered, but the Chat SDK doesn't show the message, we can send an email with Support triggers, but that is not what we want.
3) Default Chat SDK message "All agents are offline": not exactly what we want, but it could do, HOWEVER we can't get that message to show. We have tested this outside of Scheduled hours (set up in Admin Center/Objects and Rules/Schedules) when only one admin was logged in to Zendesk Dashboard and his status was invisible. So the condition "All agents are offline" must have been met, correct?
4) Configuring Operating hours: Apart from Schedules in Admin Center/Objects and Rules there is a separate configuration in Chat Dashboard/Settings/Account/Operating hours. We set those as well. But in Known Issues we found this: Chat operating hours not affecting SDK . Does this mean that agents availability calculations will not get operating hours into account?
5) There is a configuration available in Chat SDK iOS `ChatConfiguration.isAgentAvailabilityEnabled`. Again, this is not exactly what we want, but it could do. The problem is it fires a message "Hi. Unfortunately we are unable to determine if an agent is available." which makes us think that for this `ChatConfiguration.isAgentAvailabilityEnabled` option to work correctly we need some additional set up to help Chat SDK determine if agents are available. If that is true, what can we do to make it work? Cause right now it fires the message both when agents are available in Zendesk Dashboard and when they are not.
So, what we are doing wrong? Are any of these assumptions look misguided to you?
Also, there are several ways to initialize Chat SDK, does it matter if we initialize with Account Key (found in Chat Dashboard/Profile icon/Check Connection) and not AppID (Chat Dashboard/Settings/API & SDKs)? Will that determine which configurations - Support Dashboard or Chat Dashboard - will be considered?
1
0 comments
Sign in to leave a comment.