Created
October 19, 2017 10:53
-
-
Save tim-minter/ed971551d2b74ced74d532adba3aa053 to your computer and use it in GitHub Desktop.
Chatbot Demo Material
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
{ | |
"context": { | |
"BotsName": "Chatty McChatface", | |
"BotNickname": "Chatty McC", | |
"BotAge" : "37 and a half" | |
}, | |
"output": { | |
"text": { | |
"values": [ | |
"Hi. What are you looking for today?" | |
] | |
} | |
} | |
} | |
2 | |
{ | |
"context": { | |
"user_name": "@sys-person" | |
}, | |
"output": { | |
"text": { | |
"values": [ | |
"Hello <? @sys-person ?>. How are you?" | |
], | |
"selection_policy": "sequential" | |
} | |
} | |
} | |
3 | |
{ | |
"context": { | |
"user_name": "@sys-person" | |
}, | |
"output": { | |
"text": { | |
"values": [ | |
"Hi <? @sys-person ?>." | |
], | |
"selection_policy": "sequential" | |
} | |
} | |
} | |
4 | |
{ | |
"context": { | |
"entered_text": "input.text" | |
}, | |
"output": { | |
"text": { | |
"values": [ | |
"you just typed \"<? input.text ?>\"" | |
], | |
"selection_policy": "sequential" | |
} | |
} | |
} | |
5 | |
{ | |
"output": { | |
"text": { | |
"values": [ | |
"OK, I'll see what we have that match these answers: Type: <? $type ?>. Gender <? $gender ?>. Season: <? $season ?>. <p><a href='https://www.amberoot.com/product-category/fashion/<?$gender?>/<?$type?>/' target='_blank'>Link</a></p>" | |
], | |
"selection_policy": "sequential" | |
} | |
} | |
} | |
6 | |
{ | |
"output": { | |
"text": { | |
"values": [ | |
"OK I'm going to look at my knowledge base and discover what we have on that..." | |
] | |
}, | |
"action": { | |
"call_discovery": "" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment