Kogno
  • Introduction
  • Getting Started
    • Configuration
    • Starting the Server
    • Messenger Configuration
    • Telegram Configuration
    • WhatsApp Configuration
    • NLP Configuration
  • Conversation Class
  • Contexts
    • Blocks
      • before_anything
      • postback
      • deep_link
      • command
      • any_attachment
      • regular_expression
      • keyword
      • any_number
      • any_text
      • intent
      • entity
      • membership
      • recurring_notification
      • everything_else
      • after_all
    • Sub Contexts
    • Routing
    • Sequences
    • Conversational Forms
  • Replies / Notifications
    • text
    • button
    • quick_reply
    • raw
    • list
    • carousel
    • url
    • typing
    • image
    • video
    • html
    • markdown
    • contact
    • location
    • recurring_notification_request
    • messenger_generic_template
    • whatsapp_template
  • Templates
  • Models
    • User model
  • Scheduled Messages
  • Telegram Inline Query
  • Command Line
  • Global Methods
  • Internationalization
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

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

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

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

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

config.error_notifier.slack

PreviousGetting StartedNextStarting the Server

Last updated 2 years ago

Was this helpful?

The default language in case is implemented.

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 .

If true, options on or will be matched against the next message received. Read about this functionality .

If enable field is true and a Slack webhook url is configured, the framework will send any error to the channel associated in Slack. .

Internationalization
Sequences chapter
Read the documentation in Slack
buttons
quick_replies
here