Skip to content

A simple AWS Lambda client that performs quick lookups based on a textual query.

Notifications You must be signed in to change notification settings

aralshawa/info-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Info Bot

In remote areas where cellular 3G connectivity is more difficult to come by, it is often difficult to perform quick online lookups; one example being looking up the short-term weather to inform hiking decisions.

This is a simple client intended to be deployed as a Twilio SMS webhook that performs quick lookups based on a textual query. Backed by an AWS Lambda function, this allows the user to offload the desired network request to a serverless platform.

Sample Utterances

  • "Weather in Yosemite"
  • "Forecast 36.508, -118.575"
  • "Wiki Half Dome"
  • "Give me a quotation!"

Key Dependencies

Installation & Deployment

  1. Clone this project.
  2. Create an AWS profile named claudia (used in package.json scripts) with the following IAM programmatic access permissions.
    • AWSLambdaFullAccess
    • IAMFullAccess
    • AmazonAPIGatewayAdministrator
  3. Add the profile keys to .aws/credentials (Reference).
  4. Install node 6.10.* to match the Lambda execution environment. Use nvm to manage multiple node versions, if needed.
  5. Make sure you have npm installed globally.
  6. In the command prompt run the following commands.
$ cd `project-directory`
$ npm install
  1. To create the cluadia configuration.
$ npm run create
  1. To configure and store Twilio account access keys and tokens into the API Gateway stage variables. This will result with a list of webhooks to the Lambda function that can be called when a message comes into the desired Twilio phone number.
$ npm run update -- --configure-twilio-sms-bot

References

Future Work

  • Integrate WolframAlpha textual querying

About

A simple AWS Lambda client that performs quick lookups based on a textual query.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published