All Projects â†’ mishushakov â†’ dialogflow-gateway-docs

mishushakov / dialogflow-gateway-docs

Licence: other
📄 Docs for Dialogflow Gateway

Projects that are alternatives of or similar to dialogflow-gateway-docs

stumblybot
Simple robot that executes voice commands through Google Assistant.
Stars: ✭ 23 (+15%)
Mutual labels:  dialogflow
dialogflow-go-webhook
Simple package to create DialogFlow v2 webhooks using Go
Stars: ✭ 23 (+15%)
Mutual labels:  dialogflow
django-dialogflow
[Maintainer Required] Dialogflow Django is a web client to chat 💖
Stars: ✭ 26 (+30%)
Mutual labels:  dialogflow
doc2vec-api
document embedding and machine learning script for beginners
Stars: ✭ 92 (+360%)
Mutual labels:  dialogflow
React.ai
It recognize your speech and trained AI Bot will respond(i.e Customer Service, Personal Assistant) using Machine Learning API (DialogFlow, apiai), Speech Recognition, GraphQL, Next.js, React, redux
Stars: ✭ 38 (+90%)
Mutual labels:  dialogflow
Phoenix
🔥 Discord autoreply bot using DialogFlow
Stars: ✭ 63 (+215%)
Mutual labels:  dialogflow
React-Chatbot
A DialogFlow Chatbot made using NodeJS and React.
Stars: ✭ 36 (+80%)
Mutual labels:  dialogflow
dialogflow-go-client
Go library for DialogFlow (API.AI) 😎
Stars: ✭ 80 (+300%)
Mutual labels:  dialogflow
small-talk-rasa-stack
Collection of casual conversations that can be used with the Rasa Stack
Stars: ✭ 87 (+335%)
Mutual labels:  dialogflow
dialog flowtter
A Flutter implementation of Google's Dialog Flow improved
Stars: ✭ 31 (+55%)
Mutual labels:  dialogflow
convoworks-core
PHP framework for handling conversational services like Amazon Alexa skills, Google Assistant, Viber, FB messenger ...
Stars: ✭ 20 (+0%)
Mutual labels:  dialogflow
benchmark-nlp
NLP benchmark test sentences and full results
Stars: ✭ 13 (-35%)
Mutual labels:  dialogflow
dialogflow-webhook-response-libary-in-python
This library simplifies the JSON response building in Python for Dialogflow.
Stars: ✭ 56 (+180%)
Mutual labels:  dialogflow
uniFlow
Full Docs -->
Stars: ✭ 26 (+30%)
Mutual labels:  dialogflow
expando
A simple syntax for defining the NLU model for a conversational interface.
Stars: ✭ 36 (+80%)
Mutual labels:  dialogflow
dialogflow-watchnow-messenger
WatchNow FB Messenger bot with DialogFlow & Golang 💬
Stars: ✭ 24 (+20%)
Mutual labels:  dialogflow
angular-search-experience
Algolia + Angular = 🔥🔥🔥
Stars: ✭ 166 (+730%)
Mutual labels:  dialogflow
InstaResponder
Instagram Auto DM responder with DialogFlow 🔥
Stars: ✭ 42 (+110%)
Mutual labels:  dialogflow
api-ai-workshop
Dialogflow Workshop Material. This can be used to create a Conversational Agent for a simple Linear Conversation using Dialogflow
Stars: ✭ 56 (+180%)
Mutual labels:  dialogflow
clofus-chatbot
Clofus® Chat bot Platform using rasa core and rasa nlu similar to rasa x but opensource demo https://clofus.github.io/clofus-chatbot/
Stars: ✭ 61 (+205%)
Mutual labels:  dialogflow

Dialogflow Gateway

Dialogflow Gateway schema

Dialogflow Gateway is a backend enabling third-party integrations to securely access the Dialogflow V2 API. Any server, that implements the API (see below) can be refered as "Dialogflow Gateway"

Contents

API

Response Codes

HTTP-Code Reason
200 Request was successful
400 The request body or session ID is invalid and/or missing
403 The deployment was blocked or the service account key is no longer valid
404 The deployment was not found
500 Internal server error
503 The service is unavailable

Errors

Example JSON response, containing error

{"error": "Deployment was not found", "code": 404}

Endpoints

Base Endpoint

Single-Agent scenario

https://<PROJECT_ID>.com

Multi-Agent scenario using wildcard subdomain

https://<PROJECT_ID>.example.com

Multi-Agent scenario using path parameter

https://example.com/<PROJECT_ID>

Multi-Agent scenario using query parameter

https://example.com?agent=<PROJECT_ID>

Base Endpoint Variables

Variable Description
PROJECT_ID Required, Project Identifier

Base Endpoint Example

Multi-Agent scenario using wildcard subdomain on Dialogflow Gateway by Ushakov (Hosted)

https://dialogflow-web-v2.gateway.dialogflow.cloud.ushakov.co

Requests

Retrieving Agents

Request

GET <BASE_ENDPOINT>

Request Variables

Variable Description
BASE_ENDPOINT Required, Endpoint of Agent

Response Body

Agent

Example Request

Multi-Agent scenario using wildcard subdomain on Dialogflow Gateway by Ushakov (Hosted)

GET https://dialogflow-web-v2.gateway.dialogflow.cloud.ushakov.co

Example Response

