Skip to content

Commit

Permalink
samples: fixed using wrong variable naming (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
galz10 authored and Ace Nassri committed Nov 17, 2022
1 parent 2c98650 commit 0cc9b0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dialogflow-cx/create-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function main(projectId, displayName) {

const parent = 'projects/' + projectId + '/locations/global';

const api_endpoint = 'global-dialogflow.googleapis.com:443';
const api_endpoint = 'global-dialogflow.googleapis.com';

const agent = {
displayName: displayName,
Expand All @@ -31,7 +31,7 @@ async function main(projectId, displayName) {

const {AgentsClient} = require('@google-cloud/dialogflow-cx');

const client = new AgentsClient({api_endpoint: api_endpoint});
const client = new AgentsClient({apiEndpoint: api_endpoint});

async function setAgentSample() {
const request = {
Expand Down

0 comments on commit 0cc9b0f

Please sign in to comment.