Digital chatbot: Get user's timezone for voice callback

Hey all,

Working on a simple digital bot flow to greet people on our website and setup voice callbacks with them.

The one issue I'm running into is thinking of the least painful way to figure out what time zone they are in to correctly set the time for a callback. I'm thinking of asking for their zipcode, but then there is not easy out of the box way to use that to offset the time they have chosen.

I would either have to pay for an API to do a lookup, or build a very complex expression using regex to compare the zipcode to a range of codes that are in a state, then use that to make the UTC offset. Additionally, I'd need to make a date lookup to see if it's DST or not. Very painful.

Would love some ideas or examples if anyone has other ideas!

@Joseph_Allen

Possibly using a contact list with automatic time zone mapping, in conjuction with a data action that looks up the contact and returns the time zone using POST /api/v2/outbound/contactlists/{contactListId}/contacts/search could work.
Docs:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.