Errors implementing slots

Hi there,

I’ve been following the Rasa tutorial from February of this year to get my head around slots and have been trying to implement my own version into my code. However, when I input a value that triggers the action for the slot, I get this error:

Encountered an exception while running action ‘action_receive_name’.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

raise RasaException( rasa.shared.exceptions.RasaException: Failed to execute custom action ‘action_receive_name’ because no endpoint is configured to run this custom action. Please take a look at the docs and set an endpoint configuration via the --endpoints flag. Custom Actions

I don’t understand what it means by configuring via the endpoints flag.

In my endpoints.yml file:

action_endpoint: url: “http://localhost:5055/webhook

is uncommented.

When I run rasa run actions in my other terminal, it says:

Registered function for ‘action_receive_name’.

so the function is registered when I run the command. So I’m confused why I’m getting the error.

As far as I’m aware I’ve done everything the same as the tutorial (also added the action to the domain.yml) , but I might have missed something.

Any help is much appreciated! Many thanks, Joseph

@spuds Did you mentioned action_receive_name in domain.yml? under actions: or have you run the action server using rasa run action ?

@nik202 yeah both actions are in domain.yml and i have a second terminal running rasa run actions which displays:

rasa_sdk.endpoint - Starting action endpoint server… rasa_sdk.executor - Registered function for ‘action_receive_name’. rasa_sdk.executor - Registered function for ‘action_say_name’. rasa_sdk.endpoint - Action endpoint is up and running on http://0.0.0.0:5055

@spuds share rasa version rasa --version

Rasa Version : 2.8.0

Minimum Compatible Version: 2.8.0

Rasa SDK Version : 2.8.0

Rasa X Version : None

Python Version : 3.8.10

Operating System : Windows-10-10.0.19043-SP0

@spuds As Per discussion please follow the steps

Need to install Anaconda First https://youtu.be/GlR60CvTh8A only follow the anaconda installation process, nothing more. Switch to below process.

create a project folder rasa

    1. conda create -name “Your_Environment_Name” python=3.8 or python==3.7.7
    2. conda activate Your_Environment_Name
    3. pip install pip==20.2 --user
    4. pip install rasa-sdk==2.8.0
    5. pip install rasa==2.8.0
    6. rasa init     follow the instructions
    7. running rasa type rasa shell 
    8. for training the bot rasa train
    9. In new separate terminal for custom action i.e action.py run rasa run actions

I would encourage use VS code and for activating environment Clt+Shift+P and select your condo environment.

Some of the reference projects: GitHub - cedextech/rasa-chatbot-templates: RASA chatbot use case boilerplate

Some reference course on Udemy (free) :https://www.udemy.com/course/rasa-for-beginners/

Tips: Read all the documentation or even see the videos of Rasa on Rasa youtube channels, be careful about syntaxs and other set’s of code.

Errors: Can arise some sets of dependencies errors, please just install as it mentioned but just install >= one only.

  • much common error is multidic please follow this pip install sanic==20.9.0 and then install pip install multidict==4.7.6

Note: If you feel like need a help do buzz us and we will happy to help you. Good Luck!

1 Like