Word Play in the Digital Age: Building Text Bots with Tracery

31
Wordplay in the Digital Age Building Text Bots with Tracery Sarah Sexton Technical Evangelist, Microsoft, Chicago @Saelia

Transcript of Word Play in the Digital Age: Building Text Bots with Tracery

Page 1: 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

Page 2: Word Play in the Digital Age: Building Text Bots with Tracery

What is Tracery?

Page 3: Word Play in the Digital Age: Building Text Bots with 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?

Page 4: Word Play in the Digital Age: Building Text Bots with 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

Page 5: Word Play in the Digital Age: Building Text Bots with Tracery

http://TraceryBot.azurewebsites.net

Page 6: Word Play in the Digital Age: Building Text Bots with Tracery

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

Page 7: Word Play in the Digital Age: Building Text Bots with Tracery

Tracery Prerequisites

Page 8: Word Play in the Digital Age: Building Text Bots with Tracery

• 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

Page 9: Word Play in the Digital Age: Building Text Bots with Tracery

• .gitignore• README.md• package.json• index.html• app.js

GitHub Repository

Page 10: Word Play in the Digital Age: Building Text Bots with Tracery

• Microsoft Bot Framework• Bot Connector• Bot Builder SDK• Bot Directory

• Communication Platform• Slack• Skype…

Other Components

Page 11: Word Play in the Digital Age: Building Text Bots with Tracery
Page 12: Word Play in the Digital Age: Building Text Bots with Tracery

The Files

Page 13: Word Play in the Digital Age: Building Text Bots with Tracery

.gitignore

Page 14: Word Play in the Digital Age: Building Text Bots with Tracery

README.md

Page 15: Word Play in the Digital Age: Building Text Bots with Tracery

package.json

Page 16: Word Play in the Digital Age: Building Text Bots with Tracery

index.html

Page 17: Word Play in the Digital Age: Building Text Bots with Tracery

The Code

Page 18: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – “header” info

Page 19: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – Create Chat Bot

Page 20: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – Hello World “main”

Page 21: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – Hello World “main”Hello, world!Hello, world!Hello, world!

Page 22: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – ReplacementGrammar Hello, world!

Hello, world!Hello, world!

Page 23: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – More Replacementshello, world!hello, world!hello, world!

Page 24: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – ReplacementModifiers Hello, world!

Hello, world!Hello, world!

Page 25: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – Modifiers.capitalize.s.a

Page 26: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – Replacement OptionsAloha, planet!

Hello, universe!Hello, world!

Goodbye, world!

Page 27: Word Play in the Digital Age: Building Text Bots with Tracery

app.js – Run With It

Page 28: Word Play in the Digital Age: Building Text Bots with Tracery

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.

Page 29: Word Play in the Digital Age: Building Text Bots with Tracery

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

Page 30: Word Play in the Digital Age: Building Text Bots with Tracery

Questions?

Click icon to add picture

Sarah SextonTechnical Evangelist, Microsoft, Chicago@Saelia

Page 31: Word Play in the Digital Age: Building Text Bots with Tracery

© Copyright Microsoft Corporation. All rights reserved.