Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Adds an intent to handle goodbyes. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves authored Dec 14, 2018
1 parent 456ac14 commit 15bae5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file modified DC-Metro.zip
Binary file not shown.
7 changes: 7 additions & 0 deletions functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,11 @@ app.intent(
}
);

/**
* DiagFlow intent for cancel commands.
*/
app.intent('goodbye_intent', (conv) => {
conv.close(`Have a good day!`);
});

exports.dcMetro = functions.https.onRequest(app);

0 comments on commit 15bae5b

Please sign in to comment.