Contexts
Contexts are the skeleton of an application developed with Kogno, since in these, a large part of the logic of capturing, processing and replying to an incoming message is developed.
Creating a new Context
class TheContextNameContext < Conversation
class TheContextNameContext < ConversationDefault context: MainContext
MainContext blocks() method
blocks() methodUsage Example
Multi-Context conversation
Example
Moving between contexts
change_to(route=String, params=Hash)
change_to(route=String, params=Hash)Usage
Params
Name
Description
delegate_to(route=String, args=Hash)
delegate_to(route=String, args=Hash)Usage
Params
Name
Description
exit_context()
exit_context()Usage
keep()
keep()Usage
Last updated
Was this helpful?