Add an Action Server
Rasa X version 0.33.0 or higher is only compatible with Rasa Open Source 2.x. If you are on Rasa Open Source 1.x, please check the compatibility matrix for a compatible version.
Disabling the Default Action Server
If you are not running an action server at all, and you don't want the default app service to run as a placeholder, you can disable installation of the action server:
app:
install: false
Adding a Custom Action Server
Note
Rasa X does not communicate directly with the action server. Only Rasa Open Source servers communicate with the action server. Because Rasa X can start Rasa Open Source servers, it can also start an action server; however, it is recommended to start both Rasa Open Source and action server separately using their respective Helm Charts.
To run a custom action server you need a Docker image for your action server. Please see Building an Action Server Image for more information.
To deploy a custom action server, you can either:
- Use the Rasa Action Server Helm Chart to deploy your action server. This is the recommended method.
- Use the Rasa X Helm Chart to deploy your action server.
Starting an Action Server using the Rasa Action Server Helm Chart
Follow the instructions on the Rasa SDK docs for deploying an action server using the Rasa Action Server Helm Chart.
Disable installation of the action server by the Rasa X Helm chart and specify the URL of your separately deployed action server:
app:
install: false
existingUrl: http://myactionserver:5055/webhook
This will take care of passing the correct action server endpoint to any Rasa Open Source servers started by the Rasa X Helm chart.
- For any Rasa Open Source servers that are started by the Rasa Helm chart, follow the instructions to connect your Rasa Open Source deployments to the action server.
Starting an Action Server using the Rasa X Helm Chart
- Add the image and tag you want to use to the
appsection ofvalues.yml. If your image is stored in a private registry, please refer to Adding Image Pull Secrets for Private Registries.
# app (custom action server) specific settings
app:
install: true
name: "<name of your action server image>"
tag: "<tag of your image>"
This will also take care of passing the correct action server endpoint to any Rasa Open Source servers started by the Rasa X Helm chart.
- For any Rasa Open Source servers that are started by the Rasa Helm chart, follow the instructions to connect your Rasa Open Source deployments to the action server.