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

Uploaded Source

Built Distribution

dialog2rasa-0.1.10-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file dialog2rasa-0.1.10.tar.gz.

File metadata

  • Download URL: dialog2rasa-0.1.10.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for dialog2rasa-0.1.10.tar.gz
Algorithm Hash digest
SHA256 3105536d61e6c6b4086e6f226c189c987ffd21af3b4b80e898a490f8f8196e78
MD5 08fcd4d53cad0fe334acb031db1fe2fe
BLAKE2b-256 17d435f5997509f9f4dbcb06b982c67bd83b6d39e644abc30ba12a1cfb0381c6

See more details on using hashes here.

File details

Details for the file dialog2rasa-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: dialog2rasa-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for dialog2rasa-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f6aa953a73b4c811646cec62cea4d013377aa0b92a676d70b1ad754260574351
MD5 aae385496dbcd36c8c14e4cbc33f40ad
BLAKE2b-256 8a6b2e5e406520895947f79889538049b370ce6937afd724b117b4a072192336

See more details on using hashes here.

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