thealanberman / slack-bridge-zap

Bridge (share) a channel two Slack teams with this code snippet + Zapier.com!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slack Zapier Bridge

Creates a bridged (shared) channel between two Slack teams with this code snippet and zapier.com!

Prerequisites

  • An account on zapier.com (free tier will work fine)
  • The power to create webhooks on 2 Slack teams

Instructions

  1. Create a new Zap on Zapier.
  2. Zap Trigger = Catch Hook
  3. (Leave Child Key blank)
  4. Copy the generated webhook URL and save it somewhere.
  5. (Don't continue to the Action setup yet, but keep the zapier browser tab open)
  6. In a different browser tab, open up the Slack Custom Integrations settings.
  1. Create an Outgoing Webhook
  2. Select a channel for the Outgoing Webhook. This will be the shared channel between the 2 Slack teams.
  3. In URLs, paste the generated Zapier webhook URL from step 4.
  4. (it may also be a good idea to customize the name of the webhook to something like "slack-bridge")
  5. Save the settings.
  6. Go to the channel you selected in step 8 and type a test message. Required for the next step!
  7. Go back to the Zapier tab and click the OK button.
  8. (You should get a Test Successful message) Click Continue.
  9. Zap Action = Python Code
  10. Configure the Run Python Input Data:
  11. Left box = "text". Right box, select the Catch Hook "Text" field from the dropdown.
  12. Left box = "username". Right box, select the Catch Hook "User Name" field from the dropdown.
  13. Left box = "team_domain". Right box, select the Catch Hook "Team Domain" field from the dropdown.
  14. Paste the code from slack-bridge-zap.py in the Code box.
  15. [TO BE CONTINUED]

About

Bridge (share) a channel two Slack teams with this code snippet + Zapier.com!

License:GNU General Public License v3.0


Languages

Language:Python 100.0%