https://github.com/assemblyai-community/assemblyai-slack-bot
https://github.com/assemblyai-community/assemblyai-slack-bot
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/assemblyai-community/assemblyai-slack-bot
- Owner: AssemblyAI-Community
- Created: 2024-09-17T00:16:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-19T23:15:28.000Z (almost 2 years ago)
- Last Synced: 2025-03-13T11:44:09.304Z (over 1 year ago)
- Language: TypeScript
- Size: 85 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AssemblyAI Slack Bot
You cannot develop using the same Slack app at one time, so each contributor should create their own Slack app.
You can use the [manifest.json](./manifest.json) to configure your Slack app, but make sure to replace `https://2cf5-72-221-14-208.ngrok-free.app` with your own public URL.
## Set up
Configure `SLACK_BOT_TOKEN`, `SLACK_SIGNING_SECRET`, and `ASSEMBLYAI_API_KEY` in *.env*, see *.env.sample* as an example.
You can learn [how to get the Slack tokens in the getting started guide](https://tools.slack.dev/bolt-js/tutorial/getting-started-http/#tokens-and-installing-apps).
Install dependencies:
```bash
npm install
```
Run the bot:
```bash
npm run start
# or
npm run watch
```
## Notes
- Why are we using legacy attachments instead of Blocks? Slack Blocks are more restrictive in character length which transcripts can easily exceed. We can still use Block for non-transcript content.
## Useful links
- [Getting started with Bolt for JavaScript and HTTP](https://tools.slack.dev/bolt-js/tutorial/getting-started-http/)
- [Bolt JS](https://github.com/slackapi/bolt-js)