Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ConversationV3Options

Options used when constructing app object.

example
const {conversation} = require('@assistant/conversation');

const app = conversation({verification: 'nodejs-cloud-test-project-1234'});

Hierarchy

  • ConversationV3Options

Properties

Optional body

Optional clientId

clientId: string

Represents the client ID given in the Actions Console to use for authorizing users when performing Google Sign-In.

Optional debug

debug: boolean

When set to true, requests and responses will be automatically logged using logger.

Optional headers

headers: Headers

Optional logger

logger: ILogger

Represents an object with methods for each logging level. By default the logger binds to console methods.

Optional verification

verification: string | ConversationVerification

Validates whether request is from Google through signature verification. Uses Google-Auth-Library to verify authorization token against given Google Cloud Project ID. Auth token is given in request header with key, "authorization".

HTTP Code 403 will be thrown by default on verification error.

example

const app = conversation({ verification: 'nodejs-cloud-test-project-1234' })
see

Verify Requests documentation

Generated using TypeDoc