rasa_core interpreter connecting to dialogflow.com API v2
Project description
# rasa-dialogflow-interpreter
[![Build Status](https://travis-ci.org/m90/rasa-dialogflow-interpreter.svg?branch=master)](https://travis-ci.org/m90/rasa-dialogflow-interpreter)
> rasa_core interpreter connecting to dialogflow.com API v2
A `rasa_core` [Interpreter](https://core.rasa.com/interpreters.html) that sources intent data from dialogflow.com API v2. This means you can run `rasa_core` and do Natural Language Understanding using Dialogflow.
## Usage
```py
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_message('Hello 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](http://www.frederikring.com)
[![Build Status](https://travis-ci.org/m90/rasa-dialogflow-interpreter.svg?branch=master)](https://travis-ci.org/m90/rasa-dialogflow-interpreter)
> rasa_core interpreter connecting to dialogflow.com API v2
A `rasa_core` [Interpreter](https://core.rasa.com/interpreters.html) that sources intent data from dialogflow.com API v2. This means you can run `rasa_core` and do Natural Language Understanding using Dialogflow.
## Usage
```py
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_message('Hello 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](http://www.frederikring.com)
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 Distributions
Close
Hashes for rasa_dialogflow_interpreter-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064b028ff8bc1a4a8576c766fbee8f90b2e25eb4bdb2cb956f217837d36e1630 |
|
MD5 | 40a5c16d912f918e74364fee1f70da89 |
|
BLAKE2b-256 | e77686d3a30b2e49c1535e6dedf8dff51de574c443a94182c29546b4086a6143 |
Close
Hashes for rasa_dialogflow_interpreter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 547bf5a6add494823515b10155fd416803250667b9b7fc20a4c0e911f505e977 |
|
MD5 | 818f6edb2a3cee143fb412b2efe27702 |
|
BLAKE2b-256 | a7e2efcb71125abe3e1184090559e7596aff99f45aeb4aad08aefb6842461b1c |
Close
Hashes for rasa_dialogflow_interpreter-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a1fd3b9cf78dd74dd68920f258500bba19e6d615d00b7421135f6f73b0ea37a |
|
MD5 | b02f1a8d486fbb2ed83980ed6f491eff |
|
BLAKE2b-256 | 54e7c44cb79f66d0916bffc4c2cca429c239987578f0177090c991e80208db13 |