Kogno
Search…
after_all
If it was called, this block will always be executed at the end of the matching process, even if another block was executed previously.

before_anything(&block)

Platforms

Platform
Supported
Messenger
WhatsApp
Telegram

Usage

class MainContext < Conversation
def actions
intent :greeting do
@reply.text "Hello, how can I help you?"
end
after_all do
logger.info "This block will be executed on every incoming message or event"
end
end
end

Execution exception

It will not be executed if delegate_to() or halt() methods were called in a block executed previously.
Copy link
On this page
before_anything(&block)
Platforms
Usage