Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.7 KB

README.md

File metadata and controls

60 lines (37 loc) · 1.7 KB

Gamification of assigning leads using Slack

Read story behind this repo on Medium

Requirements

  • .Net hosting with a HTTPS configuration (I'm using Azure)
  • Slack
  • Mandrill
  • MSSQL database

Installation

  • Clone this repo.

  • Setup a connection string to a MSSQL database in Web.config.

  • Run Enable-Migrations and Update-Database in the Package Manager Console to initiate the database.

  • In the database there's now a Agents table. For each agent (salesperson) add a row. (SlackId should be the user name in Slack)

  • In Slack create a new channel (mine is called #leads) and under Custom Integrations add a Incoming WebHooks for this channel. Enter the generated webhook url in Web.config.

  • Add these Slack Commands and enter tokens in Web.config:

  • Get a Mandrill API key and enter in Web.config.

  • In Mandrill setup an Inbound Domain and point this to https://yourdomain/api/mandrill/inbound.

  • Publish to Azure?

    Usage in Slack

    /balance

    Show balance for each agent. (private)

    /bids

    Show all bids for current auction. (private)

    /bid X

    Set your bid to X for current auction.

    /bid

    Get your current bid. (private)

    /autobid X

    Set your autobid to X for future auctions

    /autobid

    Get your current autobid. (private)