This can also be done with the Hubot Conversation plugin. This adds a dialog object which you can interact with. The dialog is scripted, not "natural", but it can be used to create chatbot pathways to execute simple workflows.
Your example might work as follows:
var Conversation = require("hubot-conversation");
module.exports = function(robot) {
var switchBoard = new Conversation(robot);
robot.respond(/create a branch/, function(msg) {
var dialog = switchBoard.startDialog(msg);
msg.reply("How should I name it");
dialog.addChoice(/[a-z]+/i, function(msg2) {
msg2.reply("Branch #{msg2.match[1]} created");
});
dialog.addChoice(/bathroom/i, function(msg2) {
msg.reply("Do I really have to?");
dialog.addChoice(/yes/, function(msg3) {
msg3.reply("Fine, Mom!");
});
});
});