{
  "parent": "projects/dialogflow-web-v2",
  "displayName": "DialogflowWebV2",
  "defaultLanguageCode": "en",
  "supportedLanguageCodes": [
    "ru"
  ],
  "timeZone": "Europe/Madrid",
  "description": "This is a unofficial Progressive Web Application for Dialogflow V2, with support for rich-responses and amazing features you need to check out. Choose your language and send Hello to get started",
  "avatarUri": "https://storage.googleapis.com/cloudprod-apiai/ce408f19-7966-487d-8614-f5b1f0474ba6_x.png",
  "enableLogging": true,
  "matchMode": "MATCH_MODE_HYBRID",
  "classificationThreshold": 0.3
}

Detecting Intents

Request

POST <BASE_ENDPOINT>

Request Variables

Variable Description
BASE_ENDPOINT Required, Endpoint of Agent

Request Body

DetectIntentRequest

Response Body

DetectIntentResponse

Example Request

Multi-Agent scenario using wildcard subdomain on Dialogflow Gateway by Ushakov (Hosted)

POST https://app-of-the-day-9a9f6.gateway.dialogflow.cloud.ushakov.co
Content-Type: application/json

{
  "session": "test",
  "queryInput": {
    "text": {
      "text": "Hello",
      "languageCode": "en"
    }
  }
}

Example Response

{
  "responseId": "85c3d6bd-6f8c-4000-a1ec-fdd6f636b2e8",
  "queryResult": {
    "queryText": "Hello",
    "action": "input.welcome",
    "parameters": {},
    "allRequiredParamsPresent": true,
    "fulfillmentText": "Cannot display response in Dialogflow simulator. Please test on the Google Assistant simulator instead.",
    "fulfillmentMessages": [...],
    "webhookPayload": {...},
    "intent": {
      "name": "projects/app-of-the-day-9a9f6/agent/intents/1e00bd68-62f0-4b8e-9cdd-a81c19f73855",
      "displayName": "Default Welcome Intent"
    },
    "intentDetectionConfidence": 1,
    "diagnosticInfo": {
      "end_conversation": true,
      "webhook_latency_ms": 187
    },
    "languageCode": "en"
  },
  "webhookStatus": {
    "message": "Webhook execution successful"
  }
}

Realtime API

Realtime API implements Secure WebSocket communication between Dialogflow Gateway and the clients

Close Codes

Code Reason
4400 The request body or session ID is invalid and/or missing
4403 The deployment was blocked or the service account key is no longer valid
4404 The deployment was not found
4500 Internal server error

Errors

Example error:

4404 'Deployment was not found'

Endpoints

Base Endpoint

Single-Agent scenario

wss://<PROJECT_ID>.com

Multi-Agent scenario using wildcard subdomain

wss://<PROJECT_ID>.example.com

Multi-Agent scenario using path parameter

wss://example.com/<PROJECT_ID>

Multi-Agent scenario using query parameter

wss://example.com?agent=<PROJECT_ID>

Base Endpoint Variables

Variable Description
PROJECT_ID Required, Project Identifier

Base Endpoint Example

Multi-Agent scenario using wildcard subdomain on Dialogflow Gateway by Ushakov (Hosted)

wss://dialogflow-web-v2.gateway.dialogflow.cloud.ushakov.co

Requests

Detecting Intents

Request

POST <BASE_ENDPOINT>

Request Variables

Variable Description
BASE_ENDPOINT Required, Endpoint of Agent

Request Body

DetectIntentRequest

Response Body

DetectIntentResponse

Example Request

Note: The examples are using NodeJS

Multi-Agent scenario using wildcard subdomain on Dialogflow Gateway by Ushakov (Hosted)

const WebSocket = require('ws')
const ws = new WebSocket('ws://app-of-the-day-9a9f6.gateway.dialogflow.cloud.ushakov.co')

ws.send(
  JSON.stringify({
    session: "123",
    queryInput: {
      text: {
        text: "Hello",
        languageCode: "en"
      }
    }
  })
)

ws.on('message', data => {
  console.log(data)
})

ws.on('close', (code, error) => {
  console.log(code, error)
})

Example Response

{
  "responseId": "85c3d6bd-6f8c-4000-a1ec-fdd6f636b2e8",
  "queryResult": {
    "queryText": "Hello",
    "action": "input.welcome",
    "parameters": {},
    "allRequiredParamsPresent": true,
    "fulfillmentText": "Cannot display response in Dialogflow simulator. Please test on the Google Assistant simulator instead.",
    "fulfillmentMessages": [...],
    "webhookPayload": {...},
    "intent": {
      "name": "projects/app-of-the-day-9a9f6/agent/intents/1e00bd68-62f0-4b8e-9cdd-a81c19f73855",
      "displayName": "Default Welcome Intent"
    },
    "intentDetectionConfidence": 1,
    "diagnosticInfo": {
      "end_conversation": true,
      "webhook_latency_ms": 187
    },
    "languageCode": "en"
  },
  "webhookStatus": {
    "message": "Webhook execution successful"
  }
}

Implementations

Title Developer Status Homepage Features Cloud-based?
Dialogflow Gateway (Hosted) Ushakov Stable, actively maintained https://dialogflow.cloud.ushakov.co Support, free updates, uptime guarantees, disaster recovery, dashboard, built-in integrations, pay-per-use, free quota Yes
Dialogflow Gateway (Enterprise Edition) Ushakov TBA https://dialogflow.cloud.ushakov.co Self-hosted, premium support, free updates No
Fulfillment Tester Ushakov Testing https://github.com/mishushakov/dialogflow-fulfillment-tester For testing purposes only No

Submit your implementation

Contact

If you have any questions or troubles regarding the API, please contact us

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].