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
version: '3' | |
services: | |
web: | |
image: httpd | |
ports: | |
- "80:80" | |
links: | |
- fluentd | |
logging: | |
driver: "fluentd" |
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
{ | |
"type": "APL", | |
"version": "1.0", | |
"theme": "dark", | |
"import": [], | |
"resources": [], | |
"styles": { | |
"headerStyle": { | |
"values": [{ | |
"color": "#008080", |
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
{ | |
"version": "1.0", | |
"response": { | |
"outputSpeech": { | |
"type": "SSML", | |
"ssml": "<speak> | |
Well, you can rent a car with my assistant. This is how you can do so: | |
<voice name='Brian'>Alexa, launch my assistant<voice> | |
<voice name='Amy'>Hi, welcome to my assistant. How can I help you<voice> | |
<voice name='Brian'>Rent a car<voice> |
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
{ | |
"version": "1.0", | |
"response": { | |
"outputSpeech": { | |
"type": "PlainText", | |
"text": "Yeah, sure. You can claim expenses through Keka." | |
}, | |
"reprompt": { | |
"outputSpeech": { | |
"type": "PlainText", |
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
{ | |
"version": "1.0", | |
"response": { | |
"outputSpeech": { | |
"type": "PlainText", | |
"text": "Hi, I am a virtual assistant, but with a screen." | |
}, | |
"directives": [ | |
{ | |
"type": "Display.RenderTemplate", |
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
{ | |
"prompt": "Please select from below options:", | |
"ui_type": "buttons", | |
"data": [ | |
{ | |
"label": "Button 1", | |
"value": "button1" | |
}, | |
{ | |
"label": "Button 1", |
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
{ | |
"version": "1.0", | |
"response": { | |
"outputSpeech": { | |
"type": "PlainText", | |
"text": "Please select from below options:" | |
}, | |
"directives": [ | |
{ | |
"type": "Display.RenderTemplate", |
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
{ | |
"slots": [], | |
"prompt": "Please select from below options:", | |
"ui_type": "picker", | |
"data": [ | |
{ | |
"label": "Button 1", | |
"value": "button1" | |
}, | |
{ |
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
import boto3 | |
def translate_text(text, to_lang, from_lang='en'): | |
if (from_lang == to_lang or not to_lang): | |
return text | |
client = boto3.client('translate', region_name='us-east-1') | |
response = client.translate_text( | |
Text=text, | |
SourceLanguageCode=from_lang, | |
TargetLanguageCode=to_lang | |
) |
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
# Intent json structure with slot keys | |
flow = { | |
"slots": {} | |
} | |
# responseCard values, needs to be sent back to user for selection | |
slotResponses = {} | |
# Final fulfillment response | |
fulfillment_response = "Great Job!" |
NewerOlder