Socket
Socket
Sign inDemoInstall

rasa-dialogflow-interpreter

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rasa-dialogflow-interpreter

rasa_core interpreter connecting to dialogflow.com API v2


Maintainers
1

Readme

rasa-dialogflow-interpreter

Build Status

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

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc