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_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
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c79489ef6e1ef45de910929efd95bb7268a42a5f3f92f0a3012723b5af2f2ee |
|
MD5 | 371460862c63f7ed2b7b6ddbe71d2ff3 |
|
BLAKE2b-256 | 61a79e54015f406539ee89c28347c7ae52d8b79ba3cfd2ce1e7f4d5bd95cfc56 |
Close
Hashes for rasa_dialogflow_interpreter-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fa45a5276a431a65ae94b7053d9f44945867906a5a6210ffed0bccb09d15f95 |
|
MD5 | 76c22eb2b5c4b50b8d149e1fddc2a00c |
|
BLAKE2b-256 | 4581781ba3cae0ce58afef234e93107a76de67cfd801c76f3f57e4a08ad7d1f6 |