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.

triangle-exclamation
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

Process that executes the queue from the sequences.

scheduled_messages

Process that executes the scheduled messages queue.

Manage All Together

Start all in Background

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

HTTP Server

Run in Background

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

Run in Foreground

Sequences

Run in Background

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

Run in Foreground

Scheduled Messages Daemon

Run in Background

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

Run in Foreground

circle-info

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

Console

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

circle-check

Usage example

circle-info

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

Runner

runner runs Ruby code in terminal.

Example

Messenger

Persistent Menu

Activates the persistent menuarrow-up-right in Messenger Platform.

circle-info

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

To Remove Persistent Menu

Get Started Button

Activates and set the get started button payloadarrow-up-right of Messenger.

circle-info

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

To Deactivate

Setting the Greeting Text

Activates greeting text on the welcome screenarrow-up-right on Messenger.

circle-info

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

To Deactivate

Whitelisted Domains

Update whitelisted domainsarrow-up-right in Messenger Platform.

circle-info

Before run this command, configure config.messenger.whitelisted_domains in config/platforms/messenger.rb

Ice Breakers

Activates Messenger Platform ice breakersarrow-up-right.

circle-info

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

To Deactivate

Telegram

Webhook

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

circle-info

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

To Stop Receiving Webhooks

Commands

Set and activate commands for every command scope available in Telegramarrow-up-right.

Set/Update all Scopes

Available Scopes

default, all_private_chats, all_group_chats, all_chat_administrators and all

To Deactivate Commands

Last updated

Was this helpful?