Michał’s notes

Dictionary util

I am currently working on a Scala powered back-end for a conversation bot for GoogleAssistant using Dialogflow.com. To make a conversation more natural, I need to try to avoid using the same sentences too often. The simplest way is of course have several variations of a message, and serve one randomly. It’s a bit of uncommon requirement, thus I decided for implementing a small dictionary module. It supports:

  • parametrization of values
  • multiple variations for single entry
  • circe json decoding

You can learn more on github