Skip to content

Commit

Permalink
Improve AI plugin docs for self-hosted installation (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec authored Nov 12, 2024
1 parent 6db65e7 commit b6f54d9
Show file tree
Hide file tree
Showing 18 changed files with 83 additions and 40 deletions.
31 changes: 26 additions & 5 deletions docs/plugins/ai-assistant.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ The plugin provides the following features:

## Get started

## Set up OpenAI Assistant

Firstly, configure a new OpenAI Assistant. To do it, clone the [`botkube-plugins`](https://github.com/kubeshop/botkube-plugins) repository and follow the []`assistant-setup` instructions](https://github.com/kubeshop/botkube-plugins/tree/main/hack/assistant-setup).

## Enable the plugin

Enable the plugin by adding [source](../self-hosted-configuration/source.md) and [executor](../self-hosted-configuration/executor.md) plugins to the Botkube configuration:
Expand All @@ -34,7 +38,7 @@ Enable the plugin by adding [source](../self-hosted-configuration/source.md) and
sources:
# ...
ai-brain:
botkubeExtraPlugins/ai-brain:
botkubeExtra/ai-brain:
displayName: "AI Brain"
enabled: true
context:
Expand All @@ -51,7 +55,7 @@ sources:
executors:
# ...
ai:
botkubeExtraPlugins/ai:
botkubeExtra/ai:
displayName: "AI"
enabled: true
context:
Expand All @@ -66,15 +70,32 @@ executors:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Then, use the `ai` executor plugin in your [communication platform](../self-hosted-configuration/communication/index.md).
Then, use the `ai` executor and `ai-brain` plugin in your [communication platform](../self-hosted-configuration/communication/index.md) configuration. For example:

```yaml
communications:
default-group:
socketSlack:
# ...
channels:
default:
# ...
bindings:
sources:
# ...
- ai-brain
executors:
# ...
- ai
```

## Add the AI button to Kubernetes events

Optionally, you can add the AI button to your Kubernetes events by adding the following snippet to the [Kubernetes plugin](./kubernetes.md):
Optionally, you can add the AI button to your Kubernetes events. For example, to display the button for error events, add the following snippet to the [Kubernetes plugin](./kubernetes.md) configuration:

```yaml
extraButtons:
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/argocd.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Enable the plugin by adding a new [source](../self-hosted-configuration/source.m
```yaml
sources:
"argocd":
botkubeExtraPlugins/argocd:
botkubeExtra/argocd:
enabled: true
context:
rbac:
Expand All @@ -75,7 +75,7 @@ sources:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/exec.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ Enable the plugin by adding a new [executor](../self-hosted-configuration/execut
executors:
# ...
flux:
botkubeExtraPlugins/exec:
botkubeExtra/exec:
displayName: "Exec"
enabled: true
config: # See the Configuration section for config properties.
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/flux.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Enable the plugin by adding a new [executor](../self-hosted-configuration/execut
executors:
# ...
flux:
botkubeExtraPlugins/flux:
botkubeExtra/flux:
displayName: "Flux"
enabled: true
context:
Expand All @@ -69,7 +69,7 @@ executors:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/github-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Enable the plugin by adding a new [source](../self-hosted-configuration/source.m
sources:
# ...
gh-events:
botkubeExtraPlugins/github-events:
botkubeExtra/github-events:
displayName: "GitHub Events"
enabled: true
config:
Expand All @@ -25,7 +25,7 @@ sources:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Enable the plugin by adding a new [executor](../self-hosted-configuration/execut
executors:
# ...
helm:
botkubeExtraPlugins/helm:
botkubeExtra/helm:
displayName: "Helm"
enabled: true
context:
Expand All @@ -33,7 +33,7 @@ executors:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins:
repositories:
botkube:
url: https://github.com/kubeshop/botkube/releases/download/v1.14.0/plugins-index.yaml
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/keptn.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Enable the plugin by adding a new [source](../self-hosted-configuration/source.m
sources:
# ...
keptn:
botkubeExtraPlugins/keptn:
botkubeExtra/keptn:
enabled: true
config:
url: "http://api-gateway-nginx.keptn.svc.cluster.local/api" # Keptn API Gateway URL.
Expand All @@ -26,7 +26,7 @@ sources:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Enable the plugin by adding a new [source](../self-hosted-configuration/source.m
sources:
# ...
prometheus:
botkubeExtraPlugins/prometheus:
botkubeExtra/prometheus:
displayName: "Prometheus"
enabled: true
config:
Expand All @@ -27,7 +27,7 @@ sources:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
32 changes: 27 additions & 5 deletions versioned_docs/version-1.13/plugins/ai-assistant.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ The plugin provides the following features:

## Get started

## Set up OpenAI Assistant

Firstly, configure a new OpenAI Assistant. To do it, clone the [`botkube-plugins`](https://github.com/kubeshop/botkube-plugins) repository and follow the []`assistant-setup` instructions](https://github.com/kubeshop/botkube-plugins/tree/main/hack/assistant-setup).

## Enable the plugin

Enable the plugin by adding [source](../self-hosted-configuration/source.md) and [executor](../self-hosted-configuration/executor.md) plugins to the Botkube configuration:
Expand All @@ -34,7 +38,7 @@ Enable the plugin by adding [source](../self-hosted-configuration/source.md) and
sources:
# ...
ai-brain:
botkubeExtraPlugins/ai-brain:
botkubeExtra/ai-brain:
displayName: "AI Brain"
enabled: true
context:
Expand All @@ -51,7 +55,7 @@ sources:
executors:
# ...
ai:
botkubeExtraPlugins/ai:
botkubeExtra/ai:
displayName: "AI"
enabled: true
context:
Expand All @@ -66,15 +70,32 @@ executors:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Then, use the `ai` executor plugin in your [communication platform](../self-hosted-configuration/communication/index.md).
Then, use the `ai` executor and `ai-brain` plugin in your [communication platform](../self-hosted-configuration/communication/index.md) configuration. For example:

```yaml
communications:
default-group:
socketSlack:
# ...
channels:
default:
# ...
bindings:
sources:
# ...
- ai-brain
executors:
# ...
- ai
```

## Add the AI button to Kubernetes events

Optionally, you can add the AI button to your Kubernetes events by adding the following snippet to the [Kubernetes plugin](./kubernetes.md):
Optionally, you can add the AI button to your Kubernetes events. For example, to display the button for error events, add the following snippet to the [Kubernetes plugin](./kubernetes.md) configuration:

```yaml
extraButtons:
Expand Down Expand Up @@ -140,6 +161,7 @@ The `ai-brain` plugin supports the following configuration:
```yaml
openAIAssistantID: "..." # OpenAI Assistant ID
openAIAPIToken: "..." # OpenAI API Token
openAIBaseURL: https://api.openai.com/v1 # Optional custom URL
vectorStoreIDForThreads: "..." # Optional Vector Store ID for each thread. This allows file search capabilities for the AI plugin.
```

Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-1.13/plugins/argocd.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Enable the plugin by adding a new [source](../self-hosted-configuration/source.m
```yaml
sources:
"argocd":
botkubeExtraPlugins/argocd:
botkubeExtra/argocd:
enabled: true
context:
rbac:
Expand All @@ -75,7 +75,7 @@ sources:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-1.13/plugins/exec.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ Enable the plugin by adding a new [executor](../self-hosted-configuration/execut
executors:
# ...
flux:
botkubeExtraPlugins/exec:
botkubeExtra/exec:
displayName: "Exec"
enabled: true
config: # See the Configuration section for config properties.
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-1.13/plugins/flux.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Enable the plugin by adding a new [executor](../self-hosted-configuration/execut
executors:
# ...
flux:
botkubeExtraPlugins/flux:
botkubeExtra/flux:
displayName: "Flux"
enabled: true
context:
Expand All @@ -69,7 +69,7 @@ executors:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-1.13/plugins/github-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Enable the plugin by adding a new [source](../self-hosted-configuration/source.m
sources:
# ...
gh-events:
botkubeExtraPlugins/github-events:
botkubeExtra/github-events:
displayName: "GitHub Events"
enabled: true
config:
Expand All @@ -25,7 +25,7 @@ sources:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-1.13/plugins/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Enable the plugin by adding a new [executor](../self-hosted-configuration/execut
executors:
# ...
helm:
botkubeExtraPlugins/helm:
botkubeExtra/helm:
displayName: "Helm"
enabled: true
context:
Expand All @@ -33,7 +33,7 @@ executors:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.13/plugins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins:
repositories:
botkube:
url: https://github.com/kubeshop/botkube/releases/download/v1.14.0/plugins-index.yaml
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-1.13/plugins/keptn.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Enable the plugin by adding a new [source](../self-hosted-configuration/source.m
sources:
# ...
keptn:
botkubeExtraPlugins/keptn:
botkubeExtra/keptn:
enabled: true
config:
url: "http://api-gateway-nginx.keptn.svc.cluster.local/api" # Keptn API Gateway URL.
Expand All @@ -26,7 +26,7 @@ sources:
plugins:
# ...
repositories:
botkubeExtraPlugins:
botkubeExtra:
url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml
```
Expand Down
Loading

0 comments on commit b6f54d9

Please sign in to comment.