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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12ef5ca19a7befd66b032c6d857573555b3f955789b28282d905745591abb2fe |
|
MD5 | 9f998dbf68486aafc1937352e11aad20 |
|
BLAKE2b-256 | cdd73b188854c909d16291b28e55586601e55f491b837df8d63412f7e6565dde |
Close
Hashes for rasa_dialogflow_interpreter-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34abc97935512b5102ed5a7c92c48253905d1d40432e9b05505b5c9804d0d106 |
|
MD5 | 9019f9d7ace6413dc731cd4be508f188 |
|
BLAKE2b-256 | 2ae58a991e1281110a9eb83674bed59e007a0e93cf07bc769e7478cbde436f0b |