Store the URLs shared in Slack in an Airtable base.
The installation process requires you to:
- Create a glitch project (although you can use any server or platform you want).
- Create a bot in Slack and copy the tokens/credentials.
- Create a base in Airtable and copy the tokens/credentials.
- Invite the bot to the Slack channels you want to monitor.
In this step you'll create a Glitch project that will host a server to handle the communications between your Slack bot and your Airtable base.
- Fork this repo.
- Go to your glitch.com dashboard.
- Create a new "hello-express" project.
- Open the project options and click on "Advanced options".
- Grant access to your GitHub account.
- Click on "Import from GitHub".
- In the prompt window write the path to the repo in GitHub:
username/link-snitch. - Using the glitch browser to copy the contents of the
env.samplefile and use it to replace the contents of the secret.envfile.
In this step you'll create and set up a bot that will look for links in the messages of the Slack channels you invite it in.
- Go to api.slack.com.
- Click on
Create New App. - Add a name for the bot and pick your Slack.
- In the
Add features and functionalitysection click onBots. Add a bot to allow users to exchange messages with your app. - Click on
Add a bot user. - Configure your bot details and create it.
- Go to
Basic Information. - Copy the Verification Token →
SLACK_VERIFICATION_TOKEN. - and click
Install App to Workspace. - Click on
OAuth & Permissionsand copy the Bot User OAuth Access Token →SLACK_BOT_TOKEN. - Go to
Event Subscriptionsand enable the events. - In
Request URLpaste the URL of your Glitch project:https://name-of-the-project.glitch.me. - Scroll down to
Subscribe to Bot Eventsand click onAdd Bot User Event. - Look for the
message.channelsevent and select it.
In this step you'll create and set up an Airtable base to collect all the links
- Go to Airtable and create a new base using
Import a spreadsheet - Pick the option to create the table using a CSV file and use the aritable.csv file in this repo
- Rename the base and copy that name →
AIRTABLE_BASE_NAME - Go to your account and copy the API key →
AIRTABLE_API_KEY
Once you've finished the set up of the bot, open any channel and invite the bot using the following command:
/invite @name-of-your-bot
To test that everything is working fine, write a link in the channel and see if it was inserted in Airtable.