Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visitor/Contact Location #345

Open
gmpetrov opened this issue Feb 26, 2024 · 0 comments
Open

Visitor/Contact Location #345

gmpetrov opened this issue Feb 26, 2024 · 0 comments
Assignees

Comments

@gmpetrov
Copy link
Owner

gmpetrov commented Feb 26, 2024

  • Use cloudflare headers to store Visitor/Contact informations
  • Store infos at the Visitor/Contact level -> Add new metadata json field to data models Contact & Visitor
  • Find the most relevant place in the codebase to handle the workflow (must work for agent/query + crisp + whatsapp etc...)
    IMO handleChatMessage() looks like a good candidate
  • Display location infors on the inbox page with inspiration from Crisp

Image

Sample Values

{
  "cf-ipcity": "Paris",
  "cf-ipcountry": "FR",
  "cf-region": "Ãle-de-France",
  "cf-region-code": "IDF",
  "cf-postal-code": "75019",
  "cf-timezone": "Europe/Paris",
  "cf-ipcontinent": "EU"
}


{
  "cf-ipcity": "Almaty",
  "cf-ipcountry": "KZ",
  "cf-region": "Almaty",
  "cf-region-code": "75",
  "cf-timezone": "Asia/Almaty",
  "cf-ipcontinent": "AS"
}

{
  "cf-ipcity": "Riyadh",
  "cf-ipcountry": "SA",
  "cf-region": "Riyadh Region",
  "cf-region-code": "01",
  "cf-timezone": "Asia/Riyadh",
  "cf-ipcontinent": "AS"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants