Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

support.js 466 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. module.exports = function (session) {
  2. // Generate ticket
  3. var tickerNumber = Math.ceil(Math.random() * 20000);
  4. // Reply and return to parent dialog
  5. session.send('Your message \'%s\' was registered. Once we resolve it; we will get back to you.', session.message.text);
  6. session.send('Thanks for contacting our support team. Your ticket number is %s.', tickerNumber);
  7. session.endDialogWithResult({
  8. response: tickerNumber
  9. });
  10. };
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...