Skip to content

Instantly share code, notes, and snippets.

@csiebler
Created May 4, 2018 13:21
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 csiebler/7106382617b1a680a335441afda01747 to your computer and use it in GitHub Desktop.
Save csiebler/7106382617b1a680a335441afda01747 to your computer and use it in GitHub Desktop.
Suggested Actions for Bot Service with Node.js
bot.dialog('/', [
function (session) {
var msg = new builder.Message(session)
.text("Hello, I can help you with:")
.suggestedActions(
builder.SuggestedActions.create(
session, [
builder.CardAction.imBack(session, "Option 1", "Something 1"),
builder.CardAction.imBack(session, "Option 2", "Something 2"),
builder.CardAction.imBack(session, "Option 3", "Something 3")]
));
session.send(msg);
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment