Skip to content

Instantly share code, notes, and snippets.

@Ayushverma8
Last active August 3, 2017 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ayushverma8/8f1b95d5c06c3f18eb943b442b39965e to your computer and use it in GitHub Desktop.
Save Ayushverma8/8f1b95d5c06c3f18eb943b442b39965e to your computer and use it in GitHub Desktop.
OYO Rooms Chatbot

OYO Rooms Suggestions

I have some suggestions on how to increase Intraction with users and make hotel booking more easy via OYO !


What Problem I am solving ?

It’s all about experimentation to better understand travelers’ needs. The rise of mobile means people are starting to move away from the mouse and traditional keyboard, we want to be sure our products are available wherever travelers are searching

  • People can access OYO through Facebook Messenger, an is easy because you don’t need to download an app.
  • Personlized Location biased Bot that would help and show selected queries
  • Clutter free , Just what you need is what you see. Faster bookings
  • With this new feature, the process of booking a hotel has become as convenient as chatting with a friend on Facebook messenger

Users can start by asking a question of their host from within their Booking.com account on any device. That includes messaging directly from the desktop, mobile web, or within OYO apps on iOS or Android. Users can initiate any kind of conversation they’d like with the accommodation. Idea is including pretrained templates for questions like whether there’s parking at a hotel, check-in and check-out times, and bed preferences.

I’m curious to understand people and I’m driven to build great products for them. This bot will help tracking user location as well and further can be integrated for processing similar advertisements

BOT map

function receivedMessage(event) {
var senderID = event.sender.id;
var recipientID = event.recipient.id;
var timeOfMessage = event.timestamp;
//BOT Framework main FIle for bot developement
var message = event.message;
//basic events and messages being called here
console.log("Received message for user %d and page %d at %d with message:",
senderID, recipientID, timeOfMessage);
// Using OYO API to call JSON Data
var isEcho = message.is_echo;
var messageId = message.mid;
var appId = message.app_id;
var metadata = message.metadata;
// We will get a text or attachment from user
var messageText = message.text;
var messageAttachments = message.attachments;
var quickReply = message.quick_reply;
if (isEcho) {
// Just logging message echoes to console
console.log("Received echo for message %s and app %d with metadata %s",
messageId, appId, metadata);
return;
} else if (quickReply) {
var quickReplyPayload = quickReply.payload;
console.log("Quick reply for message %s with payload %s",
messageId, quickReplyPayload);
// sendTextMessage(senderID, "Quick reply tapped");
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment