An open API service indexing awesome lists of open source software.

https://github.com/assemblyai-community/assemblyai-slack-bot


https://github.com/assemblyai-community/assemblyai-slack-bot

Last synced: 8 months ago
JSON representation

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)