Skip to main content

Dialogflow to Rasa > 3.0 agent converter.

Project description

Dialog2Rasa Converter

Transform your Dialogflow agents into Rasa format, suitable for Rasa version 3 and above. This CLI tool streamlines the migration process from Dialogflow to Rasa, ensuring a smoother transition for developers aiming to leverage Rasa's capabilities. It converts the Dialogflow export into Rasa YAML format.

Installation

To install dialog2rasa, simply run:

pip install dialog2rasa

For more information and details about the package, you can visit the PyPI page at: https://pypi.org/project/dialog2rasa/.

Usage

After installation, convert your Dialogflow export to Rasa format using the command:

dialog2rasa -p path/to/extracted/dialogflow/export

Features and Limitations

  • Converts Dialogflow intents, entities, and utterances to Rasa-compatible YAML format.
  • Limitations:
    • Compound Entities: Does not handle compound entities directly. Instead, creates pseudo YAML files with a __compound__ prefix.
    • Synonym Entities: Groups single synonym entities within a lookup table. Entities with multiple synonyms are handled accordingly.
    • Output Naming: The output NLU data is named after the agent, facilitating integration into larger projects (assuming nlu as a directory).

Contributing

Feedback and contributions are welcome as we work towards making this tool more robust and versatile. For bugs, feature requests, or contributions, please open an issue or pull request.

Testing

This project includes automated unit tests when distributed as a PyPi package (triggered by Github actions workflow). Please be sure to test your code and extend the tests with pytest before submitting a pull request. This will ensure reliability and functionality of the package.

License

This project is licensed under the Apache 2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dialog2rasa-0.1.5.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

dialog2rasa-0.1.5-py3-none-any.whl (13.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page