Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacoblee93/project-msteams-airtable-daily-metrics-bot
A project that runs once a day that fetches user signup data from Airtable, summarizes it, and send the results to Microsoft Teams.
https://github.com/jacoblee93/project-msteams-airtable-daily-metrics-bot
Last synced: 26 days ago
JSON representation
A project that runs once a day that fetches user signup data from Airtable, summarizes it, and send the results to Microsoft Teams.
- Host: GitHub
- URL: https://github.com/jacoblee93/project-msteams-airtable-daily-metrics-bot
- Owner: jacoblee93
- Created: 2020-03-16T05:51:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-16T19:27:22.000Z (almost 5 years ago)
- Last Synced: 2024-12-13T19:13:25.876Z (about 1 month ago)
- Language: JavaScript
- Size: 788 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microsoft Teams + Airtable Daily Metrics Bot
## Deploy in Seconds
[](https://deploy.stdlib.com/)
This is a Microsoft Teams bot that, once a day, will query Airtable for new signups in the last day, and will send a count to your channel along with more detailed information on up to ten of the most recent signups.
![](./readme/images/metrics-message.png)
Setup is simple –– you can deploy it without writing any code or configuring any files due to Standard Library's [Identity Token](https://docs.stdlib.com/identity-management-sso-for-apis/what-is-an-identity-token/) support! The only things you need to do are to add the Standard Library bot to your Microsoft Teams organization, set up a target Airtable base, link those resources to Standard Library, and deploy.
## Setting Up Your Airtable Base
To set up an Airtable base with the proper fields, follow this link to copy the base into your own Airtable workspace: https://airtable.com/addBaseFromShare/shrLYjygH0wHqxuEm. Your base should look something like the one in the image below.
![](./readme/images/user-signup-base.png)
**Note:** You'll notice that the **Created At** fields for each entry are actually set for 2030 –– this is just for testing purposes. Our workflow will check for any rows with a **Created At** field greater than 24 hours before execution, and setting this date in the future ensures that we'll have some sample data to show. When you're ready to use real user signups, you should delete these rows.
## Installing Your Bot Into Teams
`// Flow pending`
## Deploying to Standard Library
Once you've set up your Airtable base and installed the Standard Library app into your Microsoft Teams organization, click the button below to open this repo in [Autocode](https://autocode.stdlib.com/):
[](https://deploy.stdlib.com/)
You should see a screen like this:
![](./readme/images/deploy-github-modal.png)
Save your project, then open `functions/events/scheduler/daily.js` in the sidebar and click the red **2 Accounts Required** button in the lower right corner.
![](./readme/images/active-endpoint.png)
You'll then see a modal appear that will prompt you to link the Airtable base you just created and select a specific team within your Microsoft Teams organization where you would like to receive updates.
Once you've linked the required resources, you can press the green **Run Code** button to test your endpoint.
Once you've verified things are working, press the blue **Deploy** button to deploy your project live.
That's it, you're all done! Your bot should be ready to go.
# Thank You!
Please check out [Standard Library](https://stdlib.com/) or follow us on Twitter,
[@StdLibHQ](https://twitter.com/@StdLibHQ).