diff --git a/index.yaml b/index.yaml index 17c965b..5679bfa 100644 --- a/index.yaml +++ b/index.yaml @@ -7882,6 +7882,24 @@ entries: - https://giantswarm.github.io/giantswarm-playground-catalog/security-pack-helper-0.0.1.tgz version: 0.0.1 slack-replier: + - annotations: + application.giantswarm.io/metadata: https://giantswarm.github.io/giantswarm-playground-catalog/slack-replier-0.0.6.tgz-meta/main.yaml + application.giantswarm.io/readme: https://giantswarm.github.io/giantswarm-playground-catalog/slack-replier-0.0.6.tgz-meta/README.md + application.giantswarm.io/team: horizon + application.giantswarm.io/values-schema: https://giantswarm.github.io/giantswarm-playground-catalog/slack-replier-0.0.6.tgz-meta/values.schema.json + apiVersion: v2 + appVersion: 0.0.1 + created: "2024-01-16T08:26:39.443314668Z" + description: Please add description + digest: d3a577215062436217fa172d03f4ea41d5d97e83b1c1372595458fcd1d83b53a + home: https://github.com/giantswarm/slack-replier + icon: https://s.giantswarm.io/app-icons/slack-replier/1/light.svg + name: slack-replier + sources: + - https://github.com/some-org/some-repo + urls: + - https://giantswarm.github.io/giantswarm-playground-catalog/slack-replier-0.0.6.tgz + version: 0.0.6 - annotations: application.giantswarm.io/metadata: https://giantswarm.github.io/giantswarm-playground-catalog/slack-replier-0.0.4.tgz-meta/main.yaml application.giantswarm.io/readme: https://giantswarm.github.io/giantswarm-playground-catalog/slack-replier-0.0.4.tgz-meta/README.md @@ -9459,4 +9477,4 @@ entries: urls: - https://giantswarm.github.io/giantswarm-playground-catalog/vertical-pod-autoscaler-crd-1.0.0.tgz version: 1.0.0 -generated: "2024-01-15T14:22:41.206541913Z" +generated: "2024-01-16T08:26:39.442593469Z" diff --git a/slack-replier-0.0.6.tgz b/slack-replier-0.0.6.tgz new file mode 100644 index 0000000..4010eed Binary files /dev/null and b/slack-replier-0.0.6.tgz differ diff --git a/slack-replier-0.0.6.tgz-meta/README.md b/slack-replier-0.0.6.tgz-meta/README.md new file mode 100644 index 0000000..73ebb08 --- /dev/null +++ b/slack-replier-0.0.6.tgz-meta/README.md @@ -0,0 +1,37 @@ +[![CircleCI](https://dl.circleci.com/status-badge/img/gh/giantswarm/slack-replier/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/giantswarm/slack-replier/tree/main) + +# slack-replier chart + +**What is this app?** + +An AI bot that auto replies to all questions asked in #ask-me-anything channel. This project kicked-off during Giant Swarm AI Hackathon of 2023. + +**Why did we add it?** + +- Avoid people distraction for usual doubts. +- Not reply twice to same question. +- Have better internal docs. + +**Who can use it?** +- All Giant Swarm Staff. + +**How it works?** + +The bot app works as follows: +1. Starts an HTTP server waiting for POST request on route `/slack/events`. +2. Slack sends an event for new messages posted on #ask-me-anything. +3. The bot receives the incoming POST request and fetches the message content. +4. The bot then create a thread for the message and posts another message directed towards @Ask InKeep bot. +5. @Ask Inkeep bot then replies to the message question using trained knowledge from the Intranet handbook. + +## Installing + +### Create and configure the Slack app + +Go the the [App page in Slack API](https://api.slack.com/apps/) and create a new app. + +1) Give `channels:history`, `channels:read` and `chat:write` scopes to the app in the permissions page +2) Install the App in the workspace +3) Configure the `Event subscription` URL with the ingress domain of your running app +4) Copy the bot token and the verification token in the values provided to the Helm install command. +5) Deploy the app in the cluster diff --git a/slack-replier-0.0.6.tgz-meta/main.yaml b/slack-replier-0.0.6.tgz-meta/main.yaml new file mode 100644 index 0000000..f1a1f56 --- /dev/null +++ b/slack-replier-0.0.6.tgz-meta/main.yaml @@ -0,0 +1,11 @@ +annotations: + application.giantswarm.io/metadata: https://giantswarm.github.io/giantswarm-playground-catalog/slack-replier-0.0.6.tgz-meta/main.yaml + application.giantswarm.io/readme: https://giantswarm.github.io/giantswarm-playground-catalog/slack-replier-0.0.6.tgz-meta/README.md + application.giantswarm.io/team: horizon + application.giantswarm.io/values-schema: https://giantswarm.github.io/giantswarm-playground-catalog/slack-replier-0.0.6.tgz-meta/values.schema.json +chartApiVersion: v2 +chartFile: slack-replier-0.0.6.tgz +dateCreated: '2024-01-16T08:26:37.862527' +digest: d3a577215062436217fa172d03f4ea41d5d97e83b1c1372595458fcd1d83b53a +home: https://github.com/giantswarm/slack-replier +icon: https://s.giantswarm.io/app-icons/slack-replier/1/light.svg diff --git a/slack-replier-0.0.6.tgz-meta/values.schema.json b/slack-replier-0.0.6.tgz-meta/values.schema.json new file mode 100644 index 0000000..d780a8b --- /dev/null +++ b/slack-replier-0.0.6.tgz-meta/values.schema.json @@ -0,0 +1,143 @@ +{ + "$schema": "http://json-schema.org/schema#", + "type": "object", + "properties": { + "image": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "pullPolicy": { + "type": "string" + }, + "registry": { + "type": "string" + }, + "tag": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "podSecurityContext": { + "type": "object", + "properties": { + "fsGroup": { + "type": "integer" + }, + "runAsGroup": { + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer" + } + } + }, + "resources": { + "type": "object", + "properties": { + "limits": { + "type": "object", + "properties": { + "cpu": { + "type": "string" + }, + "memory": { + "type": "string" + } + } + }, + "requests": { + "type": "object", + "properties": { + "cpu": { + "type": "string" + }, + "memory": { + "type": "string" + } + } + } + } + }, + "securityContext": { + "type": "object", + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "capabilities": { + "type": "object", + "properties": { + "drop": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "privileged": { + "type": "boolean" + }, + "seccompProfile": { + "type": "object", + "properties": { + "type": { + "type": "string" + } + } + } + } + }, + "serviceType": { + "type": "string" + }, + "slack": { + "type": "object", + "properties": { + "channels": { + "type": "array", + "items": { + "input": { + "type": "string" + }, + "output": { + "type": "string" + }, + "usersToSkip": { + "type": "array", + "items": { + "type": "string" + } + }, + "usersToAllow": { + "type": "array", + "items": { + "type": "string" + } + }, + "usersToReply": { + "type": "string" + } + } + }, + "token": { + "type": "string" + }, + "verificationToken": { + "type": "string" + } + } + } + } +}