Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Respond with User timezone/locale from a webhook request

When I receive a user request I would like to respond with a date with the user timezone. Actually, I can only respond with server TZ

like image 436
StErMi Avatar asked Nov 29 '25 04:11

StErMi


1 Answers

Unfortunately, DialogFlow doesn’t make it easy by simply telling g you what timezone the user is coming from. The best you can do is ask the user for their timezone and then save that to do date/time adjustments in future responses.

This can be optimized a bit for users accessing your agent through Google Assistant by using the new permissions API. See https://chatbotsmagazine.com/personalize-google-assistant-skill-with-user-data-328f5e0860a0

like image 185
Robert Levy Avatar answered Dec 01 '25 06:12

Robert Levy