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
2 people authored and NimJay committed Nov 18, 2022
1 parent a1ed5eb commit bf29768
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 bf29768

Please sign in to comment.