Dialogflow to Rasa > 3.0 agent converter.
Project description
Dialog2Rasa Converter
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.
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.
Features and Limitations
- Features: Converts intents, entities, and utterances to Rasa YAML.
- Limitations:
- Does not support compound entities directly; creates pseudo-yaml
__compound_
with prefix as workaround. - Groups entities with a single synonym in a lookup table; handles entities multiple synonyms also as synonyms in Rasa.
- Names output NLU data after the agent for easy project integration.
- Does not support compound entities directly; creates pseudo-yaml
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. 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.6.tar.gz
.
File metadata
- Download URL: dialog2rasa-0.1.6.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4df0742a33eac018b08da1f5e3dc426dca5f03b97962f03bbe9d6d8b5d304ca |
|
MD5 | d93bafbf31415060b1d9c27812dada49 |
|
BLAKE2b-256 | f80a0301d9107c9e8399959bb96abf5f154cc9adb74955e463906b0c227e7b70 |
File details
Details for the file dialog2rasa-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: dialog2rasa-0.1.6-py3-none-any.whl
- Upload date:
- Size: 13.7 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 | 340a5374402a0410377b3c080448194ee90f4f60709fd27b8219c7e9219003e0 |
|
MD5 | a8dd8f74b3393d1fdc91c8fce03c027e |
|
BLAKE2b-256 | 69c4df7859457bf1a947882f5072dabc3c0e5186e0a1849d347a885a8254075f |