@openctx/provider-slack
v0.0.9
Published
Slack context for code AI and editors (OpenCtx provider)
Downloads
80
Readme
Slack context provider for OpenCtx
This is a context provider for OpenCtx that brings Slack context to code AI and editors. Slack context provider allows to search for relevant threads when mentioning a slack channel and use all the messages in the thread as the context to AI.
Status: Experimental
Configuration
To create Slack User Auth token:
- Create a slack app for you workspace from scratch using slack api - Click on "Create New App" button..
- Go to the "OAuth & Permissions" tab and add the following permission in the User Token Scopes.
channels:history
channels:read
search:read
users:read
- Click on "Install to workspace".
- Copy the "User OAuth Token" and use it as the
slackAuthToken
in the OpenCtx provider configuration. - Use the following OpenCtx provider configuration:
"openctx.providers": {
// ...other providers...
"https://openctx.org/npm/@openctx/provider-slack": {
"slackAuthToken": "<USER OAuth Token>"
}
},
Development
- Source code
- Docs
- License: Apache 2.0