You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The Slack Chat Bot is a serverless, event-driven bot designed using the OpenWhisk open source project.

This bot is designed to post slack messages to OpenWhisk dev list (dev@openwhisk.incubator.apache.org) on a daily basis so that OpenWhisk developers receives a daily digest of conversations, one digest per slack channel. A daily digest will bring one whole day worth of updates in a single email on dev list and are archived on dev list for reference purposes. A daily digest contains filtered and formatted slack messages in easy to read and searchable format. The messages like someone logging in or logging out, some user joining a channel or leaving the channel, status updates, etc are filtered to create a meaningful and concise digest.

Proposed Architecture

The Slack Chat Bot is designed with a sequence of two dependent actions (like microservices) which is invoked by an internal OpenWhisk alarm (similar to a cron job) trigger. Both of these actions will be implemented in Python, using the Python runtime provided by OpenWhisk. Here is what action sequence does with its triggered flow.

Invoked once a day by an Alarm Trigger

 

The sequence of actions is invoked by Alarm trigger, which then starts a chain of microservices to retrieve slack history for past 24 hours,  

  • Retrieve Slack History - An action 

 

 

  • No labels