Skip to content

vkosuri/dialogflow-lite

Repository files navigation

Dialogflow Python Library REST Agent

Package Version Build Status

Dialogflow is an python requests REST agent to comunicate with Dialogflow

Prerequsites

Before execute any examples or source code usage, you need create a Dialogflow account, More inforamtion how to create account found here https://dialogflow.com/docs/getting-started/create-account

Features

Speech recognition

The speech recognition used in this module is done using Anthony Zhang's SpeechRecognition library for Python.

Speech synthesis

Speech synthesis in this project is done using espeak. Note: For Mac users, the adapter will use Mac's built-in say command.

Installation

pip install dialogflow-lite

Examples

See the examples directory in the GitHub repo.

Google conversation design best practices

https://designguidelines.withgoogle.com/conversation/conversation-design/welcome.html

General Information

Most of the general information can found here https://dialogflow.com/docs/reference/agent/

  1. query
  2. entities
  3. userEntities
  4. intents
  5. contexts

Using Access Tokens

The entire package uses based on User access token, read this documentation about obtaining access tokens from Dialogflow.

Authorization with the value Bearer {access_token}.

For example:

Authorization: Bearer YOUR_ACCESS_TOKE

Protocol Version

20140910 used as protocol version in this repo

License

This project licensed under MIT