If you chose Form |
---|
Under the Input Contexts section, click Add, and in the Text field, provide the required context name in projects/<Project ID>/agent/sessions/-/contexts/<Context ID> format to trigger the intent. Click Add to add multiple input contexts. Click to delete any input context that you added. |
If you chose Assign JSON |
---|
In the Input Contexts field, enter all required inputs in the ["stringVal"] format. |
If you chose Form |
---|
Under the Events section, click Add, and in the Event field, provide the event name that triggers the intent. Click Add to add multiple events. Click to delete any event that you added. |
If you chose Assign JSON |
---|
In the Events field, enter all required inputs in the ["stringVal"] format. |
If you chose Form |
---|
Under the Training Phrases Text section, click Add, and in the Text field, provide the training phrase that is used to train the agent. Click Add to add multiple training phrases. Click to delete any training phrase that you added. |
If you chose Assign JSON |
---|
In the Training Phrases Text field, enter all required inputs in the ["stringVal"] format. |
If you chose Form |
---|
a. Under the Output 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 output contexts. Click to delete any output context that you added. |
If you chose Assign JSON |
---|
In the Output Contexts field, enter all required inputs in the [{"name":"string", "lifespanCount":0}] format. |
If you chose Form |
---|
a. Under the Parameters section, click Add. b. In the Name field, provide the parameter name. c. In the Value field, provide the parameter reference value. For more information, see Parameter values and parameter references. d. In the Entity Type field, provide the name of the entity type, prefixed with @. e. In the Is Required list, select true if the parameter is required for the intent to complete; otherwise, select false. f. Under the Prompts section, click Add, and in the Prompt field, provide the prompt that the agent presents to the user if the required parameter was not supplied. This field is used only if Is Required is set to true. Click Add to add multiple prompts. Click to delete any prompt that you added. g. In the Is List list, select true if the values should be returned as a list; otherwise, select false. Click Add to add multiple parameters. Click to delete any parameter that you added. |
If you chose Assign JSON |
---|
In the Parameters field, enter all required inputs in the [{"displayName":"string", "value":"string", "entityTypeDisplayName":"string", "mandatory":true, "prompts":[{}], "isList":true}] format. |
If you chose Form |
---|
Under the Messages section, click Add, and in the Text field, provide a response of the agent. Click Add to add multiple messages. Click to delete any message that you added. |
If you chose Assign JSON |
---|
In the Messages field, enter all required inputs in the ["stringVal"] format. |