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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c77cc7ded0422b767d1c05ea608af82fe173bcbd92b47808f9c3ebd9fb0c7ac8 |
|
MD5 | d4054fac95aff1a73e4b581e4678421e |
|
BLAKE2b-256 | 5af47619fb6f5c12f305a556a96b517e9dea894bef625d90e7c8bdad59891ea8 |
Close
Hashes for rasa_dialogflow_interpreter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7a47932bfa31588b01671168d50ccc96f9efd8f50dac3198d72e519e45d20a |
|
MD5 | 13483c8ee61245c9241b318877fb3b77 |
|
BLAKE2b-256 | 1189f5f3962751235038ba9ed18646e1991e29b38efe1e1b51bb10b5d8a0d126 |