Giter Club home page Giter Club logo

chime-news-bot's Introduction

chime-news-bot

Alt text

Overview

This solution deploys a simple serverless process for getting articles from RSS feeds and posting them to an Amazon Chime chat channel using a web hook.

Planned Improvements

  1. Break GetItems Function into State Machine (AWS Step Functions).
  2. Add Sentiment/Key Phrase Detection.
  3. Daily Roll-Up of Activity.
  4. Notification Improvements (New Versions, New Feeds, Etc)
  5. Better handling of feeds to load when deployed (config file perhaps).

Prerequisites

Create Chime Room and WebHook

https://docs.aws.amazon.com/chime/latest/ug/webhooks.html

Update Feeds to Load

Update functions/load_feeds/app.py

NOTE: You can also directly update the Feeds DynamoDB table after deployment to include additional feeds.

feeds_to_load = [
    {
        'title': 'AWS Updates',
        'url': 'http://aws.amazon.com/new/feed/',
        'icon': ':cloud:'
    },
    {
        'title': title,  # Feed Title Displayed in Chat
        'url': 'url',    # URL of RSS Feed (Only RSSV2 Currently Supported)
        'icon': ':icon:' # Corresponds to Chime Emoticons
    },
    # More Feeds Below Here
]

Deploy

Install SAM CLI

Install the AWS Serverless Application Model CLI - https://aws.amazon.com/serverless/sam/ Configure your local AWS Credentials (aws configure). Create an S3 bucket to store the packaged code and replace S3_BUCKET_TO_STAGE_CODE with the name of your bucket in the comamands below.

Build

sam build --use-container

Package

Replace [YOUR_S3_BUCKET] with the bucket you'll use to hold deployment artifacts.

sam package \
    --output-template-file packaged.yaml \
    --s3-bucket [YOUR_S3_BUCKET]

Deploy

Replace [YOUR_WEBHOOK_URL] with the webhook you created for your Chime chat room.

sam deploy \
    --template-file packaged.yaml \
    --stack-name chime-news-feed \
    --capabilities CAPABILITY_IAM \
    --parameter-overrides \
    ChimeWebHookURL=[YOUR_WEBHOOK_URL]

Post Deploy

Update the Feeds DynamoDB table with the RSS feeds you want to monitor. Follow the pattern of the default item, which can be deleted if needed.

chime-news-bot's People

Contributors

horsfieldsa avatar

Forkers

kprepos

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.