rasa_core interpreter connecting to dialogflow.com API v2
Project description
rasa-dialogflow-interpreter
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
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.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41801f1e7917fdd471bfdab835931a7ea4aba01f77c03b713643689aeafed066 |
|
MD5 | 69e2bec29b3feb15754e579741fa136f |
|
BLAKE2b-256 | efb8878eb94a48b7fbce0ce9d52578ddd77340a7934b018198933e95702b1d0e |
Close
Hashes for rasa_dialogflow_interpreter-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e60268e6ed3595fb36d38aae2b8851aaf3effdd54f61ad5a96c1ddfdd99767ac |
|
MD5 | ab2eba60ab100b11530a2ca3bf3b5dd8 |
|
BLAKE2b-256 | 9ae7d8b896f336660ce7a4f2e36a66402b16c788d5cf2ece75ddf972e73a0d59 |