intent
This block will be executed if the intent provided as argument matches with the incoming message intent and if it was previously created and trained in the NLP engine.
intent(name=String|Array, &block)
intent(name=String|Array, &block)Platforms
Platform
Supported
Usage
class MainContext < Conversation
def blocks
intent "greeting" do
@reply.text "Hello!"
end
intent "godbye" do
@reply.text "Bye bye!"
end
intent "thanks" do
@reply.text "You're welcome"
end
end
Example of how they look in Wit.ai

Reading Params
Usage example

Params definition
text
textentities
entitiestraits
traitsconfidence
confidenceany_intent Block
any_intent BlockUsage
Last updated
Was this helpful?