In this repo you'll find a template for testing your NLU!
This repository is based on
It uses a common pattern that can be adapted to other NLU providers by leveraging the interface provided under src/interface.py
.
Tutorial video provided here
- Run
pip install -r requirements.txt
- Create a voiceflow account at https://creator.voiceflow.com/
- Upload the
examples/NLU_test_v1.vf
- Navigate to the "play" button and hit "Train Assistant". Wait until training completes to use a trained NLU.
- Create your project dialogue manager key under the integrations tab.
- Copy your dialogue manager key into the
examples/voiceflow.py
file. - Run the
examples/voiceflow.py
- The
vf_test.compare_results()
function will fail - Update your
order_fries
andhelp_me
intent in the exisiting file. Or you can uploadexamples/NLU_test_v2.vf
(and create a new DM key)
The example will generate two test result files and two plots, one for utterance tests and the other for entity tests under the examples folder.
- How to Create Your NLU testing Strategy Article(https://www.voiceflow.com/blog/how-to-create-your-nlu-testing-strategy)
- Voiceflow Dialogue Manager API
- Any other questions? You can post on our community page or on this github repo.
- [] Flow testing
- [] End to End Voiceflow integration
- [] Code walkthrough article
- [] Tests