Git Product home page Git Product logo

secretary's Introduction

Secretary is a Twilio app working over Amazon Lambda.

Tech Stack

  • AWS API Gateway
  • AWS Lambda
  • AWS S3
  • AWS SES
  • Twilio

You may want to take a look at this document before starting to implement: https://www.twilio.com/docs/sms/tutorials/how-to-receive-and-reply-python-amazon-lambda

Requirements

  • virtualenv
  • python3.7
  • zip

Development

Create a virtual environment folder named venv-aws and activate it. Then install the required packages:

pip install -r requirements.txt

Deployment

In the project root folder:

./create_archives.sh

Then, you can upload this zip file using the AWS console. Or if you have aws command-line application, try this command, secretary_dial is a function name:

aws lambda update-function-code --function-name secretary_dial --zip-file fileb://function.zip

The last step in AWS-side is configuring API endpoint for the dial. After you configured the endpoint, you will use this URL in Twilio.

Required environment variables:

  • ENV: dial, dial_call_status. To get API urls looking at the environment. It can be prod or dev, or what you decided in API Gateway.
  • PHONE_NUMBER: dial. To redirect the caller if the contact doesn't answer the call.
  • COMPANY_NAME: dial. Used in welcome message.
  • SYSTEM_EMAIL_ADDRESS: dial_call_status. From email.
  • MANAGER_EMAIL_ADDRESSES: dial_call_status. To email.

secretary's People

Contributors

gkmngrgn avatar

Watchers

James Cloos avatar  avatar

secretary's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.