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
  • New Project
  • Create table
  • Processes
  • Manage All Together
  • HTTP Server
  • Sequences
  • Scheduled Messages Daemon
  • Console
  • Usage example
  • Runner
  • Messenger
  • Persistent Menu
  • Get Started Button
  • Setting the Greeting Text
  • Whitelisted Domains
  • Ice Breakers
  • Telegram
  • Webhook
  • Commands

Was this helpful?

Command Line

New Project

Create a new project in the provided directory.

kogno new your_project_name

Create table

Creates the database tables needed for the framework.

This command must be executed after configuring the database in config/database.yml.

kogno install

Processes

Kogno runs a total of 3 processes, which can be started all together or separately:

Daemon
Description

http

Web server that receives the events and messages from the configured platforms, in addition to the requests in the web/ folder.

sequences

scheduled_messages

Manage All Together

Start all in Background

kogno start
Kogno 1.0.0 server starting in development
Http: starting daemon..
Sequence: starting daemon..
Scheduled Messages: starting daemon..

Other options are: kogno stop, kogno restart and kogno status

HTTP Server

Run in Background

kogno http start

Other options are: kogno http stop, kogno http restart and kogno http status

Run in Foreground

kogno http fg

Sequences

Run in Background

kogno sequences start

Other options are: kogno sequences stop, kogno sequences restart and kogno sequences status

Run in Foreground

kogno sequences fg

Scheduled Messages Daemon

Run in Background

kogno scheduled_messages start

Other options are: kogno scheduled_messages stop, kogno scheduled_messages restart and kogno scheduled_messages status.

Run in Foreground

kogno scheduled_messages fg

Console

The console command starts the console that lets you interact with your Kogno application from the command line.

kogno console

You can also use the alias "c" to load the console: kogno c.

Usage example

kogno c
Loading development environment (Kogno 1.0.1)
2.7.0 :001 > user = User.first
 => #<User id: 1, psid: "600....> 
2.7.0 :002 > puts user.first_name
Martín
 => nil 

Within the console, you can run the reload! to restart the console quickly.

Runner

runner runs Ruby code in terminal.

kogno runner "some ruby code"

Example

kogno runner "puts User.first.first_name"
  User Load (0.5ms)  SELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1
Martín

Messenger

Persistent Menu

kogno messenger menu on

To Remove Persistent Menu

kogno messenger menu off

Get Started Button

kogno messenger get_started on

To Deactivate

kogno get_started off

Setting the Greeting Text

kogno messenger greeting on

To Deactivate

kogno messenger greeting off

Whitelisted Domains

kogno messenger update_whitelisted_domains

Ice Breakers

kogno messenger ice_breakers on

To Deactivate

kogno messenger ice_breakers off

Telegram

Webhook

Set and activate a url and receive incoming updates via a webhook.

kogno telegram webhook on

To Stop Receiving Webhooks

kogno telegram webhook off

Commands

Set/Update all Scopes

kogno telegram set_commands all

Available Scopes

default, all_private_chats, all_group_chats, all_chat_administrators and all

To Deactivate Commands

kogno telegram delete_commands all
PreviousTelegram Inline QueryNextGlobal Methods

Last updated 2 years ago

Was this helpful?

Process that executes the queue from the .

Process that executes the queue.

The daemons can run either in background or foreground for environments of development or production. To configure in environment, .

Activates the in Messenger Platform.

Before run this command you should configure config.messenger.persistent_menu in

Activates and set the of Messenger.

You can change the payload editing config.messenger.welcome_screen_payload in the Messenger configuration file

Activates on Messenger.

Before run this command you should configure config.messenger.greeting in

Update in Messenger Platform.

Before run this command, configure config.messenger.whitelisted_domains in

Activates Messenger Platform .

Before run this command, please configure config.messenger.ice_breakers in

Before running this command, please set config.telegram.webhook_https_server in file.

Set and activate commands for every .

see configuration chapter
persistent menu
config/platforms/messenger.rb
get started button payload
config/platforms/messenger.rb
greeting text on the welcome screen
config/platforms/messenger.rb
whitelisted domains
config/platforms/messenger.rb
ice breakers
config/platforms/messenger.rb
config/platforms/telegram.rb
command scope available in Telegram
sequences
scheduled messages