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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f76004b7c0d06ffc92aa9a9371f6542fc4e7d32d5c32c9e8c56eb4b9dec60b |
|
MD5 | ffe2bbb3733b1e878ceb53d6a370536a |
|
BLAKE2b-256 | 1ffb7da527a10ff9346ea6289cbebcb178d19edd10c2e9d8989f814adb7e0c3d |
Close
Hashes for rasa_dialogflow_interpreter-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec315a649fef0d00f698f93440f5d46726481a92c1e33c97f01cd3faa536eaf5 |
|
MD5 | 0d015a323aa75acd5479fd81a9f0494b |
|
BLAKE2b-256 | 73cf20eea4f19841056de90062fe3a69b6383fe34e66e23c7851282595b83dfe |