Skip to main content

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.

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


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.11.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

dialog2rasa-0.1.11-py3-none-any.whl (14.0 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