Skip to main content

Alexa API support for Python on AWS lambda

Project description

PyAlexa for AWS lambda and HTTPS server

© 2018 SiLeader.


use AWS Lambda

import alexa

def lambda_handler(data, _):
    request = alexa.Request(data)

    if request.type == "IntentRequest":
        response = alexa.Response()
        response.output_speech(text="Alexa Test")
        return response.response

use Flask

from flask import Flask, request, jsonify
import alexa

app = Flask(__name__)

@app.route("/alexa/endpoint", methods=["POST"])
def alexa_endpoint():
    req = alexa.Request(request.json)

    if request.type == "IntentRequest":
        res = alexa.Response()
        res.output_speech(text="Alexa Test")
        return jsonify(res.response)


Apache License 2.0


for Dialogflow


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyalexa-lambda, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size pyalexa_lambda-1.0.4-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyalexa-lambda-1.0.4.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page