Module: Google::Cloud::Dialogflow

Defined in:
lib/google/cloud/dialogflow.rb,
lib/google/cloud/dialogflow/v2.rb,
lib/google/cloud/dialogflow/v2/credentials.rb,
lib/google/cloud/dialogflow/v2/doc/overview.rb,
lib/google/cloud/dialogflow/v2/agents_client.rb,
lib/google/cloud/dialogflow/v2/intents_client.rb,
lib/google/cloud/dialogflow/v2/contexts_client.rb,
lib/google/cloud/dialogflow/v2/sessions_client.rb,
lib/google/cloud/dialogflow/v2/entity_types_client.rb,
lib/google/cloud/dialogflow/v2/session_entity_types_client.rb,
lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb,
lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb,
lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/context.rb,
lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb,
lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb,
lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session_entity_type.rb

Overview

Ruby Client for Dialogflow API (Alpha)

Dialogflow API: An end-to-end development suite for conversational interfaces (e.g., chatbots, voice-powered apps and devices).

Quick Start

In order to use this library, you first need to go through the following steps:

  1. Select or create a Cloud Platform project.
  2. Enable billing for your project.
  3. Enable the Dialogflow API.
  4. Setup Authentication.

Installation

$ gem install google-cloud-dialogflow

Next Steps

Enabling Logging

To enable logging for this library, set the logger for the underlying gRPC library. The logger that you set may be a Ruby stdlib Logger as shown below, or a Google::Cloud::Logging::Logger that will write logs to Stackdriver Logging. See grpc/logconfig.rb and the gRPC spec_helper.rb for additional information.

Configuring a Ruby stdlib logger:

require "logger"

module MyLogger
  LOGGER = Logger.new $stderr, level: Logger::WARN
  def logger
    LOGGER
  end
end

# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
module GRPC
  extend MyLogger
end

Defined Under Namespace

Modules: Agents, Contexts, EntityTypes, Intents, SessionEntityTypes, Sessions, V2

Constant Summary collapse

FILE_DIR =

rubocop:enable LineLength

File.realdirpath(Pathname.new(__FILE__).join("..").join("dialogflow"))
AVAILABLE_VERSIONS =
Dir["#{FILE_DIR}/*"]
.select { |file| File.directory?(file) }
.select { |dir| Google::Gax::VERSION_MATCHER.match(File.basename(dir)) }
.select { |dir| File.exist?(dir + ".rb") }
.map { |dir| File.basename(dir) }