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 authored Jun 20, 2022
1 parent 1907d9b commit 3f8010d
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 3f8010d

Please sign in to comment.