Skip to content

Instantly share code, notes, and snippets.

@karthickpdy
Last active July 20, 2017 05:34
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 karthickpdy/2761b54e915d55a1e607796e91a660b1 to your computer and use it in GitHub Desktop.
Save karthickpdy/2761b54e915d55a1e607796e91a660b1 to your computer and use it in GitHub Desktop.
Lambda function
def lambda_handler(event, context):
name = event["currentIntent"]["slots"]["Name"].title()
response = {
"dialogAction":
{
"fulfillmentState":"Fulfilled",
"type":"Close","message":
{
"contentType":"PlainText",
"content": "Hi "+name+", good to see you!"
}
}
}
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment