Word Play in the Digital Age: Building Text Bots with Tracery
-
Upload
sarah-sexton -
Category
Technology
-
view
213 -
download
0
Transcript of Word Play in the Digital Age: Building Text Bots with Tracery
Wordplay in the Digital AgeBuilding Text Bots with TracerySarah SextonTechnical Evangelist, Microsoft, Chicago@Saelia
What is Tracery?
• JavaScript Library by GalaxyKate / Kate Compton• Multipurpose text-expansion library• Make twitterbots, artbots, games, and stories• “Super-simple tool and language to generate
text” – tracery.io• Uses Text Replacement Rules
What is Tracery?
TraceryBot Output Examples“Dramatically provide key technologies inside of win-win growth strategies.”
“Efficiently envision win-win technologies through streamlined cloud solutions.”
http://tracerybot.azurewebsites.netSarah Sexton
http://TraceryBot.azurewebsites.net
TraceryBot Output Examples“Roses are vile, Violets unclean. You carry me as a new bright machine”
“Roses are dark, Violets ensue. I need to sing new honeydew”
http://www.galaxykate.com/apps//vday/vday.htmlKate Compton
Tracery Prerequisites
• Node.js ( v 0.10 or higher) • GitHub Account (for code repository)• Visual Studio Code (or another text editor)• Microsoft Account (for Azure subscription)• Azure Subscription (for web front end)
Prerequisites
• .gitignore• README.md• package.json• index.html• app.js
GitHub Repository
• Microsoft Bot Framework• Bot Connector• Bot Builder SDK• Bot Directory
• Communication Platform• Slack• Skype…
Other Components
The Files
.gitignore
README.md
package.json
index.html
The Code
app.js – “header” info
app.js – Create Chat Bot
app.js – Hello World “main”
app.js – Hello World “main”Hello, world!Hello, world!Hello, world!
app.js – ReplacementGrammar Hello, world!
Hello, world!Hello, world!
app.js – More Replacementshello, world!hello, world!hello, world!
app.js – ReplacementModifiers Hello, world!
Hello, world!Hello, world!
app.js – Modifiers.capitalize.s.a
app.js – Replacement OptionsAloha, planet!
Hello, universe!Hello, world!
Goodbye, world!
app.js – Run With It
app.js – Run With It
Seamlessly provide disruptive growth strategies with agile scenarios.
Completely bring disruptive cloud solutions from self-sustaining metrics.
Efficiently administrate cutting-edge apps within extensible growth strategies.
Seamlessly administrate robust metrics of cross-platform metrics.
Call to Action:
Click icon to add picture
Sarah SextonTechnical Evangelist, Microsoft, Chicago@Saelia
• GitHub.com/SarahSexton/TraceryBot• TraceryBot.azurewebsites.net• http://aka.ms/TraceryBot
Questions?
Click icon to add picture
Sarah SextonTechnical Evangelist, Microsoft, Chicago@Saelia
© Copyright Microsoft Corporation. All rights reserved.