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

Respond in the WhatsApp User's Native Language #79

Open
OdyAsh opened this issue Nov 12, 2024 · 0 comments
Open

Respond in the WhatsApp User's Native Language #79

OdyAsh opened this issue Nov 12, 2024 · 0 comments
Labels
answer quality Issues related to the quality of answers Ansari is giving. good first issue Good for newcomers performance quality Issues related to the quality/polish/responsiveness of the app itself

Comments

@OdyAsh
Copy link
Collaborator

OdyAsh commented Nov 12, 2024

When Ansari responds to invalid WhatsApp messages (or in the future, sends "loading"-like messages), we set it up with hard-coded responses in English, as can be seen here and here, etc..

We can potentially get the user's country code (from their phone number), which should allow us to deduce their country of origin, and thus create a function which takes that country code, and returns the suitable result based on the language deduced.

Possible challenges:

  • Extracting the country code from the response, maybe this sample response structure of Meta's API could help :].

Logical limitations:

  • I could be originally from Egypt, yet send a message from a phone number obtained during traveling, etc.
    • No obvious workaround that I can think of though, so we could just have to assume that a user holding a number from another country can speak its language ¯\_(ツ)_/¯.
@OdyAsh OdyAsh converted this from a draft issue Nov 12, 2024
@OdyAsh OdyAsh added good first issue Good for newcomers answer quality Issues related to the quality of answers Ansari is giving. performance quality Issues related to the quality/polish/responsiveness of the app itself labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answer quality Issues related to the quality of answers Ansari is giving. good first issue Good for newcomers performance quality Issues related to the quality/polish/responsiveness of the app itself
Projects
Status: Backlog
Status: Todo
Development

No branches or pull requests

1 participant