Skip to content

Commit

Permalink
samples: Update set-agent.js (#947)
Browse files Browse the repository at this point in the history
Co-authored-by: Yvonne Li <liyvonne@google.com>
  • Loading branch information
Yvonne Li and yil532 committed Jun 20, 2022
1 parent d04a3ca commit d4a8739
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dialogflow/set-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d4a8739

Please sign in to comment.