Replies / Notifications
This chapter talks about the different formats used when replying to or sending an on-demand notification to a user.
Last updated
Was this helpful?
This chapter talks about the different formats used when replying to or sending an on-demand notification to a user.
Last updated
Was this helpful?
Was this helpful?
user = User.first
user.notification.text "Hello!"
user.notification.typing 1.second
user.notification.text("How are you today?")
user.notification.send()
Using the @reply
instance, accessible from any action block in a context or in the callbacks from the Conversation
class.
class MainContext < Conversation
def blocks
intent "greeting" do
@reply.text "Hello!"
@reply.typing_on(2)
@reply.quick_reply(
"How are you today?",
[
{
title: "I'm good",
payload: :good
},
{
title: "Had better days",
payload: :bad
}
]
)
end
end
end
In Kogno, we try to unify as many formats as possible, in order to allow developers to write a unified code for a cross-platform conversational application.
Request for subscription to recurring notifications in Messenger.
Messenger