pollbot
A Slack "pollbot" intended to run via Zapier.com Creates simple polls with up to 9 options that users can vote on via emoji reactions.
Zapier Instructions Part 1
- Zapier.com -> Make A Zap -> Zapier Trigger -> Webhooks by Zapier -> Catch Hook
- (leave child key blank)
- Copy webhook URL in order to paste it into the Slack settings below
- Name your Zap "slack pollbot" (upper left)
- Don't click "OK, I did this" yet.
- Keep the Zapier tab open, you'll come back to it in a bit.
Slack Instructions
- Open a new browser tab
- Go to https://your-slack-team.slack.com/apps/manage/custom-integrations
- Slash Commands -> Add Configuration -> /poll command
- Paste the webhook URL from Part 1 in the URL field
- Method = POST
- Customize Name = Pollbot
- Autocomplete help text Description = "Let people vote on a topic"
- Autocomplete help text Usage Hint = "Poll Question; Option 1; Option 2; etc."
- Click Save Integration
- Go to https://your-slack-team.slack.com/apps/manage/custom-integrations (again)
- Bots -> Add Configuration
- Username = pollbot
- Copy the API Token and paste it in the Zapier code section below
- Click Save Integration
Zapier Instructions Part 2
- Zapier Action -> Code "Run Python"
- Map the following Input Data...
- "username": "Step 1 Username"
- "text": "Step 1 Text"
- "channel_name": "Step 1 Channel Name"
Final step
Paste the appropriate chunk of code below into the Run Python "Code" box