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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9e9038aa96efb5eb6526fb8538397a9c329ff848efed2083ac379d4f45bc42c |
|
MD5 | e19a298a1db92c2d9b96ad4cf718679c |
|
BLAKE2b-256 | bb46e914366cd9fe2f52412431ee7ce5092d689789d4a3025e372781c1c65768 |
Close
Hashes for rasa_dialogflow_interpreter-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e093c6ab65813ee3315e63af3b1e7b18ea5733a9bc694173d822d0772e7ee411 |
|
MD5 | 1ffb6d3cd1a3c548821282c4818068e2 |
|
BLAKE2b-256 | e0f2711609b9d02f2ded0737bbd71d0cfbe6eabc1d3add1ea69396bd3d06342d |