Search code examples
chatbase

Chatbase group by locale


I'm currently developing a simple messenger bot, which supports multiple languages.

Is it possible in chatbase to group conversations by user locale? Can I somehow include the locale in message_received request?

Is it OK to append the locale to the chatbase_fields.version ?


Solution

  • We plan to add arbitrary key:value pairs to the api when we release our redesigned backend in the coming months. For now, there are a few solutions for separating your bot's messages.

    1. You can create a separate bot for each locale, and send messages to each respective bot.
    2. You can use the version field of the api to denote the locale and filter your metrics accordingly.