Query Input | Task |
---|---|
Text | a. In the Text field, provide the natural language text to be processed in the UTF-8 format. b. In the Language code list, select the correct language. |
Audio | a. In the Input Audio field, map the output of a previous action to provide the natural language speech audio to be processed in base64 format. A single request can contain up to 1 minute of speech audio data. b. Select the Audio Encoding type. c. In the Sample Rate field, provide the sample rate (in Hertz) of the audio. d. In the Language code list, select the correct language. e. In the Enable Word Info list, select true if you want information about the recognized speech words; otherwise, select false. f. In the Model field, provide the speech model that must be selected for the given request. If a model is not specified, a model is auto-selected based on the input. g. In the Model Variant list, select the variant of the speech model that must be used. |
If you chose Form |
---|
a. Under the Session Entity Types section, click Add. b. In the Name field, provide the unique identifier of this session entity type in the projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity type display name> format, where <Entity type display name> could be the display name of an existing entity type in the same agent that will be overridden or supplemented, or a new entity type valid for this session only. c. In the Entity Override Mode list, select one of the following: ◦ Override—Session entity overrides the custom entity type definition. ◦ Supplement—Session entity supplements the custom entity type definition. d. Under Entities, click Add to add a collection of entities to be associated with the entity type: a. In the Value field, provide the value of the entry. b. In the Synonym field, provide a synonym for the specified value. Click Add to add multiple synonyms. Click to delete any synonym that you added. c. Click Add to add multiple value-synonyms pairs. Click to delete any value-synonym pair that you added. d. Click Add to add multiple session entity types. Click to delete any session entity type that you added. |
If you chose Assign JSON |
---|
In the Session Entity Types field, provide all required inputs in the [{"name":"string", "entityOverrideMode":"string", "entities":[{"value":"string", "synonyms":[{}]}]}] format. |
If you chose Form |
---|
a. Under the Contexts section, click Add. b. In the Name field, provide the context name in the projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID> format. c. In the Lifespan Count field, provide the number of conversational query requests after which the context expires. The default is 0. If set to 0, the context expires immediately. If there are no matching queries, contexts expire automatically after 20 minutes. Click Add to add multiple contexts. Click to delete any context that you added. |
If you chose Assign JSON |
---|
In the Contexts field, provide all required inputs in the [{"name":"string", "lifespanCount":0}] format. |