QueryParameters

Represents the parameters of the conversational query.

JSON representation
{
  "timeZone": string,
  "geoLocation": {
    object(LatLng)
  },
  "contexts": [
    {
      object(Context)
    }
  ],
  "resetContexts": boolean,
  "sessionEntityTypes": [
    {
      object(SessionEntityType)
    }
  ],
  "payload": {
    object
  },
  "knowledgeBaseNames": [
    string
  ],
  "sentimentAnalysisRequestConfig": {
    object(SentimentAnalysisRequestConfig)
  }
}
Fields
timeZone

string

Optional. The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.

geoLocation

object(LatLng)

Optional. The geo location of this conversational query.

contexts[]

object(Context)

Optional. The collection of contexts to be activated before this query is executed.

resetContexts

boolean

Optional. Specifies whether to delete all contexts in the current session before the new ones are activated.

sessionEntityTypes[]

object(SessionEntityType)

Optional. Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.

payload

object (Struct format)

Optional. This field can be used to pass custom data into the webhook associated with the agent. Arbitrary JSON objects are supported.

knowledgeBaseNames[]

string

Optional. KnowledgeBases to get alternative results from. If not set, the KnowledgeBases enabled in the agent (through UI) will be used. Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>.

sentimentAnalysisRequestConfig

object(SentimentAnalysisRequestConfig)

Optional. Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed. Note: Sentiment Analysis is only currently available for Enterprise Edition agents.

SentimentAnalysisRequestConfig

Configures the types of sentiment analysis to perform.

JSON representation
{
  "analyzeQueryTextSentiment": boolean
}
Fields
analyzeQueryTextSentiment

boolean

Optional. Instructs the service to perform sentiment analysis on queryText. If not provided, sentiment analysis is not performed on queryText.