Represents the natural language text to be processed.
JSON representation
{"text": string,"languageCode": string}
Fields
text
string
Required. The UTF-8 encoded natural language text to be processed. Text length must not exceed 256 characters for virtual agent interactions.
languageCode
string
Required. The language of this conversational query. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThe provided content outlines the JSON representation for processing natural language text.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON object requires two string fields: \u003ccode\u003etext\u003c/code\u003e and \u003ccode\u003elanguageCode\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etext\u003c/code\u003e field contains the UTF-8 encoded natural language input, with a maximum length of 256 characters for virtual agent interactions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elanguageCode\u003c/code\u003e field specifies the language of the query and must align with supported language codes.\u003c/p\u003e\n"]]],[],null,["# TextInput\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAuxiliary proto messages.\n\nRepresents the natural language text to be processed."]]