entity
This block captures an NLP entity regardless of the incoming message intention.
entity(name=String, &block)
entity(name=String, &block)Platforms
Platform
Supported
Usage
class MainContext < Conversation
def blocks
entity "wit$datetime:datetime" do |values|
datetime = values.first[:value]
@reply.quick_reply(
"What do you want me to alert at #{datetime}?",
[
{
title: "Set Alarm",
payload: set_payload("alarms/new")
},
{
title: "Set a Reminder",
payload: set_payload("reminders/new")
}
]
)
end
end
endCustom entities
Create a custom entity
Usage
Last updated
Was this helpful?