feat: auto reply to public questions via dm 🤖 #518
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description ✏️
Adds support for auto replying to questions asked in certain public channels. These responses are full LLM (RAG implementation) responses but are sent to DM. The key UX decision here is we don't want to take away from the community feel by having the bot reply publicly to every single message in a channel (despite that others may learn from it).
This PR:
answerPublicQuestionInPrivate
function, which is similar toanswerChatbotQuestion
with a slightly different UX (ie: won't respond if nothing high confidence is found).slack.question.answer.private
Bull job.Public Question Answered
Mixpanel event.user
optional on a Mixpanel event, this is important for tracking non-user specific events such as our system automatically responding to public questions.ts
of a Slack message when a notification is sent.getAnswerFromSlackHistory
to take inthreads
in order to be able to allow the caller to customize which threads the LLM takes into account and also adds thread references in that function.Type of Change 🐞
Checklist ✅