Configuration
Kongo's main configuration file is located at config/application.rb
Kogno::Application.configure do |config|
config.app_name = "Kogno"
config.environment = :development
config.http_port = 3000
config.available_locales = [:en]
config.default_locale = :en
config.routes.default = :main
config.sequences.time_elapsed_after_last_usage = 900 # 15 minutes
config.store_log_in_database = false
config.typed_postbacks = false
config.error_notifier.slack = {
enable: false,
webhook: "<YOUR SLACK WEBHOOOK HERE>"
}
end
Field Description
config.app_name
The project's name.
config.environment
Defines the environment: development
or production
.
In development
mode you will see more logs and isn't necessary to restart when the code is modified.
config.http_port
The port where the web server runs.
config.available_locales
The available locales of the project.
config.default_locale
The default language in case Internationalization is implemented.
config.routes.default
The general context, which will handle a message when the conversation with a user has no defined context.
config.delayed_actions.time_elapsed_after_last_usage
The minimum waiting time in seconds to send the next message of a sequence to an user, after he has sent the last message to the conversation. Read more in the Sequences chapter.
config.store_log_in_database
If true
, it will save incoming messages, events and replies to the kogno_chat_logs
database table.
config.typed_postbacks
If true
, options on buttons
or quick_replies
will be matched against the next message received. Read about this functionality here.
config.error_notifier.slack
If enable
field is true
and a Slack webhook
url is configured, the framework will send any error to the channel associated in Slack.
Read the documentation in Slack.
Last updated
Was this helpful?