Policies

These docs are for version 1.x of Rasa Open Source.

User Guide

NLU

Core

Policies

The rasa.core.policies.Policy class decides which action to take at every step in the conversation.

Configuring Policies

Keras Policy

The KerasPolicy uses a neural network implemented in Keras to select the next action.

def model_architecture(...):
    ...
Fallback Policy

The FallbackPolicy invokes a fallback action if the intent recognition has a confidence below nlu_threshold.

Parameter Description
nlu_threshold Min confidence needed to accept an NLU prediction.
core_threshold Min confidence needed to accept an action prediction from Rasa Core.
fallback_action_name Name of the fallback action to be called.

Form Policy

The FormPolicy is an extension that handles the filling of forms. Once a FormAction is called, the FormPolicy will continually predict the FormAction until all required slots in the form are filled.