目录
目录readme.md

Rasa 3.x Form Examples

This repository is part of our Rasa Forms course that’s hosted on our learning center.

Installation

To run all the examples here you’ll need to install Rasa, preferably in a virtualenv in the root directory.

python -m pip install rasa==3.0

1. Custom Actions

It helps to understand custom actions and slots before we talk about forms. In this simple bot we show how they work by keeping track of a users name.

Code can be found in the 01-actions folder.

2. Slots

It helps to understand custom actions and slots before we talk about forms. In this simple bot we show how they work by keeping track of a users name.

Code can be found in the 02-slots folder.

3. Simple Forms with Conditional Slots

If we want to query multiple things from the user, it may be best to use forms instead of custom actions. Luckily for us, we can use our RulePolicy to help us out and we can configure our slots to ignore entities mentioned outside of our form.

Code can be found in the 03-conditions folder.

4. From Text

You can fill slots from many types of input, this includes raw text!

Code can be found in the 04-from-text folder.

5. Form Validation

What if we want to validate the input of our form? We don’t want to have a name that’s an empty string after all!

Code can be found in the 05-validation folder.

关于
129.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号