Dialogflow to Rasa > 3.0 agent converter.
Project description
Dialog2Rasa Converter
About dialog2rasa
Easily convert Dialogflow agents to Rasa format for Rasa version 3+. This tool automates the migration to Rasa, converting Dialogflow exports into Rasa YAML format.
For a detailed architecture flow of the Dialogflow to Rasa conversion process, see the Conversion Process Diagram.
Installation
Install dialog2rasa
with:
pip install dialog2rasa
For more details, visit PyPI.
Usage
Unzip your Dialogflow export first. Then, convert it to Rasa format with:
dialog2rasa -p path/to/extracted/dialogflow/export -l language_code
Command Details
-p PATH
: Path to the Dialogflow export’s extracted folder.-l LANGUAGE
: Language code (e.g., 'en' for English), defaults to 'de' (German).
The conversion output is saved in /output/[LANGUAGE_CODE]
within the Dialogflow agent’s directory, with [LANGUAGE_CODE]
being the actual language code used.
Output File Format
For detailed insights into how our output data is structured, visit our documentation here.
Features and Limitations
- Features: Converts intents, entities, and utterances to Rasa YAML.
- Limitations:
- As Rasa doesn't natively support compound entities, this converter introduces a workaround by generating a pseudo-YAML file, prefixed with
__compound_
, which allows users to define their handling strategy. - It consolidates entities that share a single synonym into a lookup table, while also treating entities with multiple synonyms as synonyms within Rasa.
- The output NLU YAML file is named after the agent, facilitating project integration by placing it within an
nlu
folder.
- As Rasa doesn't natively support compound entities, this converter introduces a workaround by generating a pseudo-YAML file, prefixed with
Note: See
test/mockup-agent
and its reference output here to understand these limitations.
Contributing
Your feedback and contributions are appreciated to enhance this tool. Report bugs or suggest features via issues or pull requests.
Testing
The package includes automated tests (see .github/workflows/python-publish.yml
here) in a Continuous Integration workflow with PyPi. Contribute by writing tests with pytest
for your code changes to maintain functionality and reliability.
License
Licensed under the Apache 2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dialog2rasa-0.1.15.tar.gz
.
File metadata
- Download URL: dialog2rasa-0.1.15.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e89c7c90dd7571623067f3e74280a9d18e00d81a832d7b7cf690bf4aec17b71 |
|
MD5 | 00fed1e421774186ea60d9ae5207566c |
|
BLAKE2b-256 | 8ae9ebd08c60472afd7c162a5f6a745098604df6bfcecd954c8f755419a0ccda |
File details
Details for the file dialog2rasa-0.1.15-py3-none-any.whl
.
File metadata
- Download URL: dialog2rasa-0.1.15-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 591f03c3ae99c6d8704596a5eb12eff99f22645e9b0034986520898da3ca1708 |
|
MD5 | 3c9a1d0cc0f2fe743bb14ef6543961f8 |
|
BLAKE2b-256 | 83934c219d067a91abb35ed7f3dadbcbfc88ceb1275ac904ef9c33301ad2cb55 |