Skip to main content

rasa_core interpreter connecting to dialogflow.com API v2

Project description

rasa-dialogflow-interpreter

Build Status

rasa_core interpreter connecting to dialogflow.com API v2

A rasa_core Interpreter that sources intent data from dialogflow.com API v2. This means you can run rasa_core and do Natural Language Understanding using Dialogflow.

Installation

Install using pip:

pip install rasa-dialogflow-interpreter

Usage

from rasa_dialogflow_interpreter.interpreter import DialogflowInterpreter
from rasa_core.agent import Agent

agent = Agent.load(
    'path/to/dialogue/models',
    interpreter=DialogflowInterpreter(
        'dialogflow-project-name',
        # if you omit the `service_account_json` parameter the value
        # exported to GOOGLE_APPLICATION_CREDENTIALS will be used instead
        service_account_json='dialogflow-project-name.json',
    ))

msg = agent.handle_text('What does it all mean, Dialogflow?')

Note that due to the way that Dialogflow currently works, the returned entities will not have start and end values.

License

MIT © Frederik Ring

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

rasa_dialogflow_interpreter-0.5.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rasa_dialogflow_interpreter-0.5.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file rasa_dialogflow_interpreter-0.5.1.tar.gz.

File metadata

  • Download URL: rasa_dialogflow_interpreter-0.5.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for rasa_dialogflow_interpreter-0.5.1.tar.gz
Algorithm Hash digest
SHA256 5a187942135ffaa9802f50ed833acc51deea8718d065243c79d4486d638b1b32
MD5 bc0b547271302025bd957587f77d63ac
BLAKE2b-256 b9d7a2128a7fbfc6733a89d360b330693c5dd4f3925596469f6cab9cff5ddbde

See more details on using hashes here.

File details

Details for the file rasa_dialogflow_interpreter-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: rasa_dialogflow_interpreter-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for rasa_dialogflow_interpreter-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 727ff4345507b78d65158b33a3c9903355aece97cfd2bd8e0c58c8c5d03a33b7
MD5 b450df323d25915360295e63c0e1727c
BLAKE2b-256 96fdb01000594648379737ad2ecc7fdae4eb1abf57531173d5ccde8651c522a8

See more details on using hashes here.

Supported by

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