Common types

This page lists commonly used types in the Dialogflow API and provides links to reference documentation and samples.

Agents

An agent is a natural language understanding module that you build and use in your app or service.

Agents references

V2 V2Beta1
REST projects &
projects.agent
projects &
projects.agent
RPC Agents Agents
C# AgentsClient Not available
Go AgentsClient Not available
Java AgentsClient AgentsClient
Node.js AgentsClient AgentsClient
PHP AgentsClient Not available
Python AgentsClient AgentsClient
Ruby AgentsClient Not available

Documents

A document for a knowledge base.

Documents references

V2 V2Beta1
REST Not available projects.knowledgeBases.documents
RPC Not available Document
C# Not available Not available
Go Not available Not available
Java Not available DocumentsClient
Node.js Not available DocumentsClient
PHP Not available Not available
Python Not available DocumentsClient
Ruby Not available Not available

Documents samples

Sample REST C# Go Java Node.js PHP Python Ruby
Knowledge connectors

EntityTypes

Entity types serve as a tool for extracting parameter values from natural language queries.

EntityTypes references

V2 V2Beta1
REST projects.agent.entityTypes projects.agent.entityTypes
RPC EntityTypes EntityTypes
C# EntityTypesClient Not available
Go EntityTypesClient Not available
Java EntityTypesClient EntityTypesClient
Node.js EntityTypesClient EntityTypesClient
PHP EntityTypesClient Not available
Python EntityTypesClient EntityTypesClient
Ruby EntityTypesClient Not available

Intents

An intent represents a mapping between input from a user and an action to be taken by your application.

Intents references

V2 V2Beta1
REST projects.agent.intents projects.agent.intents
RPC Intents Intents
C# IntentsClient Not available
Go IntentsClient Not available
Java IntentsClient IntentsClient
Node.js IntentsClient IntentsClient
PHP IntentsClient Not available
Python IntentsClient IntentsClient
Ruby IntentsClient Not available

Intents samples

Sample REST C# Go Java Node.js PHP Python Ruby
Manage intents with the API

KnowledgeBases

KnowledgeBases parse documents (for example, FAQs or articles) to find automated responses.

KnowledgeBases references

V2 V2Beta1
REST Not available projects.agent.knowledgeBases
RPC Not available KnowledgeBase
C# Not available Not available
Go Not available Not available
Java Not available KnowledgeBasesClient
Node.js Not available KnowledgeBasesClient
PHP Not available Not available
Python Not available KnowledgeBasesClient
Ruby Not available Not available

KnowledgeBases samples

Sample REST C# Go Java Node.js PHP Python Ruby
Knowledge connectors

Operations

A long-running operation that can be polled for completion. This type only has links to REST and RPC references, because client libraries implement long-running operations in a way that is idiomatic for each language. See the documentation for the method that returns the operation.

Operations references

V2 V2Beta1
REST projects.operations projects.operations
RPC Operation Operation

Operations samples

Sample REST C# Go Java Node.js PHP Python Ruby
Long-running operations

Sessions

A session represents an interaction with a user.

Sessions references

V2 V2Beta1
REST projects.agent.sessions projects.agent.sessions
RPC Sessions Sessions
C# SessionsClient Not available
Go SessionsClient Not available
Java SessionsClient SessionsClient
Node.js SessionsClient SessionsClient
PHP SessionsClient Not available
Python SessionsClient SessionsClient
Ruby SessionsClient Not available

Sessions samples

Sample REST C# Go Java Node.js PHP Python Ruby
Quickstart: Interactions with the API
Detect intent from audio file
Detect intent from audio stream
Detect intent with speech response
Detect intent with sentiment analysis

SessionEntityTypes

Session entities can extend or replace developer entity types and only exist during the session that they were created for.

SessionEntityTypes references

V2 V2Beta1
REST projects.agent.sessions.entityTypes projects.agent.sessions.entityTypes
RPC SessionEntityTypes SessionEntityTypes
C# SessionEntityTypesClient Not available
Go SessionEntityTypesClient Not available
Java SessionEntityTypesClient SessionEntityTypesClient
Node.js SessionEntityTypesClient SessionEntityTypesClient
PHP SessionEntityTypesClient Not available
Python SessionEntityTypesClient SessionEntityTypesClient
Ruby SessionEntityTypesClient Not available

WebhookRequest

The request message for a webhook call sent from Dialogflow to your service.

WebhookRequest references

V2 V2Beta1
REST Not available Not available
RPC WebhookRequest WebhookRequest

WebhookResponse

The response message for a webhook call sent from your service to Dialogflow.

WebhookResponse references

V2 V2Beta1
REST Not available Not available
RPC WebhookResponse WebhookResponse
¿Te sirvió esta página? Envíanos tu opinión:

Enviar comentarios sobre…

Dialogflow Documentation
¿Necesitas ayuda? Visita nuestra página de asistencia.