Replies - Activity - tonysinghmss - Rasa Community Forum

Execute custom actions on server initialization or startup

Sorry the code I am working on cannot be shared due to company policy. You can go through this link

Call this service from your program to check what conversation has already taken place between your bot and user of the bot, and based on your logic you can either take the old conversation ahead.

Failed building wheel for httptools in installing rasa in windows10

httptools wheel file is now available on PyPi website. So it should not be a problem for Python 3.6, 3.7 and 3.8 users. If you are using other versions of python then please do the following steps:

  1. Activate the venv of your project in command line.
  2. Set the INCLUDE and LIB variable from command line.

Slot not set from button

I am also facing a similar issue. The slot value is not being set even though I am passing it correctly from my custom action. My story is as follows

story_02

intent_2{"test_slot": "Some value"}

slot{"test_slot": "Some value"}
action_03

Facing problem in httptools for RASA X

This httptools is one of the dependencies of rasa. When we do pip install rasa, htttptools source is downloaded and then built using MS VC++. But somehow in Windows 10, it doesn’t happen. It fails miserably.

Wrong policy used to predict next action

I am busy with another task. I will try to do it and then get back to you.

Replace/Update tracker object inside custom action

No I couldn’t achieve it and had to abandon whatever I was doing.

How do you test Custom Actions before using them with a bot?

Hi @akelad. Can you give a link to the script that you have mentioned here? I also want to ensure my action classes don’t break due to some intermittent changes hence I want to write unit tests for them.

Feedback to Rasa bot

Hello @tyd. Thank you so much for your valuable insights. I will incorporate it in my project. You made me realize a serious blunder that I was trying to implement in my chatbot.

Failed to extract slot

Please go through the documentation of Form. You can use other methods like from_entity and from_intent in a chained manner. For reference please read rasa blog.

MappingPolicy doesn't get triggered

I cannot reproduce this issue right now. I have lowered my nlu_threshold to 0.5 and everything seems to work fine. Maybe the messages were not meeting the threshold at the time. Is there any way to find the optimal values of nlu and core threshold in Rasa based on the stories and nlu data?

Greedy intent?

If this helps, mark it as solution. A solved issue helps other newcomers to discern the posts easily.

Form deactivation inside validate function

I deactivate my forms in the following way:

  1. Create a deactivate_intent with NLU data.
  2. Create a custom form_deactivation_action.
  3. Create a story for deactivation only using deactivate_intent and form_deactivation_action.

Problem in retrieving an end-to-end story in HTTP API

I am using a normal tracker store using postgresql. Somehow this issue got resolved. If I face it again, I will let you know.

Single line story is not performing good

@Ghostvv Can you explain a bit more on this?? Is the nlu confidence threshold mentioned somewhere in domain.yml ?

Access to the sender name from rasa

If I pass another parameter friend in the message like this

{
"sender": "tony",
"message": "Hello",
"friend": "fuih"
}
```Can I access the friend parameter from tracker just like we can access sender_id ?

## API documentation

Is this API documentation given in rasa docs? I couldn’t find it…

## Working of Two stage fallback policy

[@erohmensing](https://forum.rasa.com/u/erohmensing) Can you also share a small working POC of TwoStageFallbackPolicy?
That will clear out most of our doubts.
The post is good but it doesn’t tell us upfront which action is called for affirmation from user when nlu classification threshold is low.

## Custom action not found error

You should be importing Action class like this in your actions.py:

```python
from rasa_sdk import Action

Check if all your imports are correct or not. The error is showing up in your action server terminal output.

Custom action implementation

Thanks @Juste Can I get the list of all possible values that can be used in provides list and required list. It will give me and others clarity on what to use and when to use. You might update this in your documentation as well.

Registering component name in a custom component

I am facing the same issue. I have asked a question on StackOverflow with all the details. Can anyone help ? https://stackoverflow.com/q/57141086/5462372

Introduce yourself!

Hi I am Manishankar. I am working on a project that requires Rasa for building a chatbot. Currently we in our team are trying to learn Rasa and its features. Hopefully, we will be able to learn and contribute to it as well. Thanks for open-sourcing the code.