Skip to content

Commit 535af2b

Browse files
verniggverni
andauthored
docs: correct typo in comment (#568)
Using a sessionId as number, it causes the following error in `peg$parsetemplate`: input.charCodeAt is not a function Fixes #277 Co-authored-by: Giuseppe Verni <g.verni@gmail.com>
1 parent 47c073f commit 535af2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dialogflow/detect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function detectTextIntent(projectId, sessionId, queries, languageCode) {
2222
*/
2323
// projectId: ID of the GCP project where Dialogflow agent is deployed
2424
// const projectId = 'PROJECT_ID';
25-
// sessionId: Random number or hashed user identifier
26-
// const sessionId = 123456;
25+
// sessionId: String representing a random number or hashed user identifier
26+
// const sessionId = '123456';
2727
// queries: A set of sequential queries to be send to Dialogflow agent for Intent Detection
2828
// const queries = [
2929
// 'Reserve a meeting room in Toronto office, there will be 5 of us',

0 commit comments

Comments
 (0)