Hey! I'm the dev of the website in my company and I want a simple chatbot that meets my requirements.
My company has a website with two languages, portuguese and english. We use next-intl if I'm not mistaken. So there is a website.com/en and a website.com/pt. I have a few questions about this:
- I'm guessing that I can have two bots, one that uses english and another that talks portuguese, and I can change the widget depending on the locale, but that doesn't seem optimal. Can the bot detect the locale (I don't think the bot can read the URL though) and display the correct greeting message and the continue the conversations in the right language?
- I know there is a translating agent, does that translate all past messages or just the new ones once triggered? Is it possible to have it translate the bot when the website locale is switched?
- If my ideas don't work, how are people solving this i18n problem?