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.
## Installation
Install using pip:
```
pip install rasa-dialogflow-interpreter
```
## 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.
## Installation
Install using pip:
```
pip install rasa-dialogflow-interpreter
```
## 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 Distribution
Close
Hashes for rasa_dialogflow_interpreter-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 710e6574b6ff03c91c42da534e4d36a5f20646ee73d52eb2b778012f858eefde |
|
MD5 | 49129921c861194aec9f9da86d3bd9c7 |
|
BLAKE2b-256 | 9e082566faf6856a07fa22108717021fc42fdc46ea38177152ea6064f8c524be |
Close
Hashes for rasa_dialogflow_interpreter-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a348b288a7cd22d9644c3e165f043791e400521d98b8e59cfc1dd592d99b02c1 |
|
MD5 | bcf5b5c0304a245c7161e35b6b3d129a |
|
BLAKE2b-256 | f61bcd31939fca27930cddb9d1899ab02b041dc163c5c80c2f1ee7420055dbad |