We need to allow distributors to easily add a bot to their Slack / Telegram so that they may regularly post relevant content automatically.
The user story for the distributor should work as follows:
- User signs in
- User creates an integration or navigates to an existing integration
- User clicks on "Add a community" button
- User picks a platform (Slack / Telegram)
- User pastes a channel ID
- User configures bot with form
Slack:
- Slack Token
- Channel ID
- Post frequency
Telegram:
- Telegram Token
- Chat ID
- Message Thread ID
- Post frequency
- Upon completion, a bot for their platform should start posting content.
We need to add an event type on analytics for when a bot posts content, and we need to know which bot posted content.
We will need an endpoint to be polled that will return whether new content is available to be pulled or not. This endpoint will have to make use of analytics to determine what content has been posted already.
We need to make endpoints for creating, reading, updating and deleting a bot integration.
The bot integration will be hooked up to a job that will periodically call an endpoint to post some content to the desired platform. We need a table to store the configuration for the bot integration.
We need to allow distributors to easily add a bot to their Slack / Telegram so that they may regularly post relevant content automatically.
The user story for the distributor should work as follows:
Slack:
Telegram:
We need to add an event type on analytics for when a bot posts content, and we need to know which bot posted content.
We will need an endpoint to be polled that will return whether new content is available to be pulled or not. This endpoint will have to make use of analytics to determine what content has been posted already.
We need to make endpoints for creating, reading, updating and deleting a bot integration.
The bot integration will be hooked up to a job that will periodically call an endpoint to post some content to the desired platform. We need a table to store the configuration for the bot integration.