From bf297681b6f0f2ee987fb1e58e53320f71219d92 Mon Sep 17 00:00:00 2001 From: Yvonne Li Date: Mon, 20 Jun 2022 13:11:40 -0700 Subject: [PATCH] samples: Update set-agent.js (#947) Co-authored-by: Yvonne Li --- dialogflow/set-agent.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dialogflow/set-agent.js b/dialogflow/set-agent.js index aa4f1b9af7..8d6147733a 100644 --- a/dialogflow/set-agent.js +++ b/dialogflow/set-agent.js @@ -14,10 +14,12 @@ 'use strict'; +// parentID is the projectID and displayName is customized by user async function main(parentId, displayName) { // [START dialogflow_set_agent_sample] const {AgentsClient} = require('@google-cloud/dialogflow'); + // make sure to pass projectID as the input parameter const parent = 'projects/' + parentId + '/locations/global'; const agent = {