PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
20.73k stars 1.24k forks source link

Feature: Support Hero Jr. #11209

Closed joethreepwood closed 4 months ago

joethreepwood commented 2 years ago

Is your feature request related to a problem?

For reasons discussed in greater detail here, I think we need a bot which helps the support hero and our users.

Reasons why this would be helpful in brief:

Describe the solution you'd like

A bot which, whenever a user posts in #community-support, responds with a canned message that adjusts to give accurate information about the support hero rotation.

The bot would need to:

Ideally the bot activity would also be detectable as an event in posthog (for analytics) and could be filtered out of Zendesk, so it doesn't create noise. But these are stretch goals.

Describe alternatives you've considered

Tried a few ways to do this myself, but ended up here.

Additional context

Thank you for your feature request – we love each and every one!

MrKevinOConnell commented 2 years ago

Hey @joethreepwood, I can do this! Just a couple of things: I don't have access to Pagerduty, so what I can do for now is create a command to change who is on duty/what their timezone is. Also, is there any preference for where the bot is hosted?

camerondeleone commented 2 years ago

This is the kind of thing which could be helpful for new users (and us) but could also totally kill the vibe in the channel and make regular posters quite annoyed, so I would advocate for a couple of things here:

  1. The ability to 'silence' this bot after seeing it once
  2. The ability for this bot message to show up only for a single person (I assume the slack bot api exposes something like this, because i can do /remind x in any public channel and only see it myself — maybe that's not true, though)

I sort of feel like this is just kicking the can our support issue down the line a bit, but it's worth a shot.

joethreepwood commented 2 years ago

Yeah, agree that's a good shout @camerondeleone

@MrKevinOConnell The best place to host, I'm told, would probably be the same place as our contributions bot which was built by @yakkomajuri

MrKevinOConnell commented 2 years ago

@joethreepwood @camerondeleone I think I did everything that was addressed, here's the repo. I can't see the contributions bot because its private so I got it hosted on heroku, here is a example slack workplace if either of you want to try it out https://join.slack.com/t/slackbot-a3w1665/shared_invite/zt-1dwrzrcqf-B3d3L01vAwkdmNF6fiNsNQ

Here's a screenshot showing how it works:

Screen Shot 2022-08-12 at 7 08 09 PM
joethreepwood commented 2 years ago

Thanks @MrKevinOConnell - I've dropped some quick questions on an issue on your repo. Hopefully we can get this deployed to the PostHog Slack soon!

benjackwhite commented 2 years ago

I forked the repo, and setup a new issue here with final tasks to get this actually prod-ready https://github.com/PostHog/support-hero-junior/issues/1

EDsCODE commented 1 year ago

This bot can work in tandem with the new support setup to push slack messages to the right support-channels