I’ve installed Rasa X with REI, on a google cloud VM.
I’ve got:
antoniopedrolopes@rasa-open:~$ rasactl status
Name: catiax
Status: Running
URL: http://34.159vvvv:30031
Version: 1.0.1
Enterprise: inactive
Rasa production version: 2.8.15
Rasa worker version: 2.8.15
Project path: /home/antoniopedrolopes/projetos/catiaV2
I’ve created a github workflow with this code:
on:
push:
branches:
- main
paths:
- 'actions/**'
jobs:
build_and_deploy:
runs-on: ubuntu-latest
name: Build Action Server image and upgrade Rasa X deployment
steps:
- name: Checkout repository
uses: actions/checkout@v2
- id: action_server
name: Build an action server with a custom actions
uses: RasaHQ/action-server-gha@master
# Full list of parameters: https://github.com/RasaHQ/action-server-gha/tree/master#input-arguments
with:
docker_image_name: 'nonola76/rasa_action'
docker_registry_login: ${{ secrets.DOCKER_HUB_LOGIN }}
docker_registry_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
# More details about github context:
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
#
# github.sha - The commit SHA that triggered the workflow run
docker_image_tag: ${{ github.sha }}
I’ve got 2 problems:
I cannot run actions on rasa X; the intent and action is recognized, but It doesn’t trigger.
I cannot run an external connection, which I have in credentials.yml:
rasa_audiocodes.AudiocodesInput:
token: "1234"
With Rasa Open Source, I had to run rasa run -m models --enable-api --cors "*" --debug in order to be able to use the audiocodes. Now, how can I automatically run it in rasactl?
Can someone tell me if I I’ve to or how can I change the values (append) in the helm / kubernetes ?
@nonola can you in summary you tell me what is the main issue? I did not get it.
@nonola as I can see you did not mention the requirements.txt file in GitHub actions? did you mention the image you pushed on the docker registry in values.yml? As I not used the REI ( I have used this use case with docker and Rasa x version 0.42.5) - Thanks.
from typing import Dict, Text, Any, List, Union
from rasa_sdk import Tracker, Action
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.forms import FormValidationAction
from rasa_sdk.events import Restarted, SlotSet
from datetime import datetime
import datetime as dt
What am I supposed to input in the requirements-actions.txt ?
I don’t konw if you understand my problem with the actions:
With a venv of Rasa OS, I run “Rasa run actions” and the action server starts and rasa shell recognizes an action intent and run a certain action.
With rasa-x, installed with REI, my problem is to “automatically” run “Rasa run actions” when talking to the bot in rasa-x interface.
The other problem is that when I don’t know how to “automatically” run " rasa run -m models --enable-api --cors “*” --debug" in rasa-x. That is, stay on all the times.
First, I tried my project with rasa open source on a virtual env, in google cloud VM; that was when I had to open 2 terminals to the chat work. This on VM command line.
After I saw it worked fine, I wanted to install rasa-x; I installed it with REI, rasa-x server is working fine, but, in the browser with rasa-x interface, when I try an action intent is recognized, the action is not executed;
My problem is exactly that: why do rasa action don’t run with rasa-x, when they worked fine with rasa open source? The same with " --enable-api --cors “*” --debug"
Running rasa action server on Rasa X have different method to link with Rasa X, that’s why you are following Github action, to create the action server image and connecting with Rasa X using values.yml, as when it will connect with Rasa X when you start the Rasa x it will also start action server and all the code will run with ease